Home
last modified time | relevance | path

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

/tools/perf/pmu-events/
DBuild4 pmu-events-y += pmu-events.o
5 JDIR = pmu-events/arch/$(SRCARCH)
9 # Locate/process JSON files in pmu-events/arch/
10 # directory and create tables in pmu-events.c.
12 $(OUTPUT)pmu-events/pmu-events.c: $(JSON) $(JEVENTS)
13 $(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.
28 $ ls tools/perf/pmu-events/arch/x86/Silvermont_core
33 'pmu-events.c', which encodes the two sets of tables:
66 After the 'pmu-events.c' is generated, it is compiled and the resulting
67 'pmu-events.o' is added to 'libperf.a' which is then used to build perf.
74 2. The 'pmu-events.h' has an extern declaration for the mapping table
75 and the generated 'pmu-events.c' defines this table.
88 In case of errors when processing files in the tools/perf/pmu-events/arch
141 $ grep Silvermont tools/perf/pmu-events/arch/x86/mapfile.csv
147 in the directory 'tools/perf/pmu-events/arch/x86/Silvermont_core'.
/tools/perf/arch/x86/util/
Dpmu.c9 struct perf_event_attr *perf_pmu__get_default_config(struct perf_pmu *pmu __maybe_unused) in perf_pmu__get_default_config()
12 if (!strcmp(pmu->name, INTEL_PT_PMU_NAME)) in perf_pmu__get_default_config()
13 return intel_pt_pmu_default_config(pmu); in perf_pmu__get_default_config()
14 if (!strcmp(pmu->name, INTEL_BTS_PMU_NAME)) in perf_pmu__get_default_config()
15 pmu->selectable = true; in perf_pmu__get_default_config()
DBuild3 libperf-y += pmu.o
/tools/perf/util/
Dpmu.c548 perf_pmu__get_default_config(struct perf_pmu *pmu __maybe_unused) in perf_pmu__get_default_config()
555 struct perf_pmu *pmu; in pmu_lookup() local
577 pmu = zalloc(sizeof(*pmu)); in pmu_lookup()
578 if (!pmu) in pmu_lookup()
581 pmu->cpus = pmu_cpumask(name); in pmu_lookup()
583 INIT_LIST_HEAD(&pmu->format); in pmu_lookup()
584 INIT_LIST_HEAD(&pmu->aliases); in pmu_lookup()
585 list_splice(&format, &pmu->format); in pmu_lookup()
586 list_splice(&aliases, &pmu->aliases); in pmu_lookup()
587 pmu->name = strdup(name); in pmu_lookup()
[all …]
Ddrv_configs.c28 struct perf_pmu *pmu = NULL; in perf_evsel__apply_drv_configs() local
30 while ((pmu = perf_pmu__scan(pmu)) != NULL) in perf_evsel__apply_drv_configs()
31 if (pmu->type == evsel->attr.type) { in perf_evsel__apply_drv_configs()
45 if (!found || !pmu->set_drv_config) { in perf_evsel__apply_drv_configs()
51 err = pmu->set_drv_config(term); in perf_evsel__apply_drv_configs()
Dpmu.h55 int perf_pmu__config(struct perf_pmu *pmu, struct perf_event_attr *attr,
63 int perf_pmu__check_alias(struct perf_pmu *pmu, struct list_head *head_terms,
65 struct list_head *perf_pmu__alias(struct perf_pmu *pmu,
75 struct perf_pmu *perf_pmu__scan(struct perf_pmu *pmu);
81 int perf_pmu__scan_file(struct perf_pmu *pmu, const char *name, const char *fmt,
86 struct perf_event_attr *perf_pmu__get_default_config(struct perf_pmu *pmu);
DBuild51 libperf-y += pmu.o
52 libperf-y += pmu-flex.o
53 libperf-y += pmu-bison.o
138 $(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c
140 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l
142 $(OUTPUT)util/pmu-bison.c: util/pmu.y
144 $(Q)$(call echo-cmd,bison)$(BISON) -v util/pmu.y -d -o $@ -p perf_pmu_
152 $(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c
Dintel-pt.h54 struct perf_event_attr *intel_pt_pmu_default_config(struct perf_pmu *pmu);
Dparse-events.c1204 struct perf_pmu *pmu; in parse_events_add_pmu() local
1208 pmu = perf_pmu__find(name); in parse_events_add_pmu()
1209 if (!pmu) in parse_events_add_pmu()
1212 if (pmu->default_config) { in parse_events_add_pmu()
1213 memcpy(&attr, pmu->default_config, in parse_events_add_pmu()
1220 attr.type = pmu->type; in parse_events_add_pmu()
1221 evsel = __add_event(list, &data->idx, &attr, NULL, pmu->cpus, NULL); in parse_events_add_pmu()
1225 if (perf_pmu__check_alias(pmu, head_config, &info)) in parse_events_add_pmu()
1238 if (perf_pmu__config(pmu, &attr, head_config, data->error)) in parse_events_add_pmu()
1242 get_config_name(head_config), pmu->cpus, in parse_events_add_pmu()
[all …]
Dauxtrace.c2095 struct perf_pmu *pmu = NULL; in perf_evsel__find_pmu() local
2097 while ((pmu = perf_pmu__scan(pmu)) != NULL) { in perf_evsel__find_pmu()
2098 if (pmu->type == evsel->attr.type) in perf_evsel__find_pmu()
2102 return pmu; in perf_evsel__find_pmu()
2107 struct perf_pmu *pmu = perf_evsel__find_pmu(evsel); in perf_evsel__nr_addr_filter() local
2110 if (!pmu) in perf_evsel__nr_addr_filter()
2113 perf_pmu__scan_file(pmu, "nr_addr_filters", "%d", &nr_addr_filters); in perf_evsel__nr_addr_filter()
Dheader.c748 struct perf_pmu *pmu = NULL; in write_pmu_mappings() local
758 while ((pmu = perf_pmu__scan(pmu))) { in write_pmu_mappings()
759 if (!pmu->name) in write_pmu_mappings()
763 ret = do_write(fd, &pmu->type, sizeof(pmu->type)); in write_pmu_mappings()
767 ret = do_write_string(fd, pmu->name); in write_pmu_mappings()
/tools/perf/arch/arm/util/
Dpmu.c26 *perf_pmu__get_default_config(struct perf_pmu *pmu __maybe_unused) in perf_pmu__get_default_config()
29 if (!strcmp(pmu->name, CORESIGHT_ETM_PMU_NAME)) { in perf_pmu__get_default_config()
31 pmu->selectable = true; in perf_pmu__get_default_config()
32 pmu->set_drv_config = cs_etm_set_drv_config; in perf_pmu__get_default_config()
DBuild6 libperf-$(CONFIG_AUXTRACE) += pmu.o auxtrace.o cs-etm.o
Dcs-etm.c334 static int cs_etm_get_ro(struct perf_pmu *pmu, int cpu, const char *path) in cs_etm_get_ro() argument
343 scan = perf_pmu__scan_file(pmu, pmu_path, "%x", &val); in cs_etm_get_ro()
/tools/perf/arch/arm64/util/
DBuild4 libperf-$(CONFIG_AUXTRACE) += ../../arm/util/pmu.o \
/tools/perf/
DMakefile.perf355 JEVENTS := $(OUTPUT)pmu-events/jevents
356 JEVENTS_IN := $(OUTPUT)pmu-events/jevents-in.o
358 PMU_EVENTS_IN := $(OUTPUT)pmu-events/pmu-events-in.o
446 @(test -f ../../include/linux/coresight-pmu.h && ( \
447 (diff -B ../include/linux/coresight-pmu.h ../../include/linux/coresight-pmu.h >/dev/null) \
461 $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=pmu-events obj=jevents
467 $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=pmu-events obj=pmu-events
500 pmu-events/%.o: $(OUTPUT)pmu-events/%.o
757 …re-progs) $(RM) $(ALL_PROGRAMS) perf perf-read-vdso32 perf-read-vdsox32 $(OUTPUT)pmu-events/jevents
761 $(OUTPUT)pmu-events/pmu-events.c
DMANIFEST63 tools/include/linux/coresight-pmu.h
/tools/testing/selftests/powerpc/
DMakefile21 pmu \
/tools/perf/Documentation/
Dperf-list.txt11 'perf list' [--no-desc] [--long-desc] [hw|sw|cache|tracepoint|pmu|event_glob]
117 For example the raw event "LSD.UOPS" core pmu event above could
170 Some pmu events listed by 'perf-list' will be displayed with '?' in them. For
241 . 'pmu' to print the kernel supplied PMU events.
254 . '--raw-dump [hw|sw|cache|tracepoint|pmu|event_glob]', shows the raw-dump of
Dperf-record.txt36 - a symbolically formed PMU event like 'pmu/param1=0x3,param2/' where
38 /sys/bus/event_source/devices/<pmu>/format/*.
40 - a symbolically formed event like 'pmu/config=M,config1=N,config3=K/'
44 corresponding entries in /sys/bus/event_source/devices/<pmu>/format/*
46 /sys/bus/event_source/devices/<pmu>/format/*
48 There are also some params which are not defined in .../<pmu>/format/*.
63 Also not defined in .../<pmu>/format/* are PMU driver specific
104 /sys/bus/event_source/devices/<pmu>/nr_addr_filters.
Dperf-stat.txt42 - a symbolically formed event like 'pmu/param1=0x3,param2/' where
44 /sys/bus/event_sources/devices/<pmu>/format/*
46 - a symbolically formed event like 'pmu/config=M,config1=N,config2=K/'
50 /sys/bus/event_sources/devices/<pmu>/format/*
Dperf.data-file-format.txt191 struct pmu {
430 pmu-tools
432 https://github.com/andikleen/pmu-tools/tree/master/parser
435 in pmu-tools parser. This allows to read perf.data from python and dump it.
/tools/perf/tests/
Dmake92 make_util_pmu_bison_o := util/pmu-bison.o
192 test_make_util_pmu_bison_o := test -f $(PERF_O)/util/pmu-bison.o
257 test_make_util_pmu_bison_o_O := test -f $$TMP_O/util/pmu-bison.o
DBuild14 perf-y += pmu.o