Lines Matching full:thread

16 #include "thread.h"
65 int test_dwarf_unwind__thread(struct thread *thread);
67 int test_dwarf_unwind__krava_3(struct thread *thread);
68 int test_dwarf_unwind__krava_2(struct thread *thread);
69 int test_dwarf_unwind__krava_1(struct thread *thread);
111 NO_TAIL_CALL_ATTRIBUTE noinline int test_dwarf_unwind__thread(struct thread *thread) in test_dwarf_unwind__thread() argument
119 if (test__arch_unwind_sample(&sample, thread)) { in test_dwarf_unwind__thread()
124 err = unwind__get_entries(unwind_entry, &cnt, thread, in test_dwarf_unwind__thread()
144 /* Any possible value should be 'thread' */ in test_dwarf_unwind__compare()
145 struct thread *thread = *(struct thread **)p1; in test_dwarf_unwind__compare() local
151 global_unwind_retval = test_dwarf_unwind__thread(thread); in test_dwarf_unwind__compare()
154 global_unwind_retval = test_dwarf_unwind__thread(thread); in test_dwarf_unwind__compare()
161 NO_TAIL_CALL_ATTRIBUTE noinline int test_dwarf_unwind__krava_3(struct thread *thread) in test_dwarf_unwind__krava_3() argument
163 struct thread *array[2] = {thread, thread}; in test_dwarf_unwind__krava_3()
175 _bsearch(array, &thread, 2, sizeof(struct thread **), in test_dwarf_unwind__krava_3()
180 NO_TAIL_CALL_ATTRIBUTE noinline int test_dwarf_unwind__krava_2(struct thread *thread) in test_dwarf_unwind__krava_2() argument
184 ret = test_dwarf_unwind__krava_3(thread); in test_dwarf_unwind__krava_2()
189 NO_TAIL_CALL_ATTRIBUTE noinline int test_dwarf_unwind__krava_1(struct thread *thread) in test_dwarf_unwind__krava_1() argument
193 ret = test_dwarf_unwind__krava_2(thread); in test_dwarf_unwind__krava_1()
201 struct thread *thread; in test__dwarf_unwind() local
226 thread = machine__find_thread(machine, getpid(), getpid()); in test__dwarf_unwind()
227 if (!thread) { in test__dwarf_unwind()
228 pr_err("Could not get thread\n"); in test__dwarf_unwind()
232 err = test_dwarf_unwind__krava_1(thread); in test__dwarf_unwind()
233 thread__put(thread); in test__dwarf_unwind()