Home
last modified time | relevance | path

Searched refs:perf_cpu (Results 1 – 25 of 56) sorted by relevance

123

/linux/tools/perf/util/
H A Dcpumap.h34 struct perf_cpu cpu;
63 struct perf_cpu cpu__max_cpu(void);
64 struct perf_cpu cpu__max_present_cpu(void);
78 int cpu__get_node(struct perf_cpu cpu);
83 int cpu__get_socket_id(struct perf_cpu cpu);
88 int cpu__get_die_id(struct perf_cpu cpu);
93 int cpu__get_cluster_id(struct perf_cpu cpu);
98 int cpu__get_core_id(struct perf_cpu cpu);
106 typedef struct aggr_cpu_id (*aggr_cpu_id_get_t)(struct perf_cpu cpu, void *data);
127 struct aggr_cpu_id aggr_cpu_id__socket(struct perf_cpu cp
[all...]
H A Dcpumap.c17 static struct perf_cpu max_cpu_num;
18 static struct perf_cpu max_present_cpu_num;
216 int cpu__get_socket_id(struct perf_cpu cpu) in aggr_cpu_id__cmp()
222 struct aggr_cpu_id aggr_cpu_id__socket(struct perf_cpu cpu, void *data __maybe_unused) in aggr_cpu_id__cmp()
258 struct perf_cpu cpu; in cpu_aggr_map__new()
300 int cpu__get_die_id(struct perf_cpu cpu) in aggr_cpu_id__die()
307 struct aggr_cpu_id aggr_cpu_id__die(struct perf_cpu cpu, void *data) in aggr_cpu_id__die()
330 int cpu__get_cluster_id(struct perf_cpu cpu) in aggr_cpu_id__cluster()
337 struct aggr_cpu_id aggr_cpu_id__cluster(struct perf_cpu cpu, void *data) in cpu__get_core_id()
354 int cpu__get_core_id(struct perf_cpu cp in aggr_cpu_id__core()
[all...]
H A Dperf_api_probe.c14 static int perf_do_probe_api(setup_probe_fn_t fn, struct perf_cpu cpu, const char *str) in perf_do_probe_api()
64 struct perf_cpu cpu; in perf_probe_api()
140 struct perf_cpu cpu; in perf_can_record_cpu_wide()
H A Dheader.h204 int get_cpuid(char *buffer, size_t sz, struct perf_cpu cpu);
206 char *get_cpuid_str(struct perf_cpu cpu);
208 char *get_cpuid_allow_env_override(struct perf_cpu cpu);
H A Dbpf_counter_cgroup.c50 struct perf_cpu cpu; in bperf_load_program()
200 struct perf_cpu cpu; in bperf_cgrp__sync_counters()
254 struct perf_cpu cpu; in bperf_cgrp__read()
H A Dmmap.c97 static int perf_mmap__aio_bind(struct mmap *map, int idx, struct perf_cpu cpu, int affinity) in perf_mmap__aio_bind()
141 struct perf_cpu cpu __maybe_unused, int affinity __maybe_unused) in perf_mmap__aio_bind()
246 struct perf_cpu cpu; in build_node_mask()
276 int mmap__mmap(struct mmap *map, struct mmap_params *mp, int fd, struct perf_cpu cpu) in mmap__mmap()
H A Dstat.c309 struct perf_cpu cpu = perf_cpu_map__cpu(cpus, cpu_map_idx); in check_per_pkg()
425 struct perf_cpu cpu = perf_cpu_map__cpu(evsel->core.cpus, cpu_map_idx); in process_counter_values()
582 struct perf_cpu cpu; in evsel__update_percore_stats()
619 struct perf_cpu cpu; in evsel__process_percore()
665 cpu_map_idx = perf_cpu_map__idx(evsel__cpus(counter), (struct perf_cpu){.cpu = st->cpu}); in perf_event__process_stat_event()
H A Dtool_pmu.c121 static int read_stat_field(int fd, struct perf_cpu cpu, int field, __u64 *val) in read_stat_field()
277 struct perf_cpu cpu; in evsel__tool_pmu_open()
505 struct perf_cpu cpu = perf_cpu_map__cpu(evsel->core.cpus, in evsel__tool_pmu_read()
H A Dmmap.h52 int mmap__mmap(struct mmap *map, struct mmap_params *mp, int fd, struct perf_cpu cpu);
H A Daffinity.c92 struct perf_cpu cpu; in cpu_map__set_affinity()
H A Denv.c349 struct perf_cpu cpu = { .cpu = idx }; in perf_env__read_cpu_topology_map()
401 struct perf_cpu cpu = {-1}; in perf_env__read_cpuid()
664 int perf_env__numa_node(struct perf_env *env, struct perf_cpu cpu) in perf_env__numa_node()
691 struct perf_cpu tmp; in perf_env__numa_node()
H A Dbpf_trace_augment.c62 struct perf_cpu cpu; in augmented_syscalls__setup_bpf_output()
/linux/tools/lib/perf/
H A Dcpumap.c31 cpus = malloc(sizeof(*cpus) + sizeof(struct perf_cpu) * nr_cpus); in perf_cpu_map__alloc()
130 const struct perf_cpu *cpu_a = a, *cpu_b = b; in cmp_cpu()
135 static struct perf_cpu __perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx) in __perf_cpu_map__cpu()
140 static struct perf_cpu_map *cpu_map__trim_new(int nr_cpus, const struct perf_cpu *tmp_cpus) in cpu_map__trim_new()
142 size_t payload_size = nr_cpus * sizeof(struct perf_cpu); in cpu_map__trim_new()
148 qsort(RC_CHK_ACCESS(cpus)->map, nr_cpus, sizeof(struct perf_cpu), cmp_cpu); in cpu_map__trim_new()
171 struct perf_cpu *tmp_cpus = NULL, *tmp; in perf_cpu_map__new()
217 tmp = realloc(tmp_cpus, max_entries * sizeof(struct perf_cpu)); in perf_cpu_map__new()
260 struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx) in perf_cpu_map__cpu()
262 struct perf_cpu result = { in perf_cpu_map__cpu()
[all …]
H A Devsel.c94 pid_t pid, struct perf_cpu cpu, int group_fd, in sys_perf_event_open()
129 struct perf_cpu cpu; in perf_evsel__open()
276 struct perf_cpu cpu = perf_cpu_map__cpu(evsel->cpus, idx); in perf_evsel__mmap()
462 struct perf_cpu cpu __maybe_unused; in perf_evsel__enable_thread()
/linux/tools/lib/perf/include/perf/
H A Dcpumap.h10 struct perf_cpu { struct
52 LIBPERF_API struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx);
77 LIBPERF_API struct perf_cpu perf_cpu_map__min(const struct perf_cpu_map *map);
81 LIBPERF_API struct perf_cpu perf_cpu_map__max(const struct perf_cpu_map *map);
82 LIBPERF_API bool perf_cpu_map__has(const struct perf_cpu_map *map, struct perf_cpu cpu);
/linux/tools/perf/arch/arm/util/
H A Dcs-etm.c71 static bool cs_etm_is_ete(struct perf_pmu *cs_etm_pmu, struct perf_cpu cpu);
72 static int cs_etm_get_ro(struct perf_pmu *pmu, struct perf_cpu cpu, const char *path, __u64 *val);
73 static bool cs_etm_pmu_path_exists(struct perf_pmu *pmu, struct perf_cpu cpu, const char *path);
76 struct perf_cpu cpu) in cs_etm_get_version()
89 struct perf_cpu cpu) in cs_etm_validate_context_id()
149 struct perf_cpu cpu) in cs_etm_validate_timestamp()
204 struct perf_cpu cpu; in cs_etm_validate_config()
545 struct perf_cpu cpu; in cs_etm_info_priv_size()
574 static int cs_etm_get_ro(struct perf_pmu *pmu, struct perf_cpu cpu, const char *path, __u64 *val) in cs_etm_get_ro()
591 static int cs_etm_get_ro_signed(struct perf_pmu *pmu, struct perf_cpu cpu, const char *path, in cs_etm_get_ro_signed()
[all …]
/linux/tools/perf/
H A Dbuiltin-stat.c264 struct perf_cpu cpu = perf_cpu_map__cpu(evsel__cpus(counter), cpu_map_idx); in evsel__write_stat_event()
1184 static int cpu__get_cache_id_from_map(struct perf_cpu cpu, char *map) in cpu__get_cache_id_from_map()
1211 static int cpu__get_cache_details(struct perf_cpu cpu, struct perf_cache *cache) in cpu__get_cache_details()
1282 static struct aggr_cpu_id aggr_cpu_id__cache(struct perf_cpu cpu, void *data) in aggr_cpu_id__cache()
1315 struct perf_cpu cpu) in perf_stat__get_socket()
1321 struct perf_cpu cpu) in perf_stat__get_die()
1327 struct perf_cpu cpu) in perf_stat__get_cache_id()
1333 struct perf_cpu cpu) in perf_stat__get_cluster()
1339 struct perf_cpu cpu) in perf_stat__get_core()
1345 struct perf_cpu cpu) in perf_stat__get_node()
[all …]
/linux/tools/lib/perf/include/internal/
H A Dmmap.h28 struct perf_cpu cpu;
51 int fd, struct perf_cpu cpu);
H A Devsel.h56 struct perf_cpu cpu;
61 struct perf_cpu vcpu;
H A Devlist.h46 (*perf_evlist_mmap__cb_mmap_t)(struct perf_mmap*, struct perf_mmap_param*, int, struct perf_cpu);
/linux/tools/perf/arch/x86/util/
H A Dpmu.c32 char *cpuid = get_cpuid_str((struct perf_cpu){0}); in x86__is_intel_graniterapids()
229 struct perf_cpu cpu; in gnr_uncore_cha_imc_adjust_cpumask_for_snc()
/linux/tools/lib/perf/tests/
H A Dtest-cpumap.c17 struct perf_cpu cpu; in test_cpumap()
/linux/tools/perf/pmu-events/
H A Dempty-pmu-events.c614 static const struct pmu_events_map *map_for_cpu(struct perf_cpu cpu) in map_for_cpu()
618 struct perf_cpu cpu; in map_for_cpu()
671 struct perf_cpu cpu = {-1}; in map_for_pmu()
712 struct perf_cpu cpu = {-1}; in pmu_metrics_table__find()
/linux/tools/perf/tests/
H A Dmem2node.c32 struct perf_cpu cpu; in get_bitmap()
H A Dopenat-syscall-all-cpus.c26 struct perf_cpu cpu; in test__openat_syscall_event_on_all_cpus()

123