| /Linux-v6.1/tools/lib/perf/include/perf/ |
| D | cpumap.h | 15 LIBPERF_API struct perf_cpu_map *perf_cpu_map__dummy_new(void); 16 LIBPERF_API struct perf_cpu_map *perf_cpu_map__default_new(void); 17 LIBPERF_API struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list); 18 LIBPERF_API struct perf_cpu_map *perf_cpu_map__read(FILE *file); 19 LIBPERF_API struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map); 20 LIBPERF_API struct perf_cpu_map *perf_cpu_map__merge(struct perf_cpu_map *orig, 21 struct perf_cpu_map *other); 22 LIBPERF_API void perf_cpu_map__put(struct perf_cpu_map *map); 23 LIBPERF_API struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx); 24 LIBPERF_API int perf_cpu_map__nr(const struct perf_cpu_map *cpus); [all …]
|
| 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);
|
| D | evlist.h | 10 struct perf_cpu_map; 32 struct perf_cpu_map *cpus,
|
| /Linux-v6.1/tools/lib/perf/ |
| D | cpumap.c | 13 static struct perf_cpu_map *perf_cpu_map__alloc(int nr_cpus) in perf_cpu_map__alloc() 15 struct perf_cpu_map *cpus = malloc(sizeof(*cpus) + sizeof(struct perf_cpu) * nr_cpus); in perf_cpu_map__alloc() 25 struct perf_cpu_map *perf_cpu_map__dummy_new(void) in perf_cpu_map__dummy_new() 27 struct perf_cpu_map *cpus = perf_cpu_map__alloc(1); in perf_cpu_map__dummy_new() 35 static void cpu_map__delete(struct perf_cpu_map *map) in cpu_map__delete() 44 struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map) in perf_cpu_map__get() 51 void perf_cpu_map__put(struct perf_cpu_map *map) in perf_cpu_map__put() 57 static struct perf_cpu_map *cpu_map__default_new(void) in cpu_map__default_new() 59 struct perf_cpu_map *cpus; in cpu_map__default_new() 77 struct perf_cpu_map *perf_cpu_map__default_new(void) in perf_cpu_map__default_new() [all …]
|
| /Linux-v6.1/tools/perf/util/ |
| D | cpumap.h | 42 struct perf_cpu_map *perf_cpu_map__empty_new(int nr); 44 struct perf_cpu_map *cpu_map__new_data(const struct perf_record_cpu_map_data *data); 45 size_t cpu_map__snprint(struct perf_cpu_map *map, char *buf, size_t size); 46 size_t cpu_map__snprint_mask(struct perf_cpu_map *map, char *buf, size_t size); 47 size_t cpu_map__fprintf(struct perf_cpu_map *map, FILE *fp); 48 const struct perf_cpu_map *cpu_map__online(void); /* thread unsafe */ 59 static inline bool cpu_map__is_dummy(struct perf_cpu_map *cpus) in cpu_map__is_dummy() 98 struct cpu_aggr_map *cpu_aggr_map__new(const struct perf_cpu_map *cpus,
|
| D | cpumap.c | 64 static struct perf_cpu_map *cpu_map__from_entries(const struct perf_record_cpu_map_data *data) in cpu_map__from_entries() 66 struct perf_cpu_map *map; in cpu_map__from_entries() 88 static struct perf_cpu_map *cpu_map__from_mask(const struct perf_record_cpu_map_data *data) in cpu_map__from_mask() 92 struct perf_cpu_map *map; in cpu_map__from_mask() 115 static struct perf_cpu_map *cpu_map__from_range(const struct perf_record_cpu_map_data *data) in cpu_map__from_range() 117 struct perf_cpu_map *map; in cpu_map__from_range() 135 struct perf_cpu_map *cpu_map__new_data(const struct perf_record_cpu_map_data *data) in cpu_map__new_data() 150 size_t cpu_map__fprintf(struct perf_cpu_map *map, FILE *fp) in cpu_map__fprintf() 160 struct perf_cpu_map *perf_cpu_map__empty_new(int nr) in perf_cpu_map__empty_new() 162 struct perf_cpu_map *cpus = malloc(sizeof(*cpus) + sizeof(int) * nr); in perf_cpu_map__empty_new() [all …]
|
| D | pmu.h | 14 struct perf_cpu_map; 47 struct perf_cpu_map *cpus; 148 int perf_pmu__cpus_match(struct perf_pmu *pmu, struct perf_cpu_map *cpus, 149 struct perf_cpu_map **mcpus_ptr, 150 struct perf_cpu_map **ucpus_ptr);
|
| D | evlist-hybrid.c | 24 struct perf_cpu_map *cpus; in evlist__add_default_hybrid() 92 struct perf_cpu_map *cpus; in evlist__fix_hybrid_cpus() 113 struct perf_cpu_map *matched_cpus, *unmatched_cpus; in evlist__fix_hybrid_cpus()
|
| D | evsel.h | 196 struct perf_cpu_map; 200 static inline struct perf_cpu_map *evsel__cpus(struct evsel *evsel) in evsel__cpus() 312 int evsel__open_per_cpu(struct evsel *evsel, struct perf_cpu_map *cpus, int cpu_map_idx); 314 int evsel__open(struct evsel *evsel, struct perf_cpu_map *cpus, 317 int evsel__prepare_open(struct evsel *evsel, struct perf_cpu_map *cpus,
|
| 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()
|
| D | env.h | 10 struct perf_cpu_map; 32 struct perf_cpu_map *map;
|
| D | cputopo.c | 178 struct perf_cpu_map *user_requested_cpus; in cpu_topology__core_wide() 191 struct perf_cpu_map *core_cpus = perf_cpu_map__new(core_cpu_list); in cpu_topology__core_wide() 249 struct perf_cpu_map *map; in cpu_topology__new() 362 struct perf_cpu_map *node_map = NULL; in numa_topology__new()
|
| /Linux-v6.1/tools/lib/perf/Documentation/ |
| D | libperf.txt | 38 struct perf_cpu_map; 40 struct perf_cpu_map *perf_cpu_map__dummy_new(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-v6.1/tools/lib/perf/include/internal/ |
| D | cpumap.h | 15 struct perf_cpu_map { struct 27 int perf_cpu_map__idx(const struct perf_cpu_map *cpus, struct perf_cpu cpu); argument 28 bool perf_cpu_map__is_subset(const struct perf_cpu_map *a, const struct perf_cpu_map *b);
|
| D | evlist.h | 13 struct perf_cpu_map; 27 struct perf_cpu_map *user_requested_cpus; 29 struct perf_cpu_map *all_cpus;
|
| D | evsel.h | 44 struct perf_cpu_map *cpus; 45 struct perf_cpu_map *own_cpus;
|
| /Linux-v6.1/tools/perf/tests/ |
| 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("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()
|
| D | event-times.c | 115 struct perf_cpu_map *cpus; in attach__cpu_disabled() 144 struct perf_cpu_map *cpus; in attach__cpu_enabled()
|
| D | bitmap.c | 13 struct perf_cpu_map *map = perf_cpu_map__new(str); in get_bitmap()
|
| /Linux-v6.1/tools/perf/arch/arm64/util/ |
| D | header.c | 17 static int _get_cpuid(char *buf, size_t sz, struct perf_cpu_map *cpus) in _get_cpuid() 67 struct perf_cpu_map *cpus = perf_cpu_map__new(NULL); in get_cpuid()
|
| /Linux-v6.1/tools/perf/arch/arm/util/ |
| D | cs-etm.c | 202 struct perf_cpu_map *event_cpus = evsel->evlist->core.user_requested_cpus; in cs_etm_set_option() 203 struct perf_cpu_map *online_cpus = perf_cpu_map__new(NULL); in cs_etm_set_option() 302 struct perf_cpu_map *cpus = evlist->core.user_requested_cpus; in cs_etm_recording_options() 526 struct perf_cpu_map *event_cpus = evlist->core.user_requested_cpus; in cs_etm_info_priv_size() 527 struct perf_cpu_map *online_cpus = perf_cpu_map__new(NULL); in cs_etm_info_priv_size() 716 struct perf_cpu_map *cpu_map; in cs_etm_info_fill() 717 struct perf_cpu_map *event_cpus = session->evlist->core.user_requested_cpus; in cs_etm_info_fill() 718 struct perf_cpu_map *online_cpus = perf_cpu_map__new(NULL); in cs_etm_info_fill()
|
| /Linux-v6.1/tools/perf/bench/ |
| D | futex-wake.c | 99 pthread_attr_t thread_attr, struct perf_cpu_map *cpu) in block_threads() 142 struct perf_cpu_map *cpu; in bench_futex_wake()
|
| D | futex-lock-pi.c | 122 struct perf_cpu_map *cpu) in create_threads() 167 struct perf_cpu_map *cpu; in bench_futex_lock_pi()
|
| D | futex-requeue.c | 125 pthread_attr_t thread_attr, struct perf_cpu_map *cpu) in block_threads() 169 struct perf_cpu_map *cpu; in bench_futex_requeue()
|
| /Linux-v6.1/tools/lib/perf/tests/ |
| D | test-cpumap.c | 16 struct perf_cpu_map *cpus; in test_cpumap()
|