Searched refs:pmu (Results 51 - 75 of 338) sorted by relevance

1234567891011>>

/linux-master/tools/perf/tests/
H A Dpmu-events.c4 #include "pmu.h"
12 #include "../pmu-events/pmu-events.h"
22 /* used for matching against events from generated pmu-events.c */
41 struct perf_pmu pmu; member in struct:perf_pmu_test_pmu
47 .pmu = "default_core",
59 .pmu = "default_core",
71 .pmu = "default_core",
83 .pmu = "default_core",
95 .pmu
543 struct perf_pmu *pmu; local
597 struct perf_pmu *pmu = &test_pmu->pmu; local
771 struct perf_pmu *pmu = NULL; local
[all...]
H A Dpmu.c5 #include "pmu.h"
24 static int test_pmu_put(const char *dir, struct perf_pmu *pmu) argument
37 list_del(&pmu->list);
38 perf_pmu__delete(pmu);
44 * /sys/bus/event_source/devices/<pmu>/. Give as input a buffer to hold the file
69 struct perf_pmu *pmu = NULL; local
73 scnprintf(dir, sz, "/tmp/perf-pmu-test-XXXXXX");
86 if (mkdirat(dirfd, "perf-pmu-test", 0755) < 0) {
90 file = openat(dirfd, "perf-pmu-test/type", O_WRONLY | O_CREAT, 0600);
104 if (mkdirat(dirfd, "perf-pmu
166 struct perf_pmu *pmu = test_pmu_get(dir, sizeof(dir)); local
215 struct perf_pmu *pmu = test_pmu_get(dir, sizeof(dir)); local
[all...]
H A Devent_groups.c8 #include "pmu.h"
53 struct perf_pmu *pmu = NULL; local
56 while ((pmu = perf_pmus__scan(pmu)) != NULL) {
58 if (!strcmp(uncore_pmus[i].name, pmu->name)) {
59 pr_debug("Using %s for uncore pmu event\n", pmu->name);
60 types[2] = pmu->type;
63 * Check if the chosen uncore pmu event can be
65 * hv_24x7 pmu counter
[all...]
/linux-master/tools/perf/arch/x86/util/
H A Devlist.c3 #include "util/pmu.h"
25 struct perf_pmu *pmu = NULL; local
36 while ((pmu = perf_pmus__scan_core(pmu)) != NULL) {
43 evsel->core.attr.config |= (__u64)pmu->type << PERF_PMU_TYPE_SHIFT;
44 cpus = perf_cpu_map__get(pmu->cpus);
47 evsel->pmu_name = strdup(pmu->name);
/linux-master/tools/perf/util/
H A Dpmus.h15 struct perf_pmu *perf_pmus__scan(struct perf_pmu *pmu);
16 struct perf_pmu *perf_pmus__scan_core(struct perf_pmu *pmu);
H A Dmem-events.c17 #include "pmu.h"
34 struct perf_mem_event *perf_pmu__mem_events_ptr(struct perf_pmu *pmu, int i) argument
36 if (i >= PERF_MEM_EVENTS__MAX || !pmu)
39 return &pmu->mem_events[i];
42 static struct perf_pmu *perf_pmus__scan_mem(struct perf_pmu *pmu) argument
44 while ((pmu = perf_pmus__scan(pmu)) != NULL) {
45 if (pmu->mem_events)
46 return pmu;
68 * perf_pmu__mem_events_num_mem_pmus - Get the number of mem PMUs since the given pmu
71 perf_pmu__mem_events_num_mem_pmus(struct perf_pmu *pmu) argument
81 perf_pmu__mem_events_name(int i, struct perf_pmu *pmu) argument
128 struct perf_pmu *pmu = leader->pmu; local
141 perf_pmu__mem_events_parse(struct perf_pmu *pmu, const char *str) argument
180 perf_pmu__mem_events_supported(const char *mnt, struct perf_pmu *pmu, struct perf_mem_event *e) argument
194 perf_pmu__mem_events_init(struct perf_pmu *pmu) argument
221 perf_pmu__mem_events_list(struct perf_pmu *pmu) argument
240 struct perf_pmu *pmu = NULL; local
[all...]
H A Dmem-events.h32 int perf_pmu__mem_events_parse(struct perf_pmu *pmu, const char *str);
33 int perf_pmu__mem_events_init(struct perf_pmu *pmu);
35 struct perf_mem_event *perf_pmu__mem_events_ptr(struct perf_pmu *pmu, int i);
37 int perf_pmu__mem_events_num_mem_pmus(struct perf_pmu *pmu);
40 void perf_pmu__mem_events_list(struct perf_pmu *pmu);
H A Dmetricgroup.c13 #include "pmu.h"
129 const char *pmu; member in struct:metric
228 m->pmu = pm->pmu ?: "cpu";
273 * @pmu: The PMU for the IDs.
278 static int setup_metric_events(const char *pmu, struct hashmap *ids, argument
286 bool all_pmus = !strcmp(pmu, "all") || perf_pmus__num_core_pmus() == 1 || !is_pmu_core(pmu);
301 strcmp(ev->pmu_name, pmu))
341 * may be duplicated for each pmu
374 match_pm_metric(const struct pmu_metric *pm, const char *pmu, const char *metric) argument
494 struct perf_pmu *pmu = NULL; local
790 const char *pmu; member in struct:metricgroup_add_iter_data
839 resolve_metric(struct list_head *metric_list, const char *pmu, const char *modifier, bool metric_no_group, bool metric_no_threshold, const char *user_requested_cpu_list, bool system_wide, struct metric *root_metric, const struct visited_metric *visited, const struct pmu_metrics_table *table) argument
1021 const char *pmu = pm->pmu ?: "cpu"; local
1039 const char *pmu; member in struct:metricgroup__find_metric_data
1061 metricgroup__find_metric(const char *pmu, const char *metric, const struct pmu_metrics_table *table, struct pmu_metric *pm) argument
1185 const char *pmu; member in struct:metricgroup__add_metric_data
1231 metricgroup__add_metric(const char *pmu, const char *metric_name, const char *modifier, bool metric_no_group, bool metric_no_threshold, const char *user_requested_cpu_list, bool system_wide, struct list_head *metric_list, const struct pmu_metrics_table *table) argument
1313 metricgroup__add_metric_list(const char *pmu, const char *list, bool metric_no_group, bool metric_no_threshold, const char *user_requested_cpu_list, bool system_wide, struct list_head *metric_list, const struct pmu_metrics_table *table) argument
1524 parse_groups(struct evlist *perf_evlist, const char *pmu, const char *str, bool metric_no_group, bool metric_no_merge, bool metric_no_threshold, const char *user_requested_cpu_list, bool system_wide, struct perf_pmu *fake_pmu, struct rblist *metric_events_list, const struct pmu_metrics_table *table) argument
1686 metricgroup__parse_groups(struct evlist *perf_evlist, const char *pmu, const char *str, bool metric_no_group, bool metric_no_merge, bool metric_no_threshold, const char *user_requested_cpu_list, bool system_wide, bool hardware_aware_grouping, struct rblist *metric_events) argument
1724 const char *pmu; member in struct:metricgroup__has_metric_data
1736 metricgroup__has_metric(const char *pmu, const char *metric) argument
[all...]
/linux-master/drivers/perf/
H A Darm_dsu_pmu.c114 struct pmu pmu; member in struct:dsu_pmu
128 static inline struct dsu_pmu *to_dsu_pmu(struct pmu *pmu) argument
130 return container_of(pmu, struct dsu_pmu, pmu);
146 struct pmu *pmu = dev_get_drvdata(dev); local
147 struct dsu_pmu *dsu_pmu = to_dsu_pmu(pmu);
192 struct pmu *pm local
461 dsu_pmu_enable(struct pmu *pmu) argument
478 dsu_pmu_disable(struct pmu *pmu) argument
491 dsu_pmu_validate_event(struct pmu *pmu, struct dsu_hw_events *hw_events, struct perf_event *event) argument
[all...]
H A Driscv_pmu_sbi.c11 #define pr_fmt(fmt) "riscv-pmu-sbi: " fmt
86 * per_cpu in case of harts with different pmu counters
372 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu);
431 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu);
514 static void pmu_sbi_snapshot_free(struct riscv_pmu *pmu) argument
519 struct cpu_hw_events *cpu_hw_evt = per_cpu_ptr(pmu->hw_events, cpu);
530 static int pmu_sbi_snapshot_alloc(struct riscv_pmu *pmu) argument
536 struct cpu_hw_events *cpu_hw_evt = per_cpu_ptr(pmu->hw_events, cpu);
540 pmu_sbi_snapshot_free(pmu);
564 static int pmu_sbi_snapshot_setup(struct riscv_pmu *pmu, in argument
603 struct riscv_pmu *pmu = to_riscv_pmu(event->pmu); local
684 struct riscv_pmu *pmu = to_riscv_pmu(event->pmu); local
758 pmu_sbi_stop_all(struct riscv_pmu *pmu) argument
768 pmu_sbi_stop_hw_ctrs(struct riscv_pmu *pmu) argument
886 pmu_sbi_start_overflow_mask(struct riscv_pmu *pmu, u64 ctr_ovf_mask) argument
904 struct riscv_pmu *pmu; local
1006 struct riscv_pmu *pmu = hlist_entry_safe(node, struct riscv_pmu, node); local
1048 pmu_sbi_setup_irqs(struct riscv_pmu *pmu, struct platform_device *pdev) argument
1136 riscv_pm_pmu_register(struct riscv_pmu *pmu) argument
1142 riscv_pm_pmu_unregister(struct riscv_pmu *pmu) argument
1147 riscv_pm_pmu_register(struct riscv_pmu *pmu) argument
1148 riscv_pm_pmu_unregister(struct riscv_pmu *pmu) argument
1151 riscv_pmu_destroy(struct riscv_pmu *pmu) argument
1279 struct riscv_pmu *pmu = NULL; local
[all...]
H A Driscv_pmu.c49 userpg->pmc_width = to_riscv_pmu(event->pmu)->ctr_get_width(event->hw.idx) + 1;
150 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu);
164 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu);
192 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu);
245 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu);
261 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu);
285 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu);
309 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu);
328 * decided until binding to some counter in pmu->add().
357 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu);
390 struct riscv_pmu *pmu; local
[all...]
H A Darm_smmuv3_pmu.c129 struct pmu pmu; member in struct:smmu_pmu
140 #define to_smmu_pmu(p) (container_of(p, struct smmu_pmu, pmu))
154 static inline void smmu_pmu_enable(struct pmu *pmu) argument
156 struct smmu_pmu *smmu_pmu = to_smmu_pmu(pmu);
166 static inline void smmu_pmu_enable_quirk_hip08_09(struct pmu *pmu) argument
168 struct smmu_pmu *smmu_pmu = to_smmu_pmu(pmu);
174 smmu_pmu_enable(pmu);
177 smmu_pmu_disable(struct pmu *pmu) argument
185 smmu_pmu_disable_quirk_hip08_09(struct pmu *pmu) argument
726 struct smmu_pmu *pmu = dev_get_drvdata(dev); local
737 smmu_pmu_setup_msi(struct smmu_pmu *pmu) argument
761 smmu_pmu_setup_irq(struct smmu_pmu *pmu) argument
[all...]
H A Dmarvell_cn10k_tad_pmu.c24 #define to_tad_pmu(p) (container_of(p, struct tad_pmu, pmu))
31 struct pmu pmu; member in struct:tad_pmu
44 struct tad_pmu *tad_pmu = to_tad_pmu(event->pmu);
62 struct tad_pmu *tad_pmu = to_tad_pmu(event->pmu);
81 struct tad_pmu *tad_pmu = to_tad_pmu(event->pmu);
107 struct tad_pmu *tad_pmu = to_tad_pmu(event->pmu);
118 struct tad_pmu *tad_pmu = to_tad_pmu(event->pmu);
141 struct tad_pmu *tad_pmu = to_tad_pmu(event->pmu);
143 if (event->attr.type != event->pmu
356 struct tad_pmu *pmu = platform_get_drvdata(pdev); local
391 struct tad_pmu *pmu = hlist_entry_safe(node, struct tad_pmu, node); local
[all...]
/linux-master/drivers/pmdomain/rockchip/
H A Dpm-domains.c86 struct rockchip_pmu *pmu; member in struct:rockchip_pm_domain
98 struct mutex mutex; /* mutex lock for pmu */
196 struct rockchip_pmu *pmu; local
206 pmu = dmc_pmu;
213 mutex_lock(&pmu->mutex);
225 for (i = 0; i < pmu->genpd_data.num_domains; i++) {
226 genpd = pmu->genpd_data.domains[i];
231 dev_err(pmu->dev,
243 genpd = pmu->genpd_data.domains[i];
249 mutex_unlock(&pmu
259 struct rockchip_pmu *pmu; local
286 struct rockchip_pmu *pmu = pd->pmu; local
294 rockchip_pmu_read_ack(struct rockchip_pmu *pmu) argument
307 struct rockchip_pmu *pmu = pd->pmu; local
401 struct rockchip_pmu *pmu = pd->pmu; local
422 struct rockchip_pmu *pmu = pd->pmu; local
434 struct rockchip_pmu *pmu = pd->pmu; local
446 struct rockchip_pmu *pmu = pd->pmu; local
494 struct rockchip_pmu *pmu = pd->pmu; local
529 struct rockchip_pmu *pmu = pd->pmu; local
617 rockchip_pm_add_one_domain(struct rockchip_pmu *pmu, struct device_node *node) argument
773 rockchip_pm_domain_cleanup(struct rockchip_pmu *pmu) argument
790 rockchip_configure_pd_cnt(struct rockchip_pmu *pmu, u32 domain_reg_offset, unsigned int count) argument
800 rockchip_pm_add_subdomain(struct rockchip_pmu *pmu, struct device_node *parent) argument
861 struct rockchip_pmu *pmu; local
[all...]
/linux-master/drivers/macintosh/ams/
H A DMakefile7 ams-$(CONFIG_SENSORS_AMS_PMU) += ams-pmu.o
/linux-master/arch/arm/mach-meson/
H A Dplatsmp.c36 static struct regmap *pmu; variable in typeref:struct:regmap
81 pmu = syscon_regmap_lookup_by_compatible(pmu_compatible);
82 if (IS_ERR(pmu)) {
106 meson_smp_prepare_cpus("arm,cortex-a5-scu", "amlogic,meson8b-pmu",
112 meson_smp_prepare_cpus("arm,cortex-a9-scu", "amlogic,meson8-pmu",
177 ret = regmap_update_bits(pmu, MESON_CPU_AO_RTI_PWR_A9_CNTL1,
187 ret = regmap_update_bits(pmu, MESON_CPU_AO_RTI_PWR_A9_CNTL0, BIT(cpu),
227 ret = regmap_update_bits(pmu, MESON_CPU_AO_RTI_PWR_A9_CNTL0,
244 ret = regmap_update_bits(pmu, MESON_CPU_AO_RTI_PWR_A9_MEM_PD0,
252 ret = regmap_update_bits(pmu, MESON_CPU_AO_RTI_PWR_A9_CNTL
[all...]
/linux-master/tools/perf/tests/shell/
H A Dstat.sh119 pmu=""
124 pmu="$i"
129 pmu="$i"
133 if test "x$pmu" = "x"
140 if ! perf stat --cputype="$pmu" -e instructions true 2>&1 | grep -E -q "instructions"
H A Dstat_all_pmu.sh8 for p in $(perf list --raw-dump pmu | sed 's/[[:graph:]]\+?[[:graph:]]\+[[:space:]]//g'); do
/linux-master/tools/perf/arch/arm64/util/
H A Dheader.c68 char *get_cpuid_str(struct perf_pmu *pmu) argument
73 if (!pmu || !pmu->cpus)
80 /* read midr from list of cpus mapped to this pmu */
81 res = _get_cpuid(buf, MIDR_SIZE, pmu->cpus);
83 pr_err("failed to get cpuid string for PMU %s\n", pmu->name);
/linux-master/arch/arm64/kvm/hyp/nvhe/
H A Dswitch.c139 struct kvm_pmu_events *pmu = &vcpu->arch.pmu.events; local
141 if (pmu->events_host)
142 write_sysreg(pmu->events_host, pmcntenclr_el0);
144 if (pmu->events_guest)
145 write_sysreg(pmu->events_guest, pmcntenset_el0);
147 return (pmu->events_host || pmu->events_guest);
155 struct kvm_pmu_events *pmu = &vcpu->arch.pmu local
[all...]
/linux-master/arch/arm/mach-rockchip/
H A Dplatsmp.c35 static struct regmap *pmu; variable in typeref:struct:regmap
43 ret = regmap_read(pmu, PMU_PWRDN_ST, &val);
85 ret = regmap_update_bits(pmu, PMU_PWRDN_CON, BIT(pd), val);
120 if (!sram_base_addr || (has_pmu && !pmu)) {
121 pr_err("%s: sram or pmu missing for cpu boot\n", __func__);
202 .name = "rockchip-pmu",
221 pmu = syscon_regmap_lookup_by_phandle(node, "rockchip,pmu");
223 if (!IS_ERR(pmu))
226 pmu
[all...]
/linux-master/drivers/dma/idxd/
H A Dperfmon.c82 return &idxd_pmu->pmu == event->pmu;
154 static int perfmon_validate_group(struct idxd_pmu *pmu, argument
165 fake_pmu->pmu.name = pmu->pmu.name;
166 fake_pmu->n_counters = pmu->n_counters;
206 if (event->attr.type != event->pmu->type)
216 if (event->pmu != &idxd->idxd_pmu->pmu)
447 perfmon_pmu_enable(struct pmu *pmu) argument
454 perfmon_pmu_disable(struct pmu *pmu) argument
[all...]
/linux-master/include/xen/interface/
H A Dxenpmu.h69 * by both the hypervisor and the guest (see arch-$arch/pmu.h).
92 struct xen_pmu_arch pmu; member in struct:xen_pmu_data
/linux-master/arch/arm/mach-mvebu/
H A Ddove.c11 #include <linux/soc/dove/pmu.h>
/linux-master/include/linux/perf/
H A Darm_pmu.h3 * linux/arch/arm/include/asm/pmu.h
80 struct pmu pmu; member in struct:arm_pmu
84 irqreturn_t (*handle_irq)(struct arm_pmu *pmu);
118 #define to_arm_pmu(p) (container_of(p, struct arm_pmu, pmu))
165 void kvm_host_pmu_init(struct arm_pmu *pmu);
174 void armpmu_free(struct arm_pmu *pmu);
175 int armpmu_register(struct arm_pmu *pmu);
179 #define ARMV8_PMU_PDEV_NAME "armv8-pmu"

Completed in 347 milliseconds

1234567891011>>