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

1234567891011>>

/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
H A Dgp10b.c27 #include <nvfw/pmu.h>
40 struct nvkm_pmu *pmu = container_of(falcon, typeof(*pmu), falcon); local
52 ret = nvkm_falcon_cmdq_send(pmu->hpq, &cmd.cmd.hdr,
54 &pmu->subdev, msecs_to_jiffies(1000));
79 MODULE_FIRMWARE("nvidia/gp10b/pmu/desc.bin");
80 MODULE_FIRMWARE("nvidia/gp10b/pmu/image.bin");
81 MODULE_FIRMWARE("nvidia/gp10b/pmu/sig.bin");
/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 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/arch/x86/kvm/
H A Dpmu.c24 #include "pmu.h"
56 * - pmu.c understands the difference between gp counters and fixed counters.
84 #include <asm/kvm-x86-pmu-ops.h>
95 #include <asm/kvm-x86-pmu-ops.h>
101 struct kvm_pmu *pmu = pmc_to_pmu(pmc); local
116 (unsigned long *)&pmu->global_status);
119 __set_bit(pmc->idx, (unsigned long *)&pmu->global_status);
180 struct kvm_pmu *pmu = pmc_to_pmu(pmc); local
192 bool pebs = test_bit(pmc->idx, (unsigned long *)&pmu->pebs_enable);
452 struct kvm_pmu *pmu local
498 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); local
584 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); local
631 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); local
640 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); local
665 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); local
724 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); local
753 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); local
796 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); local
806 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); local
866 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); local
[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/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/tools/perf/util/
H A Dmem-events.c15 #include "pmu.h"
32 struct perf_mem_event *perf_pmu__mem_events_ptr(struct perf_pmu *pmu, int i) argument
34 if (i >= PERF_MEM_EVENTS__MAX || !pmu)
37 return &pmu->mem_events[i];
40 static struct perf_pmu *perf_pmus__scan_mem(struct perf_pmu *pmu) argument
42 while ((pmu = perf_pmus__scan(pmu)) != NULL) {
43 if (pmu->mem_events)
44 return pmu;
66 * perf_pmu__mem_events_num_mem_pmus - Get the number of mem PMUs since the given pmu
69 perf_pmu__mem_events_num_mem_pmus(struct perf_pmu *pmu) argument
79 perf_pmu__mem_events_name(int i, struct perf_pmu *pmu) argument
126 struct perf_pmu *pmu = leader->pmu; local
139 perf_pmu__mem_events_parse(struct perf_pmu *pmu, const char *str) argument
178 perf_pmu__mem_events_supported(const char *mnt, struct perf_pmu *pmu, struct perf_mem_event *e) argument
192 perf_pmu__mem_events_init(struct perf_pmu *pmu) argument
219 perf_pmu__mem_events_list(struct perf_pmu *pmu) argument
238 struct perf_pmu *pmu = NULL; local
[all...]
H A Dmem-events.h41 int perf_pmu__mem_events_parse(struct perf_pmu *pmu, const char *str);
42 int perf_pmu__mem_events_init(struct perf_pmu *pmu);
44 struct perf_mem_event *perf_pmu__mem_events_ptr(struct perf_pmu *pmu, int i);
46 int perf_pmu__mem_events_num_mem_pmus(struct perf_pmu *pmu);
49 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
1523 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
1685 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, struct rblist *metric_events) argument
1720 const char *pmu; member in struct:metricgroup__has_metric_data
1732 metricgroup__has_metric(const char *pmu, const char *metric) argument
[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/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/drivers/perf/
H A Driscv_pmu_sbi.c11 #define pr_fmt(fmt) "riscv-pmu-sbi: " fmt
81 * per_cpu in case of harts with different pmu counters
367 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu);
426 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu);
630 static inline void pmu_sbi_stop_all(struct riscv_pmu *pmu) argument
637 0, pmu->cmask, 0, 0, 0, 0);
640 static inline void pmu_sbi_stop_hw_ctrs(struct riscv_pmu *pmu) argument
642 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events);
655 static inline void pmu_sbi_start_overflow_mask(struct riscv_pmu *pmu, argument
659 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu
701 struct riscv_pmu *pmu; local
789 struct riscv_pmu *pmu = hlist_entry_safe(node, struct riscv_pmu, node); local
825 pmu_sbi_setup_irqs(struct riscv_pmu *pmu, struct platform_device *pdev) argument
913 riscv_pm_pmu_register(struct riscv_pmu *pmu) argument
919 riscv_pm_pmu_unregister(struct riscv_pmu *pmu) argument
924 riscv_pm_pmu_register(struct riscv_pmu *pmu) argument
925 riscv_pm_pmu_unregister(struct riscv_pmu *pmu) argument
928 riscv_pmu_destroy(struct riscv_pmu *pmu) argument
1051 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);
247 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu);
263 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu);
287 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu);
311 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu);
330 * decided until binding to some counter in pmu->add().
359 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu);
392 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...]
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);
155 struct pmu *pmu = dev_get_drvdata(dev); local
156 struct dsu_pmu *dsu_pmu = to_dsu_pmu(pmu);
201 struct pmu *pm local
479 dsu_pmu_enable(struct pmu *pmu) argument
496 dsu_pmu_disable(struct pmu *pmu) argument
509 dsu_pmu_validate_event(struct pmu *pmu, struct dsu_hw_events *hw_events, struct perf_event *event) argument
[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/tools/perf/arch/arm64/util/
H A Dheader.c73 char *get_cpuid_str(struct perf_pmu *pmu) argument
78 if (!pmu || !pmu->cpus)
85 /* read midr from list of cpus mapped to this pmu */
86 res = _get_cpuid(buf, MIDR_SIZE, pmu->cpus);
88 pr_err("failed to get cpuid string for PMU %s\n", pmu->name);
/linux-master/drivers/perf/hisilicon/
H A Dhisi_uncore_pmu.h28 #define to_hisi_pmu(p) (container_of(p, struct hisi_pmu, pmu))
84 /* Generic pmu struct for different pmu types */
86 struct pmu pmu; member in struct:hisi_pmu
121 void hisi_uncore_pmu_enable(struct pmu *pmu);
122 void hisi_uncore_pmu_disable(struct pmu *pmu);

Completed in 333 milliseconds

1234567891011>>