Home
last modified time | relevance | path

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

123456

/tools/perf/util/
Dthread.h32 DECLARE_RC_STRUCT(thread) { in DECLARE_RC_STRUCT() argument
82 static inline void __thread__zput(struct thread **thread) in __thread__zput()
88 #define thread__zput(thread) __thread__zput(&thread) argument
96 static inline int thread__set_comm(struct thread *thread, const char *comm, in thread__set_comm()
130 static inline struct maps *thread__maps(struct thread *thread) in thread__maps()
135 static inline void thread__set_maps(struct thread *thread, struct maps *maps) in thread__set_maps()
140 static inline pid_t thread__pid(const struct thread *thread) in thread__pid()
145 static inline void thread__set_pid(struct thread *thread, pid_t pid_) in thread__set_pid()
150 static inline pid_t thread__tid(const struct thread *thread) in thread__tid()
155 static inline void thread__set_tid(struct thread *thread, pid_t tid) in thread__set_tid()
[all …]
Dthread.c22 int thread__init_maps(struct thread *thread, struct machine *machine) in thread__init_maps()
43 struct thread *thread; in thread__new() local
88 void thread__delete(struct thread *thread) in thread__delete()
127 struct thread *thread__get(struct thread *thread) in thread__get()
137 void thread__put(struct thread *thread) in thread__put()
145 static struct namespaces *__thread__namespaces(struct thread *thread) in __thread__namespaces()
153 struct namespaces *thread__namespaces(struct thread *thread) in thread__namespaces()
164 static int __thread__set_namespaces(struct thread *thread, u64 timestamp, in __thread__set_namespaces()
188 int thread__set_namespaces(struct thread *thread, u64 timestamp, in thread__set_namespaces()
199 struct comm *thread__comm(struct thread *thread) in thread__comm()
[all …]
Dthread-stack.c113 static inline bool thread_stack__per_cpu(struct thread *thread) in thread_stack__per_cpu()
136 static int thread_stack__init(struct thread_stack *ts, struct thread *thread, in thread_stack__init()
173 static struct thread_stack *thread_stack__new(struct thread *thread, int cpu, in thread_stack__new()
208 static struct thread_stack *thread__cpu_stack(struct thread *thread, int cpu) in thread__cpu_stack()
226 static inline struct thread_stack *thread__stack(struct thread *thread, in thread__stack()
298 static int thread_stack__call_return(struct thread *thread, in thread_stack__call_return()
338 static int __thread_stack__flush(struct thread *thread, struct thread_stack *ts) in __thread_stack__flush()
364 int thread_stack__flush(struct thread *thread) in thread_stack__flush()
406 int thread_stack__event(struct thread *thread, int cpu, u32 flags, u64 from_ip, in thread_stack__event()
473 void thread_stack__set_trace_nr(struct thread *thread, int cpu, u64 trace_nr) in thread_stack__set_trace_nr()
[all …]
Dcounts.h20 perf_counts(struct perf_counts *counts, int cpu_map_idx, int thread) in perf_counts()
26 perf_counts__is_loaded(struct perf_counts *counts, int cpu_map_idx, int 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()
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()
294 static int db_export__threads(struct db_export *dbe, struct thread *thread, in db_export__threads()
352 struct thread *thread = al->thread; in db_export__sample() local
532 struct thread *thread = machine__find_thread(machine, pid, tid); in db_export__pid_tid() local
Dmachine.c65 static void thread__set_guest_comm(struct thread *thread, pid_t pid) in thread__set_guest_comm()
106 struct thread *thread = machine__findnew_thread(machine, -1, in machine__init() local
353 struct thread *thread; in findnew_guest_code() local
545 struct thread *thread = machine__findnew_thread(machine, 0, 0); in machine__idle_thread() local
555 struct thread *thread) in machine__thread_exec_comm()
566 struct thread *thread = machine__findnew_thread(machine, in machine__process_comm_event() local
593 struct thread *thread = machine__findnew_thread(machine, in machine__process_namespaces_event() local
914 static int machine_fprintf_cb(struct thread *thread, void *data) in machine_fprintf_cb()
1697 struct thread *thread; in machine__process_mmap2_event() local
1765 struct thread *thread; in machine__process_mmap_event() local
[all …]
Dprint_insn.c84 static size_t print_insn_x86(struct thread *thread, u8 cpumode, cs_insn *insn, in print_insn_x86()
122 ssize_t fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode, in fprintf_insn_asm()
154 size_t sample__fprintf_insn_asm(struct perf_sample *sample, struct thread *thread, in sample__fprintf_insn_asm()
Dvdso.c159 struct thread *thread) in machine__thread_dso_type()
265 struct thread *thread, in __machine__findnew_vdso_compat()
299 struct thread *thread) in machine__find_vdso()
331 struct thread *thread) in machine__findnew_vdso()
Devent.c434 struct thread *thread = machine__findnew_thread(machine, in perf_event__exit_del_thread() local
618 struct map *thread__find_map(struct thread *thread, u8 cpumode, u64 addr, in thread__find_map()
683 struct map *thread__find_map_fb(struct thread *thread, u8 cpumode, u64 addr, in thread__find_map_fb()
696 struct symbol *thread__find_symbol(struct thread *thread, u8 cpumode, in thread__find_symbol()
705 struct symbol *thread__find_symbol_fb(struct thread *thread, u8 cpumode, in thread__find_symbol_fb()
734 struct thread *thread; in machine__resolve() local
839 void thread__resolve(struct thread *thread, struct addr_location *al, in thread__resolve()
Devsel.c1531 void evsel__compute_deltas(struct evsel *evsel, int cpu_map_idx, int thread, in evsel__compute_deltas()
1547 static int evsel__read_one(struct evsel *evsel, int cpu_map_idx, int thread) in evsel__read_one()
1554 static int evsel__read_retire_lat(struct evsel *evsel, int cpu_map_idx, int thread) in evsel__read_retire_lat()
1559 static void evsel__set_count(struct evsel *counter, int cpu_map_idx, int thread, in evsel__set_count()
1634 static int evsel__process_group_data(struct evsel *leader, int cpu_map_idx, int thread, u64 *data) in evsel__process_group_data()
1668 static int evsel__read_group(struct evsel *leader, int cpu_map_idx, int thread) in evsel__read_group()
1790 static int evsel__read_tool(struct evsel *evsel, int cpu_map_idx, int thread) in evsel__read_tool()
1859 int evsel__read_counter(struct evsel *evsel, int cpu_map_idx, int thread) in evsel__read_counter()
1873 int __evsel__read_on_cpu(struct evsel *evsel, int cpu_map_idx, int thread, bool scale) in __evsel__read_on_cpu()
1914 static int get_group_fd(struct evsel *evsel, int cpu_map_idx, int thread) in get_group_fd()
[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.c112 NO_TAIL_CALL_ATTRIBUTE noinline int test_dwarf_unwind__thread(struct thread *thread) in test_dwarf_unwind__thread()
146 struct thread *thread = *(struct thread **)p1; in test_dwarf_unwind__compare() local
162 NO_TAIL_CALL_ATTRIBUTE noinline int test_dwarf_unwind__krava_3(struct thread *thread) in test_dwarf_unwind__krava_3()
181 NO_TAIL_CALL_ATTRIBUTE noinline int test_dwarf_unwind__krava_2(struct thread *thread) in test_dwarf_unwind__krava_2()
190 NO_TAIL_CALL_ATTRIBUTE noinline int test_dwarf_unwind__krava_1(struct thread *thread) in test_dwarf_unwind__krava_1()
203 struct thread *thread; in test__dwarf_unwind() local
/tools/lib/perf/
Devsel.c57 int idx, thread; in perf_evsel__alloc_fd() local
87 static int get_group_fd(struct perf_evsel *evsel, int cpu_map_idx, int thread, int *group_fd) in get_group_fd()
117 int idx, thread, err = 0; in perf_evsel__open() local
182 int thread; in perf_evsel__close_fd_cpu() local
225 int idx, thread; in perf_evsel__munmap() local
247 int ret, idx, thread; in perf_evsel__mmap() local
282 void *perf_evsel__mmap_base(struct perf_evsel *evsel, int cpu_map_idx, int thread) in perf_evsel__mmap_base()
322 int thread, struct perf_counts_values *count) in perf_evsel__read_group()
387 int perf_evsel__read(struct perf_evsel *evsel, int cpu_map_idx, int thread, in perf_evsel__read()
416 int cpu_map_idx, int thread) in perf_evsel__ioctl()
[all …]
Devlist.c265 int cpu_map_idx, int thread, u64 id) in perf_evlist__id_hash()
286 int cpu_map_idx, int thread, u64 id) in perf_evlist__id_add()
297 int cpu_map_idx, int thread, int fd) in perf_evlist__id_add_fd()
420 static void perf_evsel__set_sid_idx(struct perf_evsel *evsel, int idx, int cpu, int thread) in perf_evsel__set_sid_idx()
471 int thread, int *_output, int *_output_overwrite, int *nr_mmaps) in mmap_per_evsel()
568 int cpu, thread, idx = 0; in mmap_per_thread() local
611 int cpu, thread; in mmap_per_cpu() 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/testing/selftests/bpf/benchs/
Dbench_local_storage_create.c12 struct thread { struct
14 pthread_t *pthds; argument
19 static struct thread *threads; argument
/tools/perf/arch/x86/tests/
Ddwarf-unwind.c14 struct thread *thread, u64 *regs) in sample_ustack()
54 struct thread *thread) in test__arch_unwind_sample()
/tools/perf/arch/powerpc/tests/
Ddwarf-unwind.c14 struct thread *thread, u64 *regs) in sample_ustack()
46 struct thread *thread) in test__arch_unwind_sample()
/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/arm64/tests/
Ddwarf-unwind.c14 struct thread *thread, u64 *regs) in sample_ustack()
46 struct thread *thread) in test__arch_unwind_sample()
/tools/testing/selftests/kvm/
Dhardware_disable_test.c59 static inline void check_create_thread(pthread_t *thread, pthread_attr_t *attr, in check_create_thread()
68 static inline void check_set_affinity(pthread_t thread, cpu_set_t *cpu_set) in check_set_affinity()
76 static inline void check_join(pthread_t thread, void **retval) in check_join()
/tools/perf/python/
Dtwatch.py11 def main(context_switch = 0, thread = -1): argument
/tools/testing/selftests/android/include/
Dbionic-compat.h9 static inline int pthread_cancel(pthread_t thread) in pthread_cancel()
/tools/perf/
Dbuiltin-sched.c70 pthread_t thread; member
114 struct thread *thread; member
937 static struct thread_runtime *thread__init_runtime(struct thread *thread) in thread__init_runtime()
952 static struct thread_runtime *thread__get_runtime(struct thread *thread) in thread__get_runtime()
984 thread_atoms_search(struct rb_root_cached *root, struct thread *thread, in thread_atoms_search()
1037 static int thread_atoms_insert(struct perf_sched *sched, struct thread *thread) in thread_atoms_insert()
1211 struct thread *thread = machine__findnew_thread(machine, -1, pid); in latency_runtime_event() local
1545 static bool thread__has_color(struct thread *thread) in thread__has_color()
1557 struct thread *thread = machine__findnew_thread(machine, pid, tid); in map__findnew_thread() local
1897 struct thread *thread; in perf_sched__process_comm() local
[all …]
/tools/perf/arch/x86/util/
Darchinsn.c10 struct thread *thread, in arch_fetch_insn()

123456