/tools/lib/perf/include/perf/ |
A D | cpumap.h | 19 struct perf_cpu_map; 24 LIBPERF_API struct perf_cpu_map *perf_cpu_map__new_any_cpu(void); 41 LIBPERF_API struct perf_cpu_map *perf_cpu_map__new_int(int cpu); 42 LIBPERF_API struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map); 43 LIBPERF_API int perf_cpu_map__merge(struct perf_cpu_map **orig, 44 struct perf_cpu_map *other); 45 LIBPERF_API struct perf_cpu_map *perf_cpu_map__intersect(struct perf_cpu_map *orig, 46 struct perf_cpu_map *other); 47 LIBPERF_API void perf_cpu_map__put(struct perf_cpu_map *map); 60 LIBPERF_API int perf_cpu_map__nr(const struct perf_cpu_map *cpus); [all …]
|
A D | evsel.h | 12 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);
|
A D | evlist.h | 10 struct perf_cpu_map; 32 struct perf_cpu_map *cpus,
|
/tools/lib/perf/ |
A D | cpumap.c | 25 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() 325 bool perf_cpu_map__equal(const struct perf_cpu_map *lhs, const struct perf_cpu_map *rhs) in perf_cpu_map__equal() 378 bool perf_cpu_map__is_subset(const struct perf_cpu_map *a, const struct perf_cpu_map *b) in perf_cpu_map__is_subset() 408 int perf_cpu_map__merge(struct perf_cpu_map **orig, struct perf_cpu_map *other) in perf_cpu_map__merge() 413 struct perf_cpu_map *merged; in perf_cpu_map__merge() [all …]
|
/tools/lib/perf/include/internal/ |
A D | cpumap.h | 16 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()
|
A D | evlist.h | 13 struct perf_cpu_map; 26 struct perf_cpu_map *user_requested_cpus; 28 struct perf_cpu_map *all_cpus;
|
A D | evsel.h | 95 struct perf_cpu_map *cpus; 102 struct perf_cpu_map *pmu_cpus;
|
/tools/perf/util/ |
A D | cpumap.h | 52 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,
|
A D | affinity.h | 7 struct perf_cpu_map; 17 void cpu_map__set_affinity(const struct perf_cpu_map *cpumap);
|
A D | cpumap.c | 67 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 …]
|
A D | evsel.h | 228 struct perf_cpu_map; 232 static inline struct perf_cpu_map *evsel__cpus(struct evsel *evsel) in evsel__cpus() 355 struct perf_cpu_map *cpus, int cpu_map_idx, 357 int evsel__open_per_cpu(struct evsel *evsel, struct perf_cpu_map *cpus, int cpu_map_idx); 359 int evsel__open(struct evsel *evsel, struct perf_cpu_map *cpus, 362 int evsel__prepare_open(struct evsel *evsel, struct perf_cpu_map *cpus, 581 void evsel__warn_user_requested_cpus(struct evsel *evsel, struct perf_cpu_map *user_requested_cpus);
|
A D | perf_api_probe.c | 63 struct perf_cpu_map *cpus; in perf_probe_api() 139 struct perf_cpu_map *cpus; in perf_can_record_cpu_wide()
|
A D | env.h | 10 struct perf_cpu_map; 33 struct perf_cpu_map *map;
|
A D | tool_pmu.h | 47 struct perf_cpu_map *cpus,
|
A D | tool_pmu.c | 202 struct perf_cpu_map *cpus, in evsel__tool_pmu_prepare_open() 370 struct perf_cpu_map *online = cpu_map__online(); in tool_pmu__read_event() 380 struct perf_cpu_map *tmp = in tool_pmu__read_event() 393 struct perf_cpu_map *tmp = in tool_pmu__read_event()
|
A D | cputopo.c | 179 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()
|
/tools/perf/tests/ |
A D | cpumap.c | 21 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 …]
|
A D | bitmap.c | 13 struct perf_cpu_map *map = perf_cpu_map__new(str); in get_bitmap()
|
A D | event-times.c | 113 struct perf_cpu_map *cpus; in attach__cpu_disabled() 142 struct perf_cpu_map *cpus; in attach__cpu_enabled()
|
/tools/lib/perf/Documentation/ |
A D | libperf.txt | 38 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 …]
|
/tools/perf/arch/x86/util/ |
A D | pmu.c | 41 static struct perf_cpu_map *read_sysfs_cpu_map(const char *sysfs_path) in read_sysfs_cpu_map() 43 struct perf_cpu_map *cpus; in read_sysfs_cpu_map() 61 struct perf_cpu_map *node_cpus = in snc_nodes_per_l3_cache() 63 struct perf_cpu_map *cache_cpus = in snc_nodes_per_l3_cache() 175 struct perf_cpu_map *node_cpus; in uncore_cha_imc_compute_cpu_adjust() 225 static struct perf_cpu_map *cha_adjusted[MAX_SNCS]; in gnr_uncore_cha_imc_adjust_cpumask_for_snc() 226 static struct perf_cpu_map *imc_adjusted[MAX_SNCS]; in gnr_uncore_cha_imc_adjust_cpumask_for_snc() 227 struct perf_cpu_map **adjusted = cha ? cha_adjusted : imc_adjusted; in gnr_uncore_cha_imc_adjust_cpumask_for_snc()
|
/tools/perf/arch/arm64/util/ |
A D | arm-spe.c | 60 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()
|
/tools/perf/arch/arm/util/ |
A D | cs-etm.c | 202 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()
|
A D | pmu.c | 21 struct perf_cpu_map *intersect, *online = cpu_map__online(); in perf_pmu__arch_init()
|
/tools/lib/perf/tests/ |
A D | test-cpumap.c | 16 struct perf_cpu_map *cpus; in test_cpumap()
|