Home
last modified time | relevance | path

Searched refs:thread (Results 1 – 25 of 236) sorted by relevance

12345678910

/tools/perf/util/
A Dthread.h79 void thread__delete(struct thread *thread);
83 struct thread *thread__get(struct thread *thread);
84 void thread__put(struct thread *thread);
92 #define thread__zput(thread) __thread__zput(&thread) argument
106 int thread__set_comm_from_proc(struct thread *thread);
108 int thread__comm_len(struct thread *thread);
109 struct comm *thread__comm(struct thread *thread);
110 struct comm *thread__exec_comm(struct thread *thread);
111 const char *thread__comm_str(struct thread *thread);
113 int thread__fork(struct thread *thread, struct thread *parent, u64 timestamp, bool do_maps_clone);
[all …]
A Dthread.c47 struct thread *thread; in thread__new() local
93 void thread__delete(struct thread *thread) in thread__delete() argument
132 struct thread *thread__get(struct thread *thread) in thread__get() argument
142 void thread__put(struct thread *thread) in thread__put() argument
213 struct comm *thread__comm(struct thread *thread) in thread__comm() argument
223 struct comm *thread__exec_comm(struct thread *thread) in thread__exec_comm() argument
315 const char *thread__comm_str(struct thread *thread) in thread__comm_str() argument
336 int thread__comm_len(struct thread *thread) in thread__comm_len() argument
406 thread__pid(thread), thread__tid(thread), in thread__clone_maps()
529 struct thread *thread__main_thread(struct machine *machine, struct thread *thread) in thread__main_thread() argument
[all …]
A Dthread-stack.h14 struct thread;
54 struct thread *thread; member
82 int thread_stack__event(struct thread *thread, int cpu, u32 flags, u64 from_ip,
85 void thread_stack__set_trace_nr(struct thread *thread, int cpu, u64 trace_nr);
88 void thread_stack__sample_late(struct thread *thread, int cpu,
91 void thread_stack__br_sample(struct thread *thread, int cpu,
93 void thread_stack__br_sample_late(struct thread *thread, int cpu,
96 int thread_stack__flush(struct thread *thread);
97 void thread_stack__free(struct thread *thread);
98 size_t thread_stack__depth(struct thread *thread, int cpu);
[all …]
A Ddb-export.c62 int db_export__thread(struct db_export *dbe, struct thread *thread, in db_export__thread() argument
83 struct thread *thread) in __db_export__comm() argument
94 struct thread *thread) in db_export__comm() argument
134 struct thread *thread) in db_export__comm_thread() argument
211 struct thread *thread, in call_path_from_sample() argument
259 al.thread = thread__get(thread); in call_path_from_sample()
295 static int db_export__threads(struct db_export *dbe, struct thread *thread, in db_export__threads() argument
353 struct thread *thread = al->thread; in db_export__sample() local
537 struct thread *thread = machine__find_thread(machine, pid, tid); in db_export__pid_tid() local
541 if (!thread || !thread__comm_set(thread)) in db_export__pid_tid()
[all …]
A Dthreads.h8 struct thread;
17 struct thread *last_match;
27 struct thread *threads__find(struct threads *threads, pid_t tid);
28 struct thread *threads__findnew(struct threads *threads, pid_t pid, pid_t tid, bool *created);
30 void threads__remove(struct threads *threads, struct thread *thread);
32 int (*fn)(struct thread *thread, void *data),
A Dthread-stack.c113 static inline bool thread_stack__per_cpu(struct thread *thread) in thread_stack__per_cpu() argument
115 return !(thread__tid(thread) || thread__pid(thread)); in thread_stack__per_cpu()
229 if (!thread) in thread__stack()
298 static int thread_stack__call_return(struct thread *thread, in thread_stack__call_return() argument
305 .thread = thread, in thread_stack__call_return()
364 int thread_stack__flush(struct thread *thread) in thread_stack__flush() argument
412 if (!thread) in thread_stack__event()
503 void thread_stack__free(struct thread *thread) in thread_stack__free() argument
521 void thread_stack__sample(struct thread *thread, int cpu, in thread_stack__sample() argument
617 void thread_stack__br_sample(struct thread *thread, int cpu, in thread_stack__br_sample() argument
[all …]
A Ddb-export.h15 struct thread;
44 int (*export_thread)(struct db_export *dbe, struct thread *thread,
47 struct thread *thread);
49 struct comm *comm, struct thread *thread);
84 int db_export__thread(struct db_export *dbe, struct thread *thread,
85 struct machine *machine, struct thread *main_thread);
87 struct thread *thread);
89 struct thread *main_thread);
91 struct thread *thread);
A Dthreads.c67 struct thread *th, *res = NULL; in __threads_table_entry__get_last_match()
78 struct thread *th) in __threads_table_entry__set_last_match()
85 struct thread *th) in threads_table_entry__set_last_match()
92 struct thread *threads__find(struct threads *threads, pid_t tid) in threads__find()
95 struct thread *res; in threads__find()
112 struct thread *res = NULL; in threads__findnew()
145 struct thread *old_value; in threads__remove_all_threads()
154 void threads__remove(struct threads *threads, struct thread *thread) in threads__remove() argument
157 struct thread *old_value; in threads__remove()
169 int (*fn)(struct thread *thread, void *data), in threads__for_each_thread() argument
[all …]
A Dmachine.c391 struct thread *thread; in findnew_guest_code() local
593 struct thread *thread) in machine__thread_exec_comm() argument
1732 struct thread *thread; in machine__process_mmap2_event() local
1800 struct thread *thread; in machine__process_mmap_event() local
2000 static void ip__resolve_ams(struct thread *thread, in ip__resolve_ams() argument
2027 static void ip__resolve_data(struct thread *thread, in ip__resolve_data() argument
2093 static int add_callchain_ip(struct thread *thread, in add_callchain_ip() argument
2699 struct thread *thread, int usr_idx) in get_leaf_frame_caller() argument
3022 int (*fn)(struct thread *thread, void *p), in machine__for_each_thread() argument
3058 entry->thread = thread__get(thread); in thread_list_cb()
[all …]
A Dcounts.h20 perf_counts(struct perf_counts *counts, int cpu_map_idx, int thread) in perf_counts() argument
22 return xyarray__entry(counts->values, cpu_map_idx, thread); in perf_counts()
26 perf_counts__is_loaded(struct perf_counts *counts, int cpu_map_idx, int thread) in perf_counts__is_loaded() argument
28 return *((bool *) xyarray__entry(counts->loaded, cpu_map_idx, thread)); in perf_counts__is_loaded()
32 perf_counts__set_loaded(struct perf_counts *counts, int cpu_map_idx, int thread, bool loaded) in perf_counts__set_loaded() argument
34 *((bool *) xyarray__entry(counts->loaded, cpu_map_idx, thread)) = loaded; in perf_counts__set_loaded()
A Dprint_insn.h9 struct thread;
15 size_t sample__fprintf_insn_asm(struct perf_sample *sample, struct thread *thread,
18 ssize_t fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode,
A Dunwind.h11 struct thread;
25 struct thread *thread,
36 struct thread *thread,
64 struct thread *thread __maybe_unused, in unwind__get_entries()
A Dunwind-libdw.h10 struct thread;
12 bool libdw__arch_set_initial_registers(Dwfl_Thread *thread, void *arg);
18 struct thread *thread; member
A Dtool_pmu.c241 for (thread = 0; thread < nthreads; thread++) { in evsel__tool_pmu_open()
242 if (thread >= nthreads) in evsel__tool_pmu_open()
267 FD(evsel, idx, thread) = fd; in evsel__tool_pmu_open()
292 threads->err_thread = thread; in evsel__tool_pmu_open()
296 while (--thread >= 0) { in evsel__tool_pmu_open()
297 if (FD(evsel, idx, thread) >= 0) in evsel__tool_pmu_open()
298 close(FD(evsel, idx, thread)); in evsel__tool_pmu_open()
299 FD(evsel, idx, thread) = -1; in evsel__tool_pmu_open()
301 thread = nthreads; in evsel__tool_pmu_open()
484 if (cpu_map_idx == 0 && thread == 0) in evsel__tool_pmu_read()
[all …]
A Dprint_insn.c84 static size_t print_insn_x86(struct thread *thread, u8 cpumode, cs_insn *insn, in print_insn_x86() argument
95 thread__find_symbol(thread, cpumode, op->imm, &al)) { in print_insn_x86()
122 ssize_t fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode, in fprintf_insn_asm() argument
140 printed = print_insn_x86(thread, cpumode, &insn[0], print_opts, fp); in fprintf_insn_asm()
154 size_t sample__fprintf_insn_asm(struct perf_sample *sample, struct thread *thread, in sample__fprintf_insn_asm() argument
161 printed = fprintf_insn_asm(machine, thread, sample->cpumode, is64bit, in sample__fprintf_insn_asm()
171 struct thread *thread __maybe_unused, in sample__fprintf_insn_asm()
/tools/perf/tests/
A Ddwarf-unwind.c47 int test_dwarf_unwind__thread(struct thread *thread);
49 int test_dwarf_unwind__krava_3(struct thread *thread);
50 int test_dwarf_unwind__krava_2(struct thread *thread);
51 int test_dwarf_unwind__krava_1(struct thread *thread);
94 NO_TAIL_CALL_ATTRIBUTE noinline int test_dwarf_unwind__thread(struct thread *thread) in test_dwarf_unwind__thread() argument
128 struct thread *thread = *(struct thread **)p1; in test_dwarf_unwind__compare() local
146 struct thread *array[2] = {thread, thread}; in test_dwarf_unwind__krava_3()
158 _bsearch(array, &thread, 2, sizeof(struct thread **), in test_dwarf_unwind__krava_3()
186 struct thread *thread; in test__dwarf_unwind() local
209 if (!thread) { in test__dwarf_unwind()
[all …]
/tools/perf/scripts/python/
A Dstat-cpi.py10 def get_key(time, event, cpu, thread): argument
11 return "%d-%s-%d-%d" % (time, event, cpu, thread)
13 def store_key(time, cpu, thread): argument
20 if (thread not in threads):
21 threads.append(thread)
23 def store(time, event, cpu, thread, val, ena, run): argument
27 store_key(time, cpu, thread)
28 key = get_key(time, event, cpu, thread)
31 def get(time, event, cpu, thread): argument
32 key = get_key(time, event, cpu, thread)
[all …]
/tools/perf/trace/beauty/
A Dpid.c8 struct thread *thread = machine__findnew_thread(trace->host, pid, pid); in syscall_arg__scnprintf_pid() local
10 if (thread != NULL) { in syscall_arg__scnprintf_pid()
11 if (!thread__comm_set(thread)) in syscall_arg__scnprintf_pid()
12 thread__set_comm_from_proc(thread); in syscall_arg__scnprintf_pid()
14 if (thread__comm_set(thread)) in syscall_arg__scnprintf_pid()
16 " (%s)", thread__comm_str(thread)); in syscall_arg__scnprintf_pid()
17 thread__put(thread); in syscall_arg__scnprintf_pid()
/tools/lib/perf/
A Devsel.c70 int idx, thread; in perf_evsel__alloc_fd() local
73 for (thread = 0; thread < nthreads; thread++) { in perf_evsel__alloc_fd()
161 for (thread = 0; thread < threads->nr; thread++) { in perf_evsel__open()
195 int thread; in perf_evsel__close_fd_cpu() local
197 for (thread = 0; thread < xyarray__max_y(evsel->fd); ++thread) { in perf_evsel__close_fd_cpu()
238 int idx, thread; in perf_evsel__munmap() local
244 for (thread = 0; thread < xyarray__max_y(evsel->fd); thread++) { in perf_evsel__munmap()
260 int ret, idx, thread; in perf_evsel__mmap() local
273 for (thread = 0; thread < xyarray__max_y(evsel->fd); thread++) { in perf_evsel__mmap()
443 int thread; in perf_evsel__run_ioctl() local
[all …]
/tools/testing/selftests/powerpc/tm/
A Dtm-vmx-unavail.c91 pthread_t *thread; in tm_vmx_unavail_test() local
99 thread = malloc(sizeof(pthread_t)*threads); in tm_vmx_unavail_test()
100 if (!thread) in tm_vmx_unavail_test()
104 pthread_create(&thread[i], NULL, &worker, NULL); in tm_vmx_unavail_test()
107 pthread_join(thread[i], NULL); in tm_vmx_unavail_test()
109 free(thread); in tm_vmx_unavail_test()
A Dtm-tmspr.c94 pthread_t *thread; in test_tmspr() local
104 thread = malloc(thread_num * sizeof(pthread_t)); in test_tmspr()
105 if (thread == NULL) in test_tmspr()
110 if (pthread_create(&thread[i], NULL, (void *)tfiar_tfhar, in test_tmspr()
116 if (pthread_create(&thread[i], NULL, (void *)texasr, (void *)i)) in test_tmspr()
121 if (pthread_join(thread[i], NULL) != 0) in test_tmspr()
125 free(thread); in test_tmspr()
/tools/perf/arch/arm/tests/
A Ddwarf-unwind.c14 struct thread *thread, u64 *regs) in sample_ustack() argument
29 map = maps__find(thread__maps(thread), (u64)sp); in sample_ustack()
46 struct thread *thread) in test__arch_unwind_sample() argument
62 return sample_ustack(sample, thread, buf); in test__arch_unwind_sample()
/tools/perf/arch/arm64/tests/
A Ddwarf-unwind.c14 struct thread *thread, u64 *regs) in sample_ustack() argument
29 map = maps__find(thread__maps(thread), (u64)sp); in sample_ustack()
46 struct thread *thread) in test__arch_unwind_sample() argument
62 return sample_ustack(sample, thread, buf); in test__arch_unwind_sample()
/tools/perf/arch/powerpc/tests/
A Ddwarf-unwind.c14 struct thread *thread, u64 *regs) in sample_ustack() argument
29 map = maps__find(thread__maps(thread), (u64)sp); in sample_ustack()
46 struct thread *thread) in test__arch_unwind_sample() argument
62 return sample_ustack(sample, thread, buf); in test__arch_unwind_sample()
/tools/perf/arch/x86/tests/
A Ddwarf-unwind.c14 struct thread *thread, u64 *regs) in sample_ustack() argument
29 map = maps__find(thread__maps(thread), (u64)sp); in sample_ustack()
54 struct thread *thread) in test__arch_unwind_sample() argument
78 return sample_ustack(sample, thread, buf); in test__arch_unwind_sample()

Completed in 49 milliseconds

12345678910