Home
last modified time | relevance | path

Searched refs:perf_cpu_map (Results 1 – 25 of 83) sorted by relevance

1234

/linux-6.15/tools/lib/perf/include/perf/
H A Dcpumap.h19 struct perf_cpu_map;
24 LIBPERF_API struct perf_cpu_map *perf_cpu_map__new_any_cpu(void);
33 LIBPERF_API struct perf_cpu_map *perf_cpu_map__new_online_cpus(void);
40 LIBPERF_API struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map);
41 LIBPERF_API int perf_cpu_map__merge(struct perf_cpu_map **orig,
42 struct perf_cpu_map *other);
43 LIBPERF_API struct perf_cpu_map *perf_cpu_map__intersect(struct perf_cpu_map *orig,
44 struct perf_cpu_map *other);
45 LIBPERF_API void perf_cpu_map__put(struct perf_cpu_map *map);
58 LIBPERF_API int perf_cpu_map__nr(const struct perf_cpu_map *cpus);
[all …]
H A Devsel.h12 struct perf_cpu_map;
30 LIBPERF_API int perf_evsel__open(struct perf_evsel *evsel, struct perf_cpu_map *cpus,
44 LIBPERF_API struct perf_cpu_map *perf_evsel__cpus(struct perf_evsel *evsel);
H A Devlist.h10 struct perf_cpu_map;
32 struct perf_cpu_map *cpus,
/linux-6.15/tools/lib/perf/
H A Dcpumap.c25 RC_STRUCT(perf_cpu_map) *cpus; in perf_cpu_map__alloc()
26 struct perf_cpu_map *result; in perf_cpu_map__alloc()
58 struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map) in perf_cpu_map__get()
60 struct perf_cpu_map *result; in perf_cpu_map__get()
80 struct perf_cpu_map *cpus; in cpu_map__new_sysconf()
106 struct perf_cpu_map *cpus = NULL; in cpu_map__new_sysfs_online()
315 bool perf_cpu_map__equal(const struct perf_cpu_map *lhs, const struct perf_cpu_map *rhs) in perf_cpu_map__equal()
368 bool perf_cpu_map__is_subset(const struct perf_cpu_map *a, const struct perf_cpu_map *b) in perf_cpu_map__is_subset()
398 int perf_cpu_map__merge(struct perf_cpu_map **orig, struct perf_cpu_map *other) in perf_cpu_map__merge()
403 struct perf_cpu_map *merged; in perf_cpu_map__merge()
[all …]
/linux-6.15/tools/lib/perf/include/internal/
H A Dcpumap.h16 DECLARE_RC_STRUCT(perf_cpu_map) { in DECLARE_RC_STRUCT() argument
24 struct perf_cpu_map *perf_cpu_map__alloc(int nr_cpus);
25 int perf_cpu_map__idx(const struct perf_cpu_map *cpus, struct perf_cpu cpu);
26 bool perf_cpu_map__is_subset(const struct perf_cpu_map *a, const struct perf_cpu_map *b);
28 void perf_cpu_map__set_nr(struct perf_cpu_map *map, int nr_cpus);
30 static inline refcount_t *perf_cpu_map__refcnt(struct perf_cpu_map *map) in perf_cpu_map__refcnt()
H A Devlist.h13 struct perf_cpu_map;
26 struct perf_cpu_map *user_requested_cpus;
28 struct perf_cpu_map *all_cpus;
H A Devsel.h95 struct perf_cpu_map *cpus;
102 struct perf_cpu_map *own_cpus;
/linux-6.15/tools/perf/tests/
H A Dcpumap.c21 struct perf_cpu_map *map; in process_event_mask()
57 struct perf_cpu_map *map; in process_event_cpus()
83 struct perf_cpu_map *map; in process_event_range_cpus()
105 struct perf_cpu_map *cpus; in test__cpu_map_synthesize()
135 struct perf_cpu_map *map = perf_cpu_map__new(str); in cpu_map_print()
161 struct perf_cpu_map *a = perf_cpu_map__new(lhs); in __test__cpu_map_merge()
162 struct perf_cpu_map *b = perf_cpu_map__new(rhs); in __test__cpu_map_merge()
209 struct perf_cpu_map *a = perf_cpu_map__new(lhs); in __test__cpu_map_intersect()
210 struct perf_cpu_map *b = perf_cpu_map__new(rhs); in __test__cpu_map_intersect()
250 struct perf_cpu_map *one = perf_cpu_map__new("1"); in test__cpu_map_equal()
[all …]
H A Devent-times.c115 struct perf_cpu_map *cpus; in attach__cpu_disabled()
144 struct perf_cpu_map *cpus; in attach__cpu_enabled()
H A Dbitmap.c13 struct perf_cpu_map *map = perf_cpu_map__new(str); in get_bitmap()
H A Dtopology.c62 static int check_cpu_topology(char *path, struct perf_cpu_map *map) in check_cpu_topology()
208 struct perf_cpu_map *map; in test__session_topology()
/linux-6.15/tools/perf/util/
H A Dcpumap.h52 struct perf_cpu_map *perf_cpu_map__empty_new(int nr);
54 struct perf_cpu_map *cpu_map__new_data(const struct perf_record_cpu_map_data *data);
55 size_t cpu_map__snprint(struct perf_cpu_map *map, char *buf, size_t size);
56 size_t cpu_map__snprint_mask(struct perf_cpu_map *map, char *buf, size_t size);
57 size_t cpu_map__fprintf(struct perf_cpu_map *map, FILE *fp);
58 struct perf_cpu_map *cpu_map__online(void); /* thread unsafe */
69 static inline bool cpu_map__is_dummy(const struct perf_cpu_map *cpus) in cpu_map__is_dummy()
113 struct cpu_aggr_map *cpu_aggr_map__new(const struct perf_cpu_map *cpus,
H A Dcpumap.c67 struct perf_cpu_map *map; in cpu_map__from_entries()
97 struct perf_cpu_map *map; in cpu_map__from_mask()
129 struct perf_cpu_map *map; in cpu_map__from_range()
169 size_t cpu_map__fprintf(struct perf_cpu_map *map, FILE *fp) in cpu_map__fprintf()
179 struct perf_cpu_map *perf_cpu_map__empty_new(int nr) in perf_cpu_map__empty_new()
181 struct perf_cpu_map *cpus = perf_cpu_map__alloc(nr); in perf_cpu_map__empty_new()
253 struct cpu_aggr_map *cpu_aggr_map__new(const struct perf_cpu_map *cpus, in cpu_aggr_map__new()
626 size_t cpu_map__snprint(struct perf_cpu_map *map, char *buf, size_t size) in cpu_map__snprint()
680 size_t cpu_map__snprint_mask(struct perf_cpu_map *map, char *buf, size_t size) in cpu_map__snprint_mask()
718 struct perf_cpu_map *cpu_map__online(void) /* thread unsafe */ in cpu_map__online()
[all …]
H A Devsel.h218 struct perf_cpu_map;
222 static inline struct perf_cpu_map *evsel__cpus(struct evsel *evsel) in evsel__cpus()
342 int evsel__open_per_cpu(struct evsel *evsel, struct perf_cpu_map *cpus, int cpu_map_idx);
344 int evsel__open(struct evsel *evsel, struct perf_cpu_map *cpus,
347 int evsel__prepare_open(struct evsel *evsel, struct perf_cpu_map *cpus,
H A Dperf_api_probe.c63 struct perf_cpu_map *cpus; in perf_probe_api()
139 struct perf_cpu_map *cpus; in perf_can_record_cpu_wide()
H A Dcputopo.c179 struct perf_cpu_map *user_requested_cpus; in cpu_topology__core_wide()
192 struct perf_cpu_map *core_cpus = perf_cpu_map__new(core_cpu_list); in cpu_topology__core_wide()
264 struct perf_cpu_map *map; in cpu_topology__new()
377 struct perf_cpu_map *node_map = NULL; in numa_topology__new()
H A Denv.h10 struct perf_cpu_map;
33 struct perf_cpu_map *map;
H A Dpmu.h17 struct perf_cpu_map;
116 struct perf_cpu_map *cpus;
/linux-6.15/tools/lib/perf/Documentation/
H A Dlibperf.txt38 struct perf_cpu_map;
40 struct perf_cpu_map *perf_cpu_map__new_any_cpu(void);
41 struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list);
42 struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map);
43 struct perf_cpu_map *perf_cpu_map__merge(struct perf_cpu_map *orig,
45 void perf_cpu_map__put(struct perf_cpu_map *map);
46 int perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx);
47 int perf_cpu_map__nr(const struct perf_cpu_map *cpus);
49 int perf_cpu_map__max(struct perf_cpu_map *map);
99 struct perf_cpu_map *cpus,
[all …]
/linux-6.15/tools/perf/arch/arm64/util/
H A Darm-spe.c60 static struct perf_cpu_map *arm_spe_find_cpus(struct evlist *evlist) in arm_spe_find_cpus()
62 struct perf_cpu_map *event_cpus = evlist->core.user_requested_cpus; in arm_spe_find_cpus()
63 struct perf_cpu_map *online_cpus = perf_cpu_map__new_online_cpus(); in arm_spe_find_cpus()
64 struct perf_cpu_map *intersect_cpus; in arm_spe_find_cpus()
82 struct perf_cpu_map *cpu_map = arm_spe_find_cpus(evlist); in arm_spe_info_priv_size()
146 struct perf_cpu_map *cpu_map; in arm_spe_info_fill()
251 static void arm_spe_setup_evsel(struct evsel *evsel, struct perf_cpu_map *cpus) in arm_spe_setup_evsel()
358 struct perf_cpu_map *cpus = evlist->core.user_requested_cpus; in arm_spe_setup_tracking_event()
391 struct perf_cpu_map *cpus = evlist->core.user_requested_cpus; in arm_spe_recording_options()
/linux-6.15/tools/perf/arch/arm/util/
H A Dcs-etm.c202 struct perf_cpu_map *event_cpus = evsel->evlist->core.user_requested_cpus; in cs_etm_validate_config()
203 struct perf_cpu_map *intersect_cpus; in cs_etm_validate_config()
213 struct perf_cpu_map *online_cpus = perf_cpu_map__new_online_cpus(); in cs_etm_validate_config()
314 struct perf_cpu_map *cpus = evlist->core.user_requested_cpus; in cs_etm_recording_options()
543 struct perf_cpu_map *event_cpus = evlist->core.user_requested_cpus; in cs_etm_info_priv_size()
544 struct perf_cpu_map *intersect_cpus; in cs_etm_info_priv_size()
550 struct perf_cpu_map *online_cpus = perf_cpu_map__new_online_cpus(); in cs_etm_info_priv_size()
781 struct perf_cpu_map *cpu_map; in cs_etm_info_fill()
782 struct perf_cpu_map *event_cpus = session->evlist->core.user_requested_cpus; in cs_etm_info_fill()
783 struct perf_cpu_map *online_cpus = perf_cpu_map__new_online_cpus(); in cs_etm_info_fill()
H A Dpmu.c21 struct perf_cpu_map *intersect, *online = cpu_map__online(); in perf_pmu__arch_init()
/linux-6.15/tools/perf/bench/
H A Dfutex-wake.c98 static void block_threads(pthread_t *w, struct perf_cpu_map *cpu) in block_threads()
144 struct perf_cpu_map *cpu; in bench_futex_wake()
H A Dfutex-lock-pi.c121 static void create_threads(struct worker *w, struct perf_cpu_map *cpu) in create_threads()
169 struct perf_cpu_map *cpu; in bench_futex_lock_pi()
/linux-6.15/tools/lib/perf/tests/
H A Dtest-cpumap.c16 struct perf_cpu_map *cpus; in test_cpumap()

1234