Home
last modified time | relevance | path

Searched refs:thread_map (Results 1 - 25 of 29) sorted by relevance

12

/kernel/linux/linux-6.6/tools/perf/tests/
H A Dthread-map.c8 #include "thread_map.h"
68 struct perf_record_thread_map *map = &event->thread_map; in process_event()
75 threads = thread_map__new_event(&event->thread_map); in process_event()
121 TEST_ASSERT_VAL("failed to allocate thread_map", in test__thread_map_remove()
130 TEST_ASSERT_VAL("thread_map count != 1", threads->nr == 1); in test__thread_map_remove()
138 TEST_ASSERT_VAL("thread_map count != 0", threads->nr == 0); in test__thread_map_remove()
150 DEFINE_SUITE("Thread map", thread_map);
H A Dtests.h115 DECLARE_SUITE(thread_map); variable
/kernel/linux/linux-5.10/tools/perf/tests/
H A Dthread-map.c8 #include "thread_map.h"
67 struct perf_record_thread_map *map = &event->thread_map; in process_event()
74 threads = thread_map__new_event(&event->thread_map); in process_event()
119 TEST_ASSERT_VAL("failed to allocate thread_map", in test__thread_map_remove()
128 TEST_ASSERT_VAL("thread_map count != 1", threads->nr == 1); in test__thread_map_remove()
136 TEST_ASSERT_VAL("thread_map count != 0", threads->nr == 0); in test__thread_map_remove()
/kernel/linux/linux-5.10/tools/perf/python/
H A Dtwatch.py13 threads = perf.thread_map(thread)
H A Dtracepoint.py20 threads = perf.thread_map(-1)
/kernel/linux/linux-6.6/tools/perf/python/
H A Dtwatch.py13 threads = perf.thread_map(thread)
H A Dtracepoint.py20 threads = perf.thread_map(-1)
/kernel/linux/linux-5.10/tools/perf/util/
H A Dtool.h72 thread_map, member
H A Dsession.c523 if (tool->thread_map == NULL) in perf_tool__fill_defaults()
524 tool->thread_map = process_event_thread_map_stub; in perf_tool__fill_defaults()
878 event->thread_map.nr = bswap_64(event->thread_map.nr); in perf_event__thread_map_swap()
880 for (i = 0; i < event->thread_map.nr; i++) in perf_event__thread_map_swap()
881 event->thread_map.entries[i].pid = bswap_64(event->thread_map.entries[i].pid); in perf_event__thread_map_swap()
1618 return tool->thread_map(session, event); in perf_session__process_user_event()
H A Dsynthetic-events.c783 /* is thread group leader in thread_map? */ in perf_event__synthesize_thread_map()
1068 size = sizeof(event->thread_map); in perf_event__synthesize_thread_map2()
1069 size += threads->nr * sizeof(event->thread_map.entries[0]); in perf_event__synthesize_thread_map2()
1077 event->thread_map.nr = threads->nr; in perf_event__synthesize_thread_map2()
1080 struct perf_record_thread_map_entry *entry = &event->thread_map.entries[i]; in perf_event__synthesize_thread_map2()
H A Devsel.h153 struct thread_map;
H A Devlist.h19 struct thread_map;
H A Devent.c23 #include "thread_map.h"
306 struct perf_thread_map *threads = thread_map__new_event(&event->thread_map); in perf_event__fprintf_thread_map()
/kernel/linux/linux-6.6/tools/perf/util/
H A Dtool.h74 thread_map, member
H A Dsession.c542 if (tool->thread_map == NULL) in perf_tool__fill_defaults()
543 tool->thread_map = process_event_thread_map_stub; in perf_tool__fill_defaults()
906 event->thread_map.nr = bswap_64(event->thread_map.nr); in perf_event__thread_map_swap()
908 for (i = 0; i < event->thread_map.nr; i++) in perf_event__thread_map_swap()
909 event->thread_map.entries[i].pid = bswap_64(event->thread_map.entries[i].pid); in perf_event__thread_map_swap()
1710 return tool->thread_map(session, event); in perf_session__process_user_event()
H A Devsel.h199 struct thread_map;
H A Devlist.h20 struct thread_map;
H A Dsynthetic-events.c885 /* is thread group leader in thread_map? */ in perf_event__synthesize_thread_map()
1191 size = sizeof(event->thread_map); in perf_event__synthesize_thread_map2()
1192 size += threads->nr * sizeof(event->thread_map.entries[0]); in perf_event__synthesize_thread_map2()
1200 event->thread_map.nr = threads->nr; in perf_event__synthesize_thread_map2()
1203 struct perf_record_thread_map_entry *entry = &event->thread_map.entries[i]; in perf_event__synthesize_thread_map2()
H A Devent.c23 #include "thread_map.h"
360 struct perf_thread_map *threads = thread_map__new_event(&event->thread_map); in perf_event__fprintf_thread_map()
/kernel/linux/linux-5.10/tools/lib/perf/include/perf/
H A Devent.h408 struct perf_record_thread_map thread_map; member
/kernel/linux/linux-6.6/tools/lib/perf/include/perf/
H A Devent.h507 struct perf_record_thread_map thread_map; member
/kernel/linux/linux-5.10/tools/perf/
H A Dbuiltin-record.c30 #include "util/thread_map.h"
1244 struct perf_thread_map *thread_map; in record__synthesize_workload() local
1249 thread_map = thread_map__new_by_tid(rec->evlist->workload.pid); in record__synthesize_workload()
1250 if (thread_map == NULL) in record__synthesize_workload()
1253 err = perf_event__synthesize_thread_map(&rec->tool, thread_map, in record__synthesize_workload()
1257 perf_thread_map__put(thread_map); in record__synthesize_workload()
1321 * generate tracking events because there's no thread_map in record__switch_output()
1324 * Create a fake thread_map and directly call in record__switch_output()
H A Dbuiltin-inject.c833 .thread_map = perf_event__repipe_op2_synth, in cmd_inject()
H A Dbuiltin-stat.c57 #include "util/thread_map.h"
1926 st->threads = thread_map__new_event(&event->thread_map); in process_thread_map_event()
1963 .thread_map = process_thread_map_event,
2263 * Initialize thread_map with comm names, in cmd_stat()
/kernel/linux/linux-6.6/tools/perf/
H A Dbuiltin-record.c32 #include "util/thread_map.h"
1756 struct perf_thread_map *thread_map; in record__synthesize_workload() local
1762 thread_map = thread_map__new_by_tid(rec->evlist->workload.pid); in record__synthesize_workload()
1763 if (thread_map == NULL) in record__synthesize_workload()
1766 err = perf_event__synthesize_thread_map(&rec->tool, thread_map, in record__synthesize_workload()
1771 perf_thread_map__put(thread_map); in record__synthesize_workload()
1845 * generate tracking events because there's no thread_map in record__switch_output()
1848 * Create a fake thread_map and directly call in record__switch_output()

Completed in 40 milliseconds

12