Home
last modified time | relevance | path

Searched refs:perf_cpu_map__nr (Results 1 – 25 of 31) sorted by relevance

12

/linux/tools/lib/perf/include/perf/
H A Dcpumap.h60 LIBPERF_API int perf_cpu_map__nr(const struct perf_cpu_map *cpus);
92 (idx) < perf_cpu_map__nr(cpus); \
97 (idx) < perf_cpu_map__nr(cpus); \
102 for ((idx) = 0; (idx) < perf_cpu_map__nr(cpus); (idx)++)
/linux/tools/perf/util/
H A Dtool_pmu.c208 evsel->start_times = xyarray__new(perf_cpu_map__nr(cpus), in evsel__tool_pmu_prepare_open()
355 *result = perf_cpu_map__nr(evsel->core.cpus); in tool_pmu__read_event()
363 *result = perf_cpu_map__nr(evsel->core.pmu_cpus); in tool_pmu__read_event()
377 *result = perf_cpu_map__nr(online); in tool_pmu__read_event()
383 *result = perf_cpu_map__nr(tmp); in tool_pmu__read_event()
396 *result = perf_cpu_map__nr(tmp); in tool_pmu__read_event()
399 *result = perf_cpu_map__nr(online); in tool_pmu__read_event()
H A Dcounts.c63 evsel->counts = perf_counts__new(perf_cpu_map__nr(cpus), nthreads); in evsel__alloc_counts()
H A Dtop.c97 nr_cpus = perf_cpu_map__nr(top->evlist->core.user_requested_cpus); in perf_top__header_snprintf()
H A Dbpf_ftrace.c60 ncpus = perf_cpu_map__nr(ftrace->evlist->core.user_requested_cpus); in perf_ftrace__latency_prepare_bpf()
H A Dbpf_counter.c381 *filter_entry_cnt = perf_cpu_map__nr(evsel__cpus(evsel)); in bperf_check_target()
614 num_cpu = perf_cpu_map__nr(all_cpu_map); in bperf_sync_counters()
H A Dcputopo.c404 nr = (u32) perf_cpu_map__nr(node_map); in numa_topology__new()
H A Dbpf_off_cpu.c168 ncpus = perf_cpu_map__nr(evlist->core.user_requested_cpus); in off_cpu_prepare()
/linux/tools/perf/tests/
H A Dcpumap.c40 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(a) == nr); in __test__cpu_map_merge()
214 TEST_ASSERT_EQUAL("failed to intersect map: bad nr", perf_cpu_map__nr(c), nr); in __test__cpu_map_intersect()
H A Devent_update.c72 TEST_ASSERT_VAL("wrong cpus", perf_cpu_map__nr(map) == 3); in process_event_cpus()
/linux/tools/perf/arch/x86/util/
H A Dpmu.c66 snc_nodes = perf_cpu_map__nr(cache_cpus) / perf_cpu_map__nr(node_cpus); in snc_nodes_per_l3_cache()
248 adjusted[pmu_snc] = perf_cpu_map__empty_new(perf_cpu_map__nr(pmu->cpus)); in gnr_uncore_cha_imc_adjust_cpumask_for_snc()
/linux/tools/perf/bench/
H A Dfutex-wake.c119 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in block_threads()
170 params.nthreads = perf_cpu_map__nr(cpu); in bench_futex_wake()
H A Devlist-open-close.c55 cnt += evsel->core.threads->nr * perf_cpu_map__nr(evsel->core.cpus); in evlist__count_evsel_fds()
147 printf(" Number of cpus:\t%d\n", perf_cpu_map__nr(evlist->core.user_requested_cpus)); in bench_evlist_open_close__run()
H A Dfutex-hash.c160 params.nthreads = perf_cpu_map__nr(cpu); in bench_futex_hash()
195 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in bench_futex_hash()
H A Dfutex-lock-pi.c151 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in create_threads()
193 params.nthreads = perf_cpu_map__nr(cpu); in bench_futex_lock_pi()
H A Dfutex-requeue.c146 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in block_threads()
195 params.nthreads = perf_cpu_map__nr(cpu); in bench_futex_requeue()
H A Dfutex-wake-parallel.c170 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); in block_threads()
276 params.nthreads = perf_cpu_map__nr(cpu); in bench_futex_wake_parallel()
H A Depoll-ctl.c264 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()
H A Depoll-wait.c353 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, in do_threads()
474 nthreads = perf_cpu_map__nr(cpu) - 1; in bench_epoll_wait()
/linux/tools/lib/perf/
H A Dlibperf.map9 perf_cpu_map__nr;
H A Devsel.c157 perf_evsel__alloc_fd(evsel, perf_cpu_map__nr(cpus), threads->nr) < 0) in perf_evsel__open()
504 for (i = 0; i < perf_cpu_map__nr(evsel->cpus) && !err; i++) in perf_evsel__apply_filter()
H A Dcpumap.c272 int perf_cpu_map__nr(const struct perf_cpu_map *cpus) in perf_cpu_map__nr() function
/linux/tools/lib/perf/tests/
H A Dtest-evlist.c77 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()
H A Dtest-evsel.c39 for (idx = 0; idx < perf_cpu_map__nr(cpus); idx++) { in test_stat_cpu()
/linux/tools/lib/perf/Documentation/
H A Dlibperf.txt47 int perf_cpu_map__nr(const struct perf_cpu_map *cpus);

12