Home
last modified time | relevance | path

Searched refs:pmu (Results 1 – 25 of 39) sorted by relevance

12

/tools/perf/pmu-events/
DBuild5 pmu-events-y += pmu-events.o
6 JDIR = pmu-events/arch/$(SRCARCH)
9 JDIR_TEST = pmu-events/arch/test
14 # Locate/process JSON files in pmu-events/arch/
15 # directory and create tables in pmu-events.c.
17 $(OUTPUT)pmu-events/pmu-events.c: $(JSON) $(JSON_TEST) $(JEVENTS)
18 $(Q)$(call echo-cmd,gen)$(JEVENTS) $(SRCARCH) pmu-events/arch $(OUTPUT)pmu-events/pmu-events.c $(V)
DREADME9 tree tools/perf/pmu-events/arch/foo.
33 $ ls tools/perf/pmu-events/arch/x86/silvermont
42 'pmu-events.c', which encodes the two sets of tables:
75 After the 'pmu-events.c' is generated, it is compiled and the resulting
76 'pmu-events.o' is added to 'libperf.a' which is then used to build perf.
83 2. The 'pmu-events.h' has an extern declaration for the mapping table
84 and the generated 'pmu-events.c' defines this table.
146 $ grep silvermont tools/perf/pmu-events/arch/x86/mapfile.csv
152 in the directory 'tools/perf/pmu-events/arch/x86/silvermont'.
Djevents.c323 char *pmu, char *unit, char *perpkg, in print_events_table_entry() argument
345 if (pmu) in print_events_table_entry()
346 fprintf(outfp, "\t.pmu = \"%s\",\n", pmu); in print_events_table_entry()
368 char *pmu; member
395 op(pmu); \
417 char *desc, char *long_desc, char *pmu, in save_arch_std_events() argument
480 char **name, char **long_desc, char **pmu, char **filter, in try_fixup() argument
508 char *pmu, char *unit, char *perpkg, in json_events() argument
532 char *pmu = NULL; in json_events() local
600 pmu = strdup(ppmu); in json_events()
[all …]
Dpmu-events.h14 const char *pmu; member
Djevents.h8 char *pmu,
/tools/perf/arch/x86/util/
Dpmu.c11 struct perf_event_attr *perf_pmu__get_default_config(struct perf_pmu *pmu __maybe_unused) in perf_pmu__get_default_config()
14 if (!strcmp(pmu->name, INTEL_PT_PMU_NAME)) in perf_pmu__get_default_config()
15 return intel_pt_pmu_default_config(pmu); in perf_pmu__get_default_config()
16 if (!strcmp(pmu->name, INTEL_BTS_PMU_NAME)) in perf_pmu__get_default_config()
17 pmu->selectable = true; in perf_pmu__get_default_config()
DBuild3 perf-y += pmu.o
/tools/perf/arch/arm/util/
Dpmu.c16 *perf_pmu__get_default_config(struct perf_pmu *pmu __maybe_unused) in perf_pmu__get_default_config()
19 if (!strcmp(pmu->name, CORESIGHT_ETM_PMU_NAME)) { in perf_pmu__get_default_config()
21 pmu->selectable = true; in perf_pmu__get_default_config()
23 } else if (strstarts(pmu->name, ARM_SPE_PMU_NAME)) { in perf_pmu__get_default_config()
24 return arm_spe_pmu_default_config(pmu); in perf_pmu__get_default_config()
DBuild6 perf-$(CONFIG_AUXTRACE) += pmu.o auxtrace.o cs-etm.o
/tools/perf/util/
Dpmu.c659 static char *perf_pmu__getcpuid(struct perf_pmu *pmu) in perf_pmu__getcpuid() argument
668 cpuid = get_cpuid_str(pmu); in perf_pmu__getcpuid()
679 struct pmu_events_map *perf_pmu__find_map(struct perf_pmu *pmu) in perf_pmu__find_map() argument
682 char *cpuid = perf_pmu__getcpuid(pmu); in perf_pmu__find_map()
751 static void pmu_add_cpu_aliases(struct list_head *head, struct perf_pmu *pmu) in pmu_add_cpu_aliases() argument
755 const char *name = pmu->name; in pmu_add_cpu_aliases()
757 map = perf_pmu__find_map(pmu); in pmu_add_cpu_aliases()
768 const char *pname = pe->pmu ? pe->pmu : cpu_name; in pmu_add_cpu_aliases()
795 perf_pmu__get_default_config(struct perf_pmu *pmu __maybe_unused) in perf_pmu__get_default_config()
815 struct perf_pmu *pmu; in pmu_lookup() local
[all …]
Dpmu.h65 int perf_pmu__config(struct perf_pmu *pmu, struct perf_event_attr *attr,
73 int perf_pmu__check_alias(struct perf_pmu *pmu, struct list_head *head_terms,
75 struct list_head *perf_pmu__alias(struct perf_pmu *pmu,
86 struct perf_pmu *perf_pmu__scan(struct perf_pmu *pmu);
92 int perf_pmu__scan_file(struct perf_pmu *pmu, const char *name, const char *fmt, ...) __scanf(3, 4);
96 struct perf_event_attr *perf_pmu__get_default_config(struct perf_pmu *pmu);
98 struct pmu_events_map *perf_pmu__find_map(struct perf_pmu *pmu);
DBuild66 perf-y += pmu.o
67 perf-y += pmu-flex.o
68 perf-y += pmu-bison.o
192 $(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c
194 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l
196 $(OUTPUT)util/pmu-bison.c: util/pmu.y
198 $(Q)$(call echo-cmd,bison)$(BISON) -v util/pmu.y -d -o $@ -p perf_pmu_
207 $(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c
Dparse-events.c322 char *name, struct perf_pmu *pmu, in __add_event() argument
327 struct perf_cpu_map *cpus = pmu ? pmu->cpus : in __add_event()
339 evsel->core.system_wide = pmu ? pmu->is_uncore : false; in __add_event()
1318 struct perf_pmu *pmu; in parse_events_add_pmu() local
1324 pmu = perf_pmu__find(name); in parse_events_add_pmu()
1325 if (!pmu) { in parse_events_add_pmu()
1333 if (pmu->default_config) { in parse_events_add_pmu()
1334 memcpy(&attr, pmu->default_config, in parse_events_add_pmu()
1340 use_uncore_alias = (pmu->is_uncore && use_alias); in parse_events_add_pmu()
1343 attr.type = pmu->type; in parse_events_add_pmu()
[all …]
Ds390-sample-raw.c163 struct perf_pmu pmu; in s390_cpumcfdg_dump() local
166 memset(&pmu, 0, sizeof(pmu)); in s390_cpumcfdg_dump()
167 map = perf_pmu__find_map(&pmu); in s390_cpumcfdg_dump()
Dintel-pt.h45 struct perf_event_attr *intel_pt_pmu_default_config(struct perf_pmu *pmu);
Dparse-events.y243 struct perf_pmu *pmu = NULL; variable
250 while ((pmu = perf_pmu__scan(pmu)) != NULL) {
251 char *name = pmu->name;
261 if (!parse_events_add_pmu(_parse_state, list, pmu->name, terms, true, false))
/tools/perf/arch/nds32/util/
Dheader.c11 char *get_cpuid_str(struct perf_pmu *pmu) in get_cpuid_str() argument
18 if (!sysfs || !pmu || !pmu->cpus) in get_cpuid_str()
25 cpus = cpu_map__get(pmu->cpus); in get_cpuid_str()
/tools/perf/arch/arm64/util/
Dheader.c15 char *get_cpuid_str(struct perf_pmu *pmu) in get_cpuid_str() argument
25 if (!sysfs || !pmu || !pmu->cpus) in get_cpuid_str()
33 cpus = perf_cpu_map__get(pmu->cpus); in get_cpuid_str()
61 pr_err("failed to get cpuid string for PMU %s\n", pmu->name); in get_cpuid_str()
DBuild7 perf-$(CONFIG_AUXTRACE) += ../../arm/util/pmu.o \
/tools/perf/
D.gitignore35 pmu-events/pmu-events.c
36 pmu-events/jevents
DMakefile.perf583 JEVENTS := $(OUTPUT)pmu-events/jevents
584 JEVENTS_IN := $(OUTPUT)pmu-events/jevents-in.o
586 PMU_EVENTS_IN := $(OUTPUT)pmu-events/pmu-events-in.o
596 $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=pmu-events obj=jevents
602 $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=pmu-events obj=pmu-events
639 pmu-events/%.o: $(OUTPUT)pmu-events/%.o
956 …gs) $(RM) $(ALL_PROGRAMS) perf perf-read-vdso32 perf-read-vdsox32 $(OUTPUT)pmu-events/jevents $(OU…
960 $(OUTPUT)pmu-events/pmu-events.c \
/tools/perf/arch/powerpc/util/
Dheader.c38 get_cpuid_str(struct perf_pmu *pmu __maybe_unused) in get_cpuid_str()
/tools/perf/pmu-events/arch/nds32/
Dmapfile.csv10 # to tools/perf/pmu-events/arch/arm64/.
/tools/perf/pmu-events/arch/powerpc/
Dmapfile.csv9 # to tools/perf/pmu-events/arch/powerpc/.
/tools/perf/pmu-events/arch/arm64/
Dmapfile.csv10 # to tools/perf/pmu-events/arch/arm64/.

12