Home
last modified time | relevance | path

Searched defs:thread (Results 1 – 25 of 91) sorted by relevance

1234

/tools/perf/util/
Dthread.h23 struct thread { struct
36 bool dead; /* if set thread has exited */ argument
44 struct thread_stack *ts; argument
55 struct thread *thread__new(pid_t pid, pid_t tid); argument
62 static inline void __thread__zput(struct thread **thread) in __thread__zput()
68 #define thread__zput(thread) __thread__zput(&thread) argument
70 static inline void thread__exited(struct thread *thread) in thread__exited()
81 static inline int thread__set_comm(struct thread *thread, const char *comm, in thread__set_comm()
115 static inline void *thread__priv(struct thread *thread) in thread__priv()
120 static inline void thread__set_priv(struct thread *thread, void *p) in thread__set_priv()
[all …]
Dthread.c22 int thread__init_map_groups(struct thread *thread, struct machine *machine) in thread__init_map_groups()
43 struct thread *thread = zalloc(sizeof(*thread)); in thread__new() local
80 void thread__delete(struct thread *thread) in thread__delete()
116 struct thread *thread__get(struct thread *thread) in thread__get()
123 void thread__put(struct thread *thread) in thread__put()
152 static struct namespaces *__thread__namespaces(const struct thread *thread) in __thread__namespaces()
160 struct namespaces *thread__namespaces(struct thread *thread) in thread__namespaces()
171 static int __thread__set_namespaces(struct thread *thread, u64 timestamp, in __thread__set_namespaces()
195 int thread__set_namespaces(struct thread *thread, u64 timestamp, in thread__set_namespaces()
206 struct comm *thread__comm(const struct thread *thread) in thread__comm()
[all …]
Dthread-stack.c105 static inline bool thread_stack__per_cpu(struct thread *thread) in thread_stack__per_cpu()
128 static int thread_stack__init(struct thread_stack *ts, struct thread *thread, in thread_stack__init()
152 static struct thread_stack *thread_stack__new(struct thread *thread, int cpu, in thread_stack__new()
185 static struct thread_stack *thread__cpu_stack(struct thread *thread, int cpu) in thread__cpu_stack()
203 static inline struct thread_stack *thread__stack(struct thread *thread, in thread__stack()
275 static int thread_stack__call_return(struct thread *thread, in thread_stack__call_return()
315 static int __thread_stack__flush(struct thread *thread, struct thread_stack *ts) in __thread_stack__flush()
338 int thread_stack__flush(struct thread *thread) in thread_stack__flush()
356 int thread_stack__event(struct thread *thread, int cpu, u32 flags, u64 from_ip, in thread_stack__event()
415 void thread_stack__set_trace_nr(struct thread *thread, int cpu, u64 trace_nr) in thread_stack__set_trace_nr()
[all …]
Dcounts.h21 perf_counts(struct perf_counts *counts, int cpu, int thread) in perf_counts()
27 perf_counts__is_loaded(struct perf_counts *counts, int cpu, int thread) in perf_counts__is_loaded()
33 perf_counts__set_loaded(struct perf_counts *counts, int cpu, int thread, bool loaded) in perf_counts__set_loaded()
Ddb-export.c62 int db_export__thread(struct db_export *dbe, struct thread *thread, in db_export__thread()
83 struct thread *thread) in __db_export__comm()
94 struct thread *thread) in db_export__comm()
134 struct thread *thread) in db_export__comm_thread()
211 struct thread *thread, in call_path_from_sample()
290 static int db_export__threads(struct db_export *dbe, struct thread *thread, in db_export__threads()
348 struct thread *thread = al->thread; in db_export__sample() local
528 struct thread *thread = machine__find_thread(machine, pid, tid); in db_export__pid_tid() local
Dvdso.c142 struct thread *thread) in machine__thread_dso_type()
255 struct thread *thread, in __machine__findnew_vdso_compat()
289 struct thread *thread) in machine__find_vdso()
319 struct thread *thread) in machine__findnew_vdso()
Dmachine.c109 struct thread *thread = machine__findnew_thread(machine, -1, in machine__init() local
224 struct thread *thread, *n; in machine__exit() local
588 struct thread *thread) in machine__thread_exec_comm()
599 struct thread *thread = machine__findnew_thread(machine, in machine__process_comm_event() local
626 struct thread *thread = machine__findnew_thread(machine, in machine__process_namespaces_event() local
1652 struct thread *thread; in machine__process_mmap2_event() local
1704 struct thread *thread; in machine__process_mmap_event() local
1795 struct thread *thread = machine__find_thread(machine, in machine__process_fork_event() local
1861 struct thread *thread = machine__find_thread(machine, in machine__process_exit_event() local
1924 static void ip__resolve_ams(struct thread *thread, in ip__resolve_ams()
[all …]
Devent.c457 struct map *thread__find_map(struct thread *thread, u8 cpumode, u64 addr, in thread__find_map()
522 struct map *thread__find_map_fb(struct thread *thread, u8 cpumode, u64 addr, in thread__find_map_fb()
535 struct symbol *thread__find_symbol(struct thread *thread, u8 cpumode, in thread__find_symbol()
544 struct symbol *thread__find_symbol_fb(struct thread *thread, u8 cpumode, in thread__find_symbol_fb()
560 struct thread *thread = machine__findnew_thread(machine, sample->pid, in machine__resolve() local
643 void thread__resolve(struct thread *thread, struct addr_location *al, in thread__resolve()
Devsel.c1266 void perf_evsel__compute_deltas(struct evsel *evsel, int cpu, int thread, in perf_evsel__compute_deltas()
1307 perf_evsel__read_one(struct evsel *evsel, int cpu, int thread) in perf_evsel__read_one()
1315 perf_evsel__set_count(struct evsel *counter, int cpu, int thread, in perf_evsel__set_count()
1331 int cpu, int thread, u64 *data) in perf_evsel__process_group_data()
1368 perf_evsel__read_group(struct evsel *leader, int cpu, int thread) in perf_evsel__read_group()
1398 int perf_evsel__read_counter(struct evsel *evsel, int cpu, int thread) in perf_evsel__read_counter()
1409 int cpu, int thread, bool scale) in __perf_evsel__read_on_cpu()
1429 static int get_group_fd(struct evsel *evsel, int cpu, int thread) in get_group_fd()
1454 for (int thread = thread_idx; thread < nr_threads - 1; thread++) in perf_evsel__remove_fd() local
1485 int thread, int err) in ignore_missing_thread()
[all …]
/tools/perf/scripts/python/
Dstat-cpi.py10 def get_key(time, event, cpu, thread): argument
13 def store_key(time, cpu, thread): argument
23 def store(time, event, cpu, thread, val, ena, run): argument
31 def get(time, event, cpu, thread): argument
35 def stat__cycles_k(cpu, thread, time, val, ena, run): argument
38 def stat__instructions_k(cpu, thread, time, val, ena, run): argument
41 def stat__cycles_u(cpu, thread, time, val, ena, run): argument
44 def stat__instructions_u(cpu, thread, time, val, ena, run): argument
47 def stat__cycles(cpu, thread, time, val, ena, run): argument
50 def stat__instructions(cpu, thread, time, val, ena, run): argument
/tools/perf/tests/
Ddwarf-unwind.c97 noinline int test_dwarf_unwind__thread(struct thread *thread) in test_dwarf_unwind__thread()
131 struct thread *thread = *(struct thread **)p1; in test_dwarf_unwind__compare() local
147 noinline int test_dwarf_unwind__krava_3(struct thread *thread) in test_dwarf_unwind__krava_3()
166 noinline int test_dwarf_unwind__krava_2(struct thread *thread) in test_dwarf_unwind__krava_2()
171 noinline int test_dwarf_unwind__krava_1(struct thread *thread) in test_dwarf_unwind__krava_1()
179 struct thread *thread; in test__dwarf_unwind() local
/tools/usb/
Dffs-test.c343 static struct thread { struct
347 ssize_t (*in)(struct thread *, void *, size_t); argument
350 ssize_t (*out)(struct thread *, const void *, size_t); argument
354 pthread_t id; argument
357 } threads[] = { argument
379 static void init_thread(struct thread *t) in init_thread() argument
/tools/perf/lib/
Dthreadmap.c35 void perf_thread_map__set_pid(struct perf_thread_map *map, int thread, pid_t pid) in perf_thread_map__set_pid()
40 char *perf_thread_map__comm(struct perf_thread_map *map, int thread) in perf_thread_map__comm()
88 pid_t perf_thread_map__pid(struct perf_thread_map *map, int thread) in perf_thread_map__pid()
Devsel.c47 int cpu, thread; in perf_evsel__alloc_fd() local
69 int cpu, thread, err = 0; in perf_evsel__open() local
119 int cpu, thread; in perf_evsel__close_fd() local
168 int perf_evsel__read(struct perf_evsel *evsel, int cpu, int thread, in perf_evsel__read()
187 int cpu, thread; in perf_evsel__run_ioctl() local
Devlist.c186 int cpu, int thread, u64 id) in perf_evlist__id_hash()
199 int cpu, int thread, u64 id) in perf_evlist__id_add()
207 int cpu, int thread, int fd) in perf_evlist__id_add_fd()
/tools/perf/arch/arm/tests/
Ddwarf-unwind.c14 struct thread *thread, u64 *regs) in sample_ustack()
46 struct thread *thread) in test__arch_unwind_sample()
/tools/perf/arch/powerpc/tests/
Ddwarf-unwind.c15 struct thread *thread, u64 *regs) in sample_ustack()
47 struct thread *thread) in test__arch_unwind_sample()
/tools/perf/arch/arm64/tests/
Ddwarf-unwind.c14 struct thread *thread, u64 *regs) in sample_ustack()
46 struct thread *thread) in test__arch_unwind_sample()
/tools/perf/arch/x86/tests/
Ddwarf-unwind.c15 struct thread *thread, u64 *regs) in sample_ustack()
47 struct thread *thread) in test__arch_unwind_sample()
/tools/perf/
Dbuiltin-script.c625 struct thread *thread, in perf_sample__fprintf_start()
734 struct thread *thread, in perf_sample__fprintf_brstack()
781 struct thread *thread, in perf_sample__fprintf_brstacksym()
826 struct thread *thread, in perf_sample__fprintf_brstackoff()
876 struct machine *machine, struct thread *thread, in grab_bb()
935 static int print_srccode(struct thread *thread, u8 cpumode, uint64_t addr) in print_srccode()
970 static int ip__fprintf_sym(uint64_t addr, struct thread *thread, in ip__fprintf_sym()
1009 struct thread *thread, in perf_sample__fprintf_brstackinsn()
1149 struct thread *thread, in perf_sample__fprintf_addr()
1179 struct thread *thread, in resolve_branch_sym()
[all …]
/tools/perf/python/
Dtwatch.py11 def main(context_switch = 0, thread = -1): argument
/tools/perf/arch/x86/util/
Darchinsn.c10 struct thread *thread, in arch_fetch_insn()
/tools/perf/arch/riscv/util/
Dunwind-libdw.c9 bool libdw__arch_set_initial_registers(Dwfl_Thread *thread, void *arg) in libdw__arch_set_initial_registers()
/tools/perf/arch/arm/util/
Dunwind-libdw.c7 bool libdw__arch_set_initial_registers(Dwfl_Thread *thread, void *arg) in libdw__arch_set_initial_registers()
/tools/perf/arch/s390/util/
Dunwind-libdw.c9 bool libdw__arch_set_initial_registers(Dwfl_Thread *thread, void *arg) in libdw__arch_set_initial_registers()

1234