Home
last modified time | relevance | path

Searched refs:thread_idx (Results 1 – 9 of 9) sorted by relevance

/linux/tools/perf/tests/
H A Dtopology.c140 TEST_ASSERT_VAL("Cpu map - Thread IDX is set", id.thread_idx == -1); in check_cpu_topology()
155 TEST_ASSERT_VAL("Core map - Thread IDX is set", id.thread_idx == -1); in check_cpu_topology()
170 TEST_ASSERT_VAL("Die map - Thread IDX is set", id.thread_idx == -1); in check_cpu_topology()
183 TEST_ASSERT_VAL("Socket map - Thread IDX is set", id.thread_idx == -1); in check_cpu_topology()
195 TEST_ASSERT_VAL("Node map - Thread IDX is set", id.thread_idx == -1); in check_cpu_topology()
/linux/tools/perf/util/
H A Dcpumap.c250 return a->thread_idx - b->thread_idx; in aggr_cpu_id__cmp()
735 return a->thread_idx == b->thread_idx && in aggr_cpu_id__equal()
748 return a->thread_idx == -1 && in aggr_cpu_id__is_empty()
762 .thread_idx = -1, in aggr_cpu_id__empty()
H A Dpython.c1148 int cpu = 0, cpu_idx, thread = 0, thread_idx; in pyrf_evsel__read() local
1164 thread_idx = perf_thread_map__idx(evsel->core.threads, thread); in pyrf_evsel__read()
1165 if (thread_idx < 0) { in pyrf_evsel__read()
1175 old_count = perf_counts(evsel->prev_raw_counts, cpu_idx, thread_idx); in pyrf_evsel__read()
1176 new_count = perf_counts(evsel->counts, cpu_idx, thread_idx); in pyrf_evsel__read()
1178 evsel__read_counter(evsel, cpu_idx, thread_idx); in pyrf_evsel__read()
1337 int cpu_idx, int thread_idx) in prepare_metric() argument
1381 old_count = perf_counts(cur->prev_raw_counts, cpu_idx, thread_idx); in prepare_metric()
1382 new_count = perf_counts(cur->counts, cpu_idx, thread_idx); in prepare_metric()
1384 evsel__read_counter(cur, cpu_idx, thread_idx); in prepare_metric()
[all …]
H A Dcpumap.h12 int thread_idx;
13 int thread_idx; global() member
H A Dstat-display.c297 COMM_LEN, perf_thread_map__comm(evsel->core.threads, id.thread_idx), in print_aggr_id_std()
298 PID_LEN, perf_thread_map__pid(evsel->core.threads, id.thread_idx)); in print_aggr_id_std()
352 perf_thread_map__comm(evsel->core.threads, id.thread_idx), in print_aggr_id_csv()
353 perf_thread_map__pid(evsel->core.threads, id.thread_idx), in print_aggr_id_csv()
403 perf_thread_map__comm(evsel->core.threads, id.thread_idx), in print_aggr_id_json()
404 perf_thread_map__pid(evsel->core.threads, id.thread_idx)); in print_aggr_id_json()
H A Devsel.c2167 static void evsel__remove_fd(struct evsel *pos, int nr_cpus, int nr_threads, int thread_idx) in evsel__remove_fd() argument
2170 for (int thread = thread_idx; thread < nr_threads - 1; thread++) in evsel__remove_fd()
2176 int nr_threads, int thread_idx) in update_fds() argument
2180 if (cpu_map_idx >= nr_cpus || thread_idx >= nr_threads) in update_fds()
2186 evsel__remove_fd(pos, nr_cpus, nr_threads, thread_idx); in update_fds()
/linux/lib/
H A Dtest_kmod.c107 unsigned int thread_idx; member
236 dev_dbg(test_dev->dev, "Ran thread %u\n", info->thread_idx); in run_request()
242 kmod_test_done_check(test_dev, info->thread_idx); in run_request()
264 info->thread_idx, info->ret_sync); in tally_work_test()
271 info->thread_idx, info->fs_sync ? config->test_fs : in tally_work_test()
325 info->thread_idx = idx; in try_one_request()
/linux/tools/perf/
H A Dbuiltin-stat.c1592 id.thread_idx = s; in perf_stat_init_aggr_mode()
1893 id.thread_idx = s; in perf_stat_init_aggr_mode_file()
H A Dbuiltin-record.c1973 int cpu_idx, int thread_idx, u64 lost_count, in __record__save_lost_samples() argument
1983 sid = xyarray__entry(evsel->core.sample_id, cpu_idx, thread_idx); in __record__save_lost_samples()