Searched refs:perf_cpu_map__nr (Results 1 – 25 of 37) sorted by relevance
12
| /linux/tools/lib/perf/include/perf/ |
| A D | cpumap.h | 59 LIBPERF_API int perf_cpu_map__nr(const struct perf_cpu_map *cpus); 91 (idx) < perf_cpu_map__nr(cpus); \ 96 (idx) < perf_cpu_map__nr(cpus); \ 101 for ((idx) = 0; (idx) < perf_cpu_map__nr(cpus); (idx)++)
|
| /linux/tools/perf/tests/ |
| A D | cpumap.c | 40 TEST_ASSERT_VAL("wrong nr", perf_cpu_map__nr(map) == 20); in process_event_mask() 68 TEST_ASSERT_VAL("wrong nr", perf_cpu_map__nr(map) == 2); in process_event_cpus() 94 TEST_ASSERT_VAL("wrong nr", perf_cpu_map__nr(map) == 256); in process_event_range_cpus() 166 TEST_ASSERT_VAL("failed to merge map: bad nr", perf_cpu_map__nr(c) == 5); in test__cpu_map_merge() 181 TEST_ASSERT_EQUAL("failed to intersect map: bad nr", perf_cpu_map__nr(c), nr); in __test__cpu_map_intersect()
|
| A D | event_update.c | 72 TEST_ASSERT_VAL("wrong cpus", perf_cpu_map__nr(map) == 3); in process_event_cpus()
|
| /linux/tools/perf/bench/ |
| A D | futex-wake.c | 116 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in block_threads() 167 params.nthreads = perf_cpu_map__nr(cpu); in bench_futex_wake()
|
| A D | evlist-open-close.c | 74 cnt += evsel->core.threads->nr * perf_cpu_map__nr(evsel->core.cpus); in evlist__count_evsel_fds() 154 printf(" Number of cpus:\t%d\n", perf_cpu_map__nr(evlist->core.user_requested_cpus)); in bench_evlist_open_close__run()
|
| A D | futex-hash.c | 156 params.nthreads = perf_cpu_map__nr(cpu); in bench_futex_hash() 190 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in bench_futex_hash()
|
| A D | futex-lock-pi.c | 148 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in create_threads() 190 params.nthreads = perf_cpu_map__nr(cpu); in bench_futex_lock_pi()
|
| A D | futex-requeue.c | 143 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in block_threads() 192 params.nthreads = perf_cpu_map__nr(cpu); in bench_futex_requeue()
|
| A D | futex-wake-parallel.c | 167 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in block_threads() 272 params.nthreads = perf_cpu_map__nr(cpu); in bench_futex_wake_parallel()
|
| A D | epoll-ctl.c | 264 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, in do_threads() 350 nthreads = perf_cpu_map__nr(cpu); in bench_epoll_ctl()
|
| A D | epoll-wait.c | 353 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, in do_threads() 469 nthreads = perf_cpu_map__nr(cpu) - 1; in bench_epoll_wait()
|
| /linux/tools/lib/perf/ |
| A D | libperf.map | 10 perf_cpu_map__nr;
|
| A D | evlist.c | 327 int nr_cpus = perf_cpu_map__nr(evlist->all_cpus); in perf_evlist__alloc_pollfd() 553 int nr_cpus = perf_cpu_map__nr(evlist->all_cpus); in mmap_per_thread() 595 int nr_cpus = perf_cpu_map__nr(evlist->all_cpus); in mmap_per_cpu() 627 nr_mmaps = perf_cpu_map__nr(evlist->all_cpus); in perf_evlist__nr_mmaps()
|
| A D | evsel.c | 144 perf_evsel__alloc_fd(evsel, perf_cpu_map__nr(cpus), threads->nr) < 0) in perf_evsel__open() 491 for (i = 0; i < perf_cpu_map__nr(evsel->cpus) && !err; i++) in perf_evsel__apply_filter()
|
| /linux/tools/perf/util/ |
| A D | cpumap.c | 241 struct cpu_aggr_map *c = cpu_aggr_map__empty_new(perf_cpu_map__nr(cpus)); in cpu_aggr_map__new() 265 if (c->nr != perf_cpu_map__nr(cpus)) { in cpu_aggr_map__new() 608 for (i = 0; i < perf_cpu_map__nr(map) + 1; i++) { in cpu_map__snprint() 610 bool last = i == perf_cpu_map__nr(map); in cpu_map__snprint()
|
| A D | counts.c | 63 evsel->counts = perf_counts__new(perf_cpu_map__nr(cpus), nthreads); in evsel__alloc_counts()
|
| A D | cpumap.h | 71 return perf_cpu_map__nr(cpus) == 1 && perf_cpu_map__cpu(cpus, 0).cpu == -1; in cpu_map__is_dummy()
|
| A D | top.c | 97 nr_cpus = perf_cpu_map__nr(top->evlist->core.user_requested_cpus); in perf_top__header_snprintf()
|
| A D | bpf_ftrace.c | 41 ncpus = perf_cpu_map__nr(ftrace->evlist->core.user_requested_cpus); in perf_ftrace__latency_prepare_bpf()
|
| A D | bpf_counter.c | 381 *filter_entry_cnt = perf_cpu_map__nr(evsel__cpus(evsel)); in bperf_check_target() 593 num_cpu = perf_cpu_map__nr(all_cpu_map); in bperf_sync_counters()
|
| A D | bpf_off_cpu.c | 147 ncpus = perf_cpu_map__nr(evlist->core.user_requested_cpus); in off_cpu_prepare()
|
| A D | cputopo.c | 404 nr = (u32) perf_cpu_map__nr(node_map); in numa_topology__new()
|
| /linux/tools/lib/perf/tests/ |
| A D | test-evlist.c | 77 for (idx = 0; idx < perf_cpu_map__nr(cpus); idx++) { in test_stat_cpu() 414 __T("failed count", count >= perf_cpu_map__nr(cpus)); in test_mmap_cpus()
|
| A D | test-evsel.c | 39 for (idx = 0; idx < perf_cpu_map__nr(cpus); idx++) { in test_stat_cpu()
|
| /linux/tools/lib/perf/Documentation/ |
| A D | libperf.txt | 48 int perf_cpu_map__nr(const struct perf_cpu_map *cpus);
|
Completed in 38 milliseconds
12