Home
last modified time | relevance | path

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

1234

/linux-6.12.1/tools/lib/perf/include/perf/
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);
39 LIBPERF_API struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list);
40 LIBPERF_API struct perf_cpu_map *perf_cpu_map__read(FILE *file);
41 LIBPERF_API struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map);
42 LIBPERF_API struct perf_cpu_map *perf_cpu_map__merge(struct perf_cpu_map *orig,
43 struct perf_cpu_map *other);
44 LIBPERF_API struct perf_cpu_map *perf_cpu_map__intersect(struct perf_cpu_map *orig,
45 struct perf_cpu_map *other);
[all …]
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);
Devlist.h10 struct perf_cpu_map;
32 struct perf_cpu_map *cpus,
/linux-6.12.1/tools/lib/perf/
Dcpumap.c14 void perf_cpu_map__set_nr(struct perf_cpu_map *map, int nr_cpus) in perf_cpu_map__set_nr()
19 struct perf_cpu_map *perf_cpu_map__alloc(int nr_cpus) in perf_cpu_map__alloc()
21 RC_STRUCT(perf_cpu_map) *cpus; in perf_cpu_map__alloc()
22 struct perf_cpu_map *result; in perf_cpu_map__alloc()
35 struct perf_cpu_map *perf_cpu_map__new_any_cpu(void) in perf_cpu_map__new_any_cpu()
37 struct perf_cpu_map *cpus = perf_cpu_map__alloc(1); in perf_cpu_map__new_any_cpu()
45 static void cpu_map__delete(struct perf_cpu_map *map) in cpu_map__delete()
54 struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map) in perf_cpu_map__get()
56 struct perf_cpu_map *result; in perf_cpu_map__get()
64 void perf_cpu_map__put(struct perf_cpu_map *map) in perf_cpu_map__put()
[all …]
/linux-6.12.1/tools/lib/perf/include/internal/
Dcpumap.h16 DECLARE_RC_STRUCT(perf_cpu_map) { in DECLARE_RC_STRUCT() argument
28 struct perf_cpu_map *perf_cpu_map__alloc(int nr_cpus);
29 int perf_cpu_map__idx(const struct perf_cpu_map *cpus, struct perf_cpu cpu);
30 bool perf_cpu_map__is_subset(const struct perf_cpu_map *a, const struct perf_cpu_map *b);
32 void perf_cpu_map__set_nr(struct perf_cpu_map *map, int nr_cpus);
34 static inline refcount_t *perf_cpu_map__refcnt(struct perf_cpu_map *map) in perf_cpu_map__refcnt()
Devlist.h13 struct perf_cpu_map;
26 struct perf_cpu_map *user_requested_cpus;
28 struct perf_cpu_map *all_cpus;
Devsel.h45 struct perf_cpu_map *cpus;
52 struct perf_cpu_map *own_cpus;
/linux-6.12.1/tools/perf/tests/
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("4,2,1"); in test__cpu_map_merge()
162 struct perf_cpu_map *b = perf_cpu_map__new("4,5,7"); in test__cpu_map_merge()
163 struct perf_cpu_map *c = perf_cpu_map__merge(a, b); in test__cpu_map_merge()
176 struct perf_cpu_map *a = perf_cpu_map__new(lhs); in __test__cpu_map_intersect()
177 struct perf_cpu_map *b = perf_cpu_map__new(rhs); in __test__cpu_map_intersect()
[all …]
Devent-times.c115 struct perf_cpu_map *cpus; in attach__cpu_disabled()
144 struct perf_cpu_map *cpus; in attach__cpu_enabled()
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()
Dbitmap.c13 struct perf_cpu_map *map = perf_cpu_map__new(str); in get_bitmap()
/linux-6.12.1/tools/perf/util/
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,
Dcpumap.c65 static struct perf_cpu_map *cpu_map__from_entries(const struct perf_record_cpu_map_data *data) in cpu_map__from_entries()
67 struct perf_cpu_map *map; in cpu_map__from_entries()
89 static struct perf_cpu_map *cpu_map__from_mask(const struct perf_record_cpu_map_data *data) in cpu_map__from_mask()
93 struct perf_cpu_map *map; in cpu_map__from_mask()
116 static struct perf_cpu_map *cpu_map__from_range(const struct perf_record_cpu_map_data *data) in cpu_map__from_range()
118 struct perf_cpu_map *map; in cpu_map__from_range()
136 struct perf_cpu_map *cpu_map__new_data(const struct perf_record_cpu_map_data *data) in cpu_map__new_data()
151 size_t cpu_map__fprintf(struct perf_cpu_map *map, FILE *fp) in cpu_map__fprintf()
161 struct perf_cpu_map *perf_cpu_map__empty_new(int nr) in perf_cpu_map__empty_new()
163 struct perf_cpu_map *cpus = perf_cpu_map__alloc(nr); in perf_cpu_map__empty_new()
[all …]
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()
Devsel.h228 struct perf_cpu_map;
232 static inline struct perf_cpu_map *evsel__cpus(struct evsel *evsel) in evsel__cpus()
364 int evsel__open_per_cpu(struct evsel *evsel, struct perf_cpu_map *cpus, int cpu_map_idx);
366 int evsel__open(struct evsel *evsel, struct perf_cpu_map *cpus,
369 int evsel__prepare_open(struct evsel *evsel, struct perf_cpu_map *cpus,
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()
Denv.h10 struct perf_cpu_map;
33 struct perf_cpu_map *map;
Dpmu.h17 struct perf_cpu_map;
111 struct perf_cpu_map *cpus;
/linux-6.12.1/tools/lib/perf/Documentation/
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__read(FILE *file);
43 struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map);
44 struct perf_cpu_map *perf_cpu_map__merge(struct perf_cpu_map *orig,
45 struct perf_cpu_map *other);
46 void perf_cpu_map__put(struct perf_cpu_map *map);
47 int perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx);
48 int perf_cpu_map__nr(const struct perf_cpu_map *cpus);
[all …]
/linux-6.12.1/tools/perf/arch/arm/util/
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()
Dpmu.c21 struct perf_cpu_map *intersect; in perf_pmu__arch_init()
/linux-6.12.1/tools/perf/arch/arm64/util/
Dheader.c17 static int _get_cpuid(char *buf, size_t sz, struct perf_cpu_map *cpus) in _get_cpuid()
55 struct perf_cpu_map *cpus = perf_cpu_map__new_online_cpus(); in get_cpuid()
/linux-6.12.1/tools/perf/bench/
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()
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.12.1/tools/lib/perf/tests/
Dtest-cpumap.c16 struct perf_cpu_map *cpus; in test_cpumap()

1234