Home
last modified time | relevance | path

Searched refs:thread_map (Results 1 – 25 of 35) sorted by relevance

12

/Linux-v4.19/tools/perf/util/
Dthread_map.h14 struct thread_map { struct
23 struct thread_map *thread_map__new_dummy(void); argument
24 struct thread_map *thread_map__new_by_pid(pid_t pid);
25 struct thread_map *thread_map__new_by_tid(pid_t tid);
26 struct thread_map *thread_map__new_by_uid(uid_t uid);
27 struct thread_map *thread_map__new_all_cpus(void);
28 struct thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid);
29 struct thread_map *thread_map__new_event(struct thread_map_event *event);
31 struct thread_map *thread_map__get(struct thread_map *map);
32 void thread_map__put(struct thread_map *map);
[all …]
Dthread_map.c30 static void thread_map__reset(struct thread_map *map, int start, int nr) in thread_map__reset()
38 static struct thread_map *thread_map__realloc(struct thread_map *map, int nr) in thread_map__realloc()
55 struct thread_map *thread_map__new_by_pid(pid_t pid) in thread_map__new_by_pid()
57 struct thread_map *threads; in thread_map__new_by_pid()
83 struct thread_map *thread_map__new_by_tid(pid_t tid) in thread_map__new_by_tid()
85 struct thread_map *threads = thread_map__alloc(1); in thread_map__new_by_tid()
96 static struct thread_map *__thread_map__new_all_cpus(uid_t uid) in __thread_map__new_all_cpus()
102 struct thread_map *threads = thread_map__alloc(max_threads); in __thread_map__new_all_cpus()
142 struct thread_map *tmp; in __thread_map__new_all_cpus()
182 struct thread_map *thread_map__new_all_cpus(void) in thread_map__new_all_cpus()
[all …]
Devlist.h20 struct thread_map;
47 struct thread_map *threads;
65 struct thread_map *threads);
182 struct thread_map *threads);
Devsel.h114 struct thread_map *threads;
172 struct thread_map;
280 struct thread_map *threads);
282 struct thread_map *threads);
Dtool.h69 thread_map, member
Devent.h647 struct thread_map_event thread_map; member
659 struct thread_map;
670 struct thread_map *threads,
675 struct thread_map *threads,
Dpython-ext-sources20 util/thread_map.c
Dmachine.h248 struct target *target, struct thread_map *threads,
254 struct thread_map *threads, bool data_mmap, in machine__synthesize_threads()
Devent.c611 struct thread_map *threads, in perf_event__synthesize_thread_map()
974 struct thread_map *threads, in perf_event__synthesize_thread_map2()
981 size = sizeof(event->thread_map); in perf_event__synthesize_thread_map2()
982 size += threads->nr * sizeof(event->thread_map.entries[0]); in perf_event__synthesize_thread_map2()
990 event->thread_map.nr = threads->nr; in perf_event__synthesize_thread_map2()
993 struct thread_map_event_entry *entry = &event->thread_map.entries[i]; in perf_event__synthesize_thread_map2()
1363 struct thread_map *threads = thread_map__new_event(&event->thread_map); in perf_event__fprintf_thread_map()
Devlist.c41 struct thread_map *threads) in perf_evlist__init()
1025 const struct thread_map *threads = evlist->threads; in perf_evlist__mmap_ex()
1070 struct thread_map *threads; in perf_evlist__create_maps()
1116 struct thread_map *threads) in perf_evlist__set_maps()
1370 struct thread_map *threads; in perf_evlist__create_syswide_maps()
Dsession.c414 if (tool->thread_map == NULL) in perf_tool__fill_defaults()
415 tool->thread_map = process_event_thread_map_stub; in perf_tool__fill_defaults()
712 event->thread_map.nr = bswap_64(event->thread_map.nr); in perf_event__thread_map_swap()
714 for (i = 0; i < event->thread_map.nr; i++) in perf_event__thread_map_swap()
715 event->thread_map.entries[i].pid = bswap_64(event->thread_map.entries[i].pid); in perf_event__thread_map_swap()
1394 return tool->thread_map(tool, event, session); in perf_session__process_user_event()
Dpython.c607 struct thread_map *threads;
799 struct thread_map *threads = NULL; in pyrf_evsel__open()
868 struct thread_map *threads; in pyrf_evlist__init()
/Linux-v4.19/tools/perf/tests/
Dthread-map.c15 struct thread_map *map; in test__thread_map()
58 struct thread_map_event *map = &event->thread_map; in process_event()
59 struct thread_map *threads; in process_event()
65 threads = thread_map__new_event(&event->thread_map); in process_event()
82 struct thread_map *threads; in test__thread_map_synthesize()
101 struct thread_map *threads; in test__thread_map_remove()
Devent-times.c60 struct thread_map *threads; in attach__current_disabled()
86 struct thread_map *threads; in attach__current_enabled()
Dopenat-syscall.c19 struct thread_map *threads = thread_map__new(-1, getpid(), UINT_MAX); in test__openat_syscall_event()
Dtask-exit.c49 struct thread_map *threads; in test__task_exit()
Dopenat-syscall-all-cpus.c27 struct thread_map *threads = thread_map__new(-1, getpid(), UINT_MAX); in test__openat_syscall_event_on_all_cpus()
Dsw-clock.c41 struct thread_map *threads; in __test__sw_clock_freq()
Dkeep-tracking.c68 struct thread_map *threads = NULL; in test__keep_tracking()
Dmmap-basic.c30 struct thread_map *threads; in test__basic_mmap()
Dmmap-thread-lookup.c140 struct thread_map *map; in synth_process()
/Linux-v4.19/tools/perf/python/
Dtwatch.py20 threads = perf.thread_map(thread)
Dtracepoint.py20 threads = perf.thread_map(-1)
/Linux-v4.19/tools/perf/
Dbuiltin-record.c621 struct thread_map *thread_map; in record__synthesize_workload() local
626 thread_map = thread_map__new_by_tid(rec->evlist->workload.pid); in record__synthesize_workload()
627 if (thread_map == NULL) in record__synthesize_workload()
630 err = perf_event__synthesize_thread_map(&rec->tool, thread_map, in record__synthesize_workload()
635 thread_map__put(thread_map); in record__synthesize_workload()
/Linux-v4.19/tools/perf/arch/x86/tests/
Dperf-time-to-tsc.c52 struct thread_map *threads = NULL; in test__perf_time_to_tsc()

12