/tools/perf/pmu-events/ |
D | Build | 5 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)
|
D | README | 9 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'.
|
D | pmu-events.h | 19 const char *pmu; member
|
D | jevents.c | 61 char *pmu; member 366 if (je->pmu) in print_events_table_entry() 367 fprintf(outfp, "\t.pmu = \"%s\",\n", je->pmu); in print_events_table_entry() 395 char *pmu; member 425 op(pmu); \ 612 je.pmu = strdup(ppmu); in json_events() 614 if (!je.pmu) in json_events() 615 je.pmu = strdup("uncore_"); in json_events() 616 addfield(map, &je.pmu, "", "", val); in json_events() 617 for (s = je.pmu; *s; s++) in json_events() [all …]
|
/tools/perf/util/ |
D | pmu.c | 657 static char *perf_pmu__getcpuid(struct perf_pmu *pmu) in perf_pmu__getcpuid() argument 666 cpuid = get_cpuid_str(pmu); in perf_pmu__getcpuid() 677 struct pmu_events_map *perf_pmu__find_map(struct perf_pmu *pmu) in perf_pmu__find_map() argument 680 char *cpuid = perf_pmu__getcpuid(pmu); in perf_pmu__find_map() 749 void pmu_add_cpu_aliases_map(struct list_head *head, struct perf_pmu *pmu, in pmu_add_cpu_aliases_map() argument 753 const char *name = pmu->name; in pmu_add_cpu_aliases_map() 761 const char *pname = pe->pmu ? pe->pmu : cpu_name; in pmu_add_cpu_aliases_map() 788 static void pmu_add_cpu_aliases(struct list_head *head, struct perf_pmu *pmu) in pmu_add_cpu_aliases() argument 792 map = perf_pmu__find_map(pmu); in pmu_add_cpu_aliases() 796 pmu_add_cpu_aliases_map(head, pmu, map); in pmu_add_cpu_aliases() [all …]
|
D | pmu.h | 79 int perf_pmu__config(struct perf_pmu *pmu, struct perf_event_attr *attr, 88 int perf_pmu__check_alias(struct perf_pmu *pmu, struct list_head *head_terms, 90 struct list_head *perf_pmu__alias(struct perf_pmu *pmu, 100 struct perf_pmu *perf_pmu__scan(struct perf_pmu *pmu); 108 int perf_pmu__scan_file(struct perf_pmu *pmu, const char *name, const char *fmt, ...) __scanf(3, 4); 112 struct perf_event_attr *perf_pmu__get_default_config(struct perf_pmu *pmu); 113 void pmu_add_cpu_aliases_map(struct list_head *head, struct perf_pmu *pmu, 116 struct pmu_events_map *perf_pmu__find_map(struct perf_pmu *pmu); 122 int perf_pmu__caps_parse(struct perf_pmu *pmu); 124 void perf_pmu__warn_invalid_config(struct perf_pmu *pmu, __u64 config, [all …]
|
D | parse-events.c | 351 char *name, struct perf_pmu *pmu, in __add_event() argument 356 struct perf_cpu_map *cpus = pmu ? perf_cpu_map__get(pmu->cpus) : in __add_event() 359 if (pmu) in __add_event() 360 perf_pmu__warn_invalid_formats(pmu); in __add_event() 362 if (pmu && attr->type == PERF_TYPE_RAW) in __add_event() 363 perf_pmu__warn_invalid_config(pmu, attr->config, name); in __add_event() 377 evsel->core.system_wide = pmu ? pmu->is_uncore : false; in __add_event() 393 char *name, struct perf_pmu *pmu) in parse_events__add_event() argument 395 return __add_event(NULL, &idx, attr, false, name, pmu, NULL, false, in parse_events__add_event() 1342 static int get_config_chgs(struct perf_pmu *pmu, struct list_head *head_config, in get_config_chgs() argument [all …]
|
D | Build | 69 perf-y += pmu.o 70 perf-y += pmu-flex.o 71 perf-y += pmu-bison.o 225 $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-flex.h: util/pmu.l $(OUTPUT)util/pmu-bison.c 227 $(Q)$(call echo-cmd,flex)$(FLEX) -o $(OUTPUT)util/pmu-flex.c \ 228 --header-file=$(OUTPUT)util/pmu-flex.h $(PARSER_DEBUG_FLEX) $< 230 $(OUTPUT)util/pmu-bison.c $(OUTPUT)util/pmu-bison.h: util/pmu.y 233 -o $(OUTPUT)util/pmu-bison.c -p perf_pmu_ 267 $(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c
|
D | pfm.c | 36 struct perf_pmu *pmu; in parse_libpfm_events_option() local 80 pmu = perf_pmu__find_by_type((unsigned int)attr.type); in parse_libpfm_events_option() 82 &attr, q, pmu); in parse_libpfm_events_option() 257 if (pinfo.pmu == PFM_PMU_PERF_EVENT) in print_libpfm_events()
|
D | s390-sample-raw.c | 163 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()
|
D | intel-pt.h | 45 struct perf_event_attr *intel_pt_pmu_default_config(struct perf_pmu *pmu);
|
/tools/perf/arch/x86/util/ |
D | pmu.c | 11 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()
|
D | Build | 3 perf-y += pmu.o
|
/tools/perf/arch/arm/util/ |
D | pmu.c | 16 *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()
|
D | Build | 8 perf-$(CONFIG_AUXTRACE) += pmu.o auxtrace.o cs-etm.o
|
/tools/perf/arch/nds32/util/ |
D | header.c | 11 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/ |
D | header.c | 80 char *get_cpuid_str(struct perf_pmu *pmu) in get_cpuid_str() argument 85 if (!pmu || !pmu->cpus) in get_cpuid_str() 93 res = _get_cpuid(buf, MIDR_SIZE, pmu->cpus); in get_cpuid_str() 95 pr_err("failed to get cpuid string for PMU %s\n", pmu->name); in get_cpuid_str()
|
D | Build | 8 perf-$(CONFIG_AUXTRACE) += ../../arm/util/pmu.o \
|
/tools/perf/tests/ |
D | pmu-events.c | 96 .pmu = "hisi_sccl,ddrc", 108 .pmu = "uncore_cbox", 169 if (table->pmu) in test_pmu_event_table() 272 struct perf_pmu *pmu; in __test__pmu_event_aliases() local 290 pmu = zalloc(sizeof(*pmu)); in __test__pmu_event_aliases() 291 if (!pmu) in __test__pmu_event_aliases() 294 pmu->name = pmu_name; in __test__pmu_event_aliases() 296 pmu_add_cpu_aliases_map(&aliases, pmu, map); in __test__pmu_event_aliases() 303 te->pmu); in __test__pmu_event_aliases() 355 free(pmu); in __test__pmu_event_aliases() [all …]
|
/tools/perf/ |
D | .gitignore | 36 pmu-events/pmu-events.c 37 pmu-events/jevents
|
/tools/testing/selftests/powerpc/security/ |
D | Makefile | 13 $(OUTPUT)/spectre_v2: ../pmu/event.c branch_loops.S
|
/tools/perf/arch/powerpc/util/ |
D | header.c | 33 get_cpuid_str(struct perf_pmu *pmu __maybe_unused) in get_cpuid_str()
|
/tools/perf/pmu-events/arch/nds32/ |
D | mapfile.csv | 10 # to tools/perf/pmu-events/arch/arm64/.
|
/tools/perf/pmu-events/arch/powerpc/ |
D | mapfile.csv | 9 # to tools/perf/pmu-events/arch/powerpc/.
|
/tools/testing/selftests/powerpc/mm/ |
D | Makefile | 25 $(OUTPUT)/stack_expansion_signal: ../utils.c ../pmu/lib.c
|