/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/ |
D | base.c | 32 struct nvkm_pmu *pmu = device->pmu; in nvkm_pmu_fan_controlled() local 37 if (pmu && pmu->func->code.size) in nvkm_pmu_fan_controlled() 48 nvkm_pmu_pgob(struct nvkm_pmu *pmu, bool enable) in nvkm_pmu_pgob() argument 50 if (pmu && pmu->func->pgob) in nvkm_pmu_pgob() 51 pmu->func->pgob(pmu, enable); in nvkm_pmu_pgob() 57 struct nvkm_pmu *pmu = container_of(work, typeof(*pmu), recv.work); in nvkm_pmu_recv() local 58 return pmu->func->recv(pmu); in nvkm_pmu_recv() 62 nvkm_pmu_send(struct nvkm_pmu *pmu, u32 reply[2], in nvkm_pmu_send() argument 65 if (!pmu || !pmu->func->send) in nvkm_pmu_send() 67 return pmu->func->send(pmu, reply, process, message, data0, data1); in nvkm_pmu_send() [all …]
|
D | gk20a.c | 51 gk20a_pmu_dvfs_target(struct gk20a_pmu *pmu, int *state) in gk20a_pmu_dvfs_target() argument 53 struct nvkm_clk *clk = pmu->base.subdev.device->clk; in gk20a_pmu_dvfs_target() 59 gk20a_pmu_dvfs_get_cur_state(struct gk20a_pmu *pmu, int *state) in gk20a_pmu_dvfs_get_cur_state() argument 61 struct nvkm_clk *clk = pmu->base.subdev.device->clk; in gk20a_pmu_dvfs_get_cur_state() 67 gk20a_pmu_dvfs_get_target_state(struct gk20a_pmu *pmu, in gk20a_pmu_dvfs_get_target_state() argument 70 struct gk20a_pmu_dvfs_data *data = pmu->data; in gk20a_pmu_dvfs_get_target_state() 71 struct nvkm_clk *clk = pmu->base.subdev.device->clk; in gk20a_pmu_dvfs_get_target_state() 86 nvkm_trace(&pmu->base.subdev, "cur level = %d, new level = %d\n", in gk20a_pmu_dvfs_get_target_state() 95 gk20a_pmu_dvfs_get_dev_status(struct gk20a_pmu *pmu, in gk20a_pmu_dvfs_get_dev_status() argument 98 struct nvkm_falcon *falcon = &pmu->base.falcon; in gk20a_pmu_dvfs_get_dev_status() [all …]
|
D | gt215.c | 30 gt215_pmu_send(struct nvkm_pmu *pmu, u32 reply[2], in gt215_pmu_send() argument 33 struct nvkm_subdev *subdev = &pmu->subdev; in gt215_pmu_send() 54 pmu->recv.message = message; in gt215_pmu_send() 55 pmu->recv.process = process; in gt215_pmu_send() 65 pmu->send.base)); in gt215_pmu_send() 77 wait_event(pmu->recv.wait, (pmu->recv.process == 0)); in gt215_pmu_send() 78 reply[0] = pmu->recv.data[0]; in gt215_pmu_send() 79 reply[1] = pmu->recv.data[1]; in gt215_pmu_send() 87 gt215_pmu_recv(struct nvkm_pmu *pmu) in gt215_pmu_recv() argument 89 struct nvkm_subdev *subdev = &pmu->subdev; in gt215_pmu_recv() [all …]
|
D | Kbuild | 2 nvkm-y += nvkm/subdev/pmu/base.o 3 nvkm-y += nvkm/subdev/pmu/memx.o 4 nvkm-y += nvkm/subdev/pmu/gt215.o 5 nvkm-y += nvkm/subdev/pmu/gf100.o 6 nvkm-y += nvkm/subdev/pmu/gf119.o 7 nvkm-y += nvkm/subdev/pmu/gk104.o 8 nvkm-y += nvkm/subdev/pmu/gk110.o 9 nvkm-y += nvkm/subdev/pmu/gk208.o 10 nvkm-y += nvkm/subdev/pmu/gk20a.o 11 nvkm-y += nvkm/subdev/pmu/gm107.o [all …]
|
D | gm20b.c | 42 struct nvkm_pmu *pmu = container_of(falcon, typeof(*pmu), falcon); in gm20b_pmu_acr_bootstrap_falcon() local 52 ret = nvkm_falcon_cmdq_send(pmu->hpq, &cmd.cmd.hdr, in gm20b_pmu_acr_bootstrap_falcon() 54 &pmu->subdev, msecs_to_jiffies(1000)); in gm20b_pmu_acr_bootstrap_falcon() 140 struct nvkm_pmu *pmu = priv; in gm20b_pmu_acr_init_wpr_callback() local 141 struct nvkm_subdev *subdev = &pmu->subdev; in gm20b_pmu_acr_init_wpr_callback() 150 complete_all(&pmu->wpr_ready); in gm20b_pmu_acr_init_wpr_callback() 155 gm20b_pmu_acr_init_wpr(struct nvkm_pmu *pmu) in gm20b_pmu_acr_init_wpr() argument 165 return nvkm_falcon_cmdq_send(pmu->hpq, &cmd.cmd.hdr, in gm20b_pmu_acr_init_wpr() 166 gm20b_pmu_acr_init_wpr_callback, pmu, 0); in gm20b_pmu_acr_init_wpr() 170 gm20b_pmu_initmsg(struct nvkm_pmu *pmu) in gm20b_pmu_initmsg() argument [all …]
|
/Linux-v5.10/arch/x86/kvm/vmx/ |
D | pmu_intel.c | 38 static void reprogram_fixed_counters(struct kvm_pmu *pmu, u64 data) in reprogram_fixed_counters() argument 42 for (i = 0; i < pmu->nr_arch_fixed_counters; i++) { in reprogram_fixed_counters() 44 u8 old_ctrl = fixed_ctrl_field(pmu->fixed_ctr_ctrl, i); in reprogram_fixed_counters() 47 pmc = get_fixed_pmc(pmu, MSR_CORE_PERF_FIXED_CTR0 + i); in reprogram_fixed_counters() 52 __set_bit(INTEL_PMC_IDX_FIXED + i, pmu->pmc_in_use); in reprogram_fixed_counters() 56 pmu->fixed_ctr_ctrl = data; in reprogram_fixed_counters() 60 static void global_ctrl_changed(struct kvm_pmu *pmu, u64 data) in global_ctrl_changed() argument 63 u64 diff = pmu->global_ctrl ^ data; in global_ctrl_changed() 65 pmu->global_ctrl = data; in global_ctrl_changed() 68 reprogram_counter(pmu, bit); in global_ctrl_changed() [all …]
|
/Linux-v5.10/drivers/gpu/drm/i915/ |
D | i915_pmu.c | 82 static bool pmu_needs_timer(struct i915_pmu *pmu, bool gpu_active) in pmu_needs_timer() argument 84 struct drm_i915_private *i915 = container_of(pmu, typeof(*i915), pmu); in pmu_needs_timer() 92 enable = pmu->enable; in pmu_needs_timer() 150 struct i915_pmu *pmu = &i915->pmu; in get_rc6() local 161 spin_lock_irqsave(&pmu->lock, flags); in get_rc6() 164 pmu->sample[__I915_SAMPLE_RC6].cur = val; in get_rc6() 173 val = ktime_since(pmu->sleep_last); in get_rc6() 174 val += pmu->sample[__I915_SAMPLE_RC6].cur; in get_rc6() 177 if (val < pmu->sample[__I915_SAMPLE_RC6_LAST_REPORTED].cur) in get_rc6() 178 val = pmu->sample[__I915_SAMPLE_RC6_LAST_REPORTED].cur; in get_rc6() [all …]
|
/Linux-v5.10/drivers/soc/dove/ |
D | pmu.c | 50 struct pmu_data *pmu = rcdev_to_pmu(rc); in pmu_reset_reset() local 54 spin_lock_irqsave(&pmu->lock, flags); in pmu_reset_reset() 55 val = readl_relaxed(pmu->pmc_base + PMC_SW_RST); in pmu_reset_reset() 56 writel_relaxed(val & ~BIT(id), pmu->pmc_base + PMC_SW_RST); in pmu_reset_reset() 57 writel_relaxed(val | BIT(id), pmu->pmc_base + PMC_SW_RST); in pmu_reset_reset() 58 spin_unlock_irqrestore(&pmu->lock, flags); in pmu_reset_reset() 65 struct pmu_data *pmu = rcdev_to_pmu(rc); in pmu_reset_assert() local 69 spin_lock_irqsave(&pmu->lock, flags); in pmu_reset_assert() 70 val &= readl_relaxed(pmu->pmc_base + PMC_SW_RST); in pmu_reset_assert() 71 writel_relaxed(val, pmu->pmc_base + PMC_SW_RST); in pmu_reset_assert() [all …]
|
/Linux-v5.10/drivers/perf/ |
D | fsl_imx8_ddr_perf.c | 40 #define to_ddr_pmu(p) container_of(p, struct ddr_pmu, pmu) 74 struct pmu pmu; member 93 static u32 ddr_perf_filter_cap_get(struct ddr_pmu *pmu, int cap) in ddr_perf_filter_cap_get() argument 95 u32 quirks = pmu->devtype_data->quirks; in ddr_perf_filter_cap_get() 114 struct ddr_pmu *pmu = dev_get_drvdata(dev); in ddr_perf_filter_cap_show() local 120 ddr_perf_filter_cap_get(pmu, cap)); in ddr_perf_filter_cap_show() 145 struct ddr_pmu *pmu = dev_get_drvdata(dev); in ddr_perf_cpumask_show() local 147 return cpumap_print_to_pagebuf(true, buf, cpumask_of(pmu->cpu)); in ddr_perf_cpumask_show() 266 struct ddr_pmu *pmu = to_ddr_pmu(event->pmu); in ddr_perf_is_enhanced_filtered() local 268 filt = pmu->devtype_data->quirks & DDR_CAP_AXI_ID_FILTER_ENHANCED; in ddr_perf_is_enhanced_filtered() [all …]
|
D | arm_pmu_platform.c | 25 static int probe_current_pmu(struct arm_pmu *pmu, in probe_current_pmu() argument 37 ret = info->init(pmu); in probe_current_pmu() 45 static int pmu_parse_percpu_irq(struct arm_pmu *pmu, int irq) in pmu_parse_percpu_irq() argument 48 struct pmu_hw_events __percpu *hw_events = pmu->hw_events; in pmu_parse_percpu_irq() 50 ret = irq_get_percpu_devid_partition(irq, &pmu->supported_cpus); in pmu_parse_percpu_irq() 54 for_each_cpu(cpu, &pmu->supported_cpus) in pmu_parse_percpu_irq() 96 static int pmu_parse_irqs(struct arm_pmu *pmu) in pmu_parse_irqs() argument 99 struct platform_device *pdev = pmu->plat_device; in pmu_parse_irqs() 100 struct pmu_hw_events __percpu *hw_events = pmu->hw_events; in pmu_parse_irqs() 114 pmu->pmu.capabilities |= PERF_PMU_CAP_NO_INTERRUPT; in pmu_parse_irqs() [all …]
|
D | arm_pmu_acpi.c | 191 struct arm_pmu *pmu; in arm_pmu_acpi_find_alloc_pmu() local 195 pmu = per_cpu(probed_pmus, cpu); in arm_pmu_acpi_find_alloc_pmu() 196 if (!pmu || pmu->acpi_cpuid != cpuid) in arm_pmu_acpi_find_alloc_pmu() 199 return pmu; in arm_pmu_acpi_find_alloc_pmu() 202 pmu = armpmu_alloc_atomic(); in arm_pmu_acpi_find_alloc_pmu() 203 if (!pmu) { in arm_pmu_acpi_find_alloc_pmu() 209 pmu->acpi_cpuid = cpuid; in arm_pmu_acpi_find_alloc_pmu() 211 return pmu; in arm_pmu_acpi_find_alloc_pmu() 218 static bool pmu_irq_matches(struct arm_pmu *pmu, int irq) in pmu_irq_matches() argument 220 struct pmu_hw_events __percpu *hw_events = pmu->hw_events; in pmu_irq_matches() [all …]
|
D | arm_pmu.c | 181 if (type == event->pmu->type) in armpmu_map_event() 198 struct arm_pmu *armpmu = to_arm_pmu(event->pmu); in armpmu_event_set_period() 240 struct arm_pmu *armpmu = to_arm_pmu(event->pmu); in armpmu_event_update() 270 struct arm_pmu *armpmu = to_arm_pmu(event->pmu); in armpmu_stop() 286 struct arm_pmu *armpmu = to_arm_pmu(event->pmu); in armpmu_start() 311 struct arm_pmu *armpmu = to_arm_pmu(event->pmu); in armpmu_del() 327 struct arm_pmu *armpmu = to_arm_pmu(event->pmu); in armpmu_add() 360 validate_event(struct pmu *pmu, struct pmu_hw_events *hw_events, in validate_event() argument 373 if (event->pmu != pmu) in validate_event() 382 armpmu = to_arm_pmu(event->pmu); in validate_event() [all …]
|
/Linux-v5.10/arch/x86/kvm/svm/ |
D | pmu.c | 47 static unsigned int get_msr_base(struct kvm_pmu *pmu, enum pmu_type type) in get_msr_base() argument 49 struct kvm_vcpu *vcpu = pmu_to_vcpu(pmu); in get_msr_base() 98 static inline struct kvm_pmc *get_gp_pmc_amd(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc_amd() argument 126 return &pmu->gp_counters[msr_to_index(msr)]; in get_gp_pmc_amd() 129 static unsigned amd_find_arch_event(struct kvm_pmu *pmu, in amd_find_arch_event() argument 160 static struct kvm_pmc *amd_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in amd_pmc_idx_to_pmc() argument 162 unsigned int base = get_msr_base(pmu, PMU_TYPE_COUNTER); in amd_pmc_idx_to_pmc() 163 struct kvm_vcpu *vcpu = pmu_to_vcpu(pmu); in amd_pmc_idx_to_pmc() 173 return get_gp_pmc_amd(pmu, base + pmc_idx, PMU_TYPE_COUNTER); in amd_pmc_idx_to_pmc() 179 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_is_valid_rdpmc_ecx() local [all …]
|
/Linux-v5.10/arch/x86/events/intel/ |
D | uncore.h | 77 struct pmu *pmu; /* for custom pmu ops */ member 110 struct pmu pmu; member 140 struct intel_uncore_pmu *pmu; member 187 return container_of(dev_get_drvdata(dev), struct intel_uncore_pmu, pmu); in dev_to_uncore_pmu() 227 if (offset < box->pmu->type->mmio_map_size) in uncore_mmio_is_valid_offset() 231 offset, box->pmu->type->name); in uncore_mmio_is_valid_offset() 239 return box->pmu->type->box_ctl + in uncore_mmio_box_ctl() 240 box->pmu->type->mmio_offset * box->pmu->pmu_idx; in uncore_mmio_box_ctl() 245 return box->pmu->type->box_ctl; in uncore_pci_box_ctl() 250 return box->pmu->type->fixed_ctl; in uncore_pci_fixed_ctl() [all …]
|
D | uncore.c | 105 struct intel_uncore_box *uncore_pmu_to_box(struct intel_uncore_pmu *pmu, int cpu) in uncore_pmu_to_box() argument 113 return dieid < uncore_max_dies() ? pmu->boxes[dieid] : NULL; in uncore_pmu_to_box() 354 return &box->pmu->pmu == event->pmu; in is_box_event() 364 max_count = box->pmu->type->num_counters; in uncore_collect_events() 365 if (box->pmu->type->fixed_ctl) in uncore_collect_events() 398 struct intel_uncore_type *type = box->pmu->type; in uncore_get_event_constraint() 423 if (box->pmu->type->ops->put_constraint) in uncore_put_event_constraint() 424 box->pmu->type->ops->put_constraint(box, event); in uncore_put_event_constraint() 662 static int uncore_validate_group(struct intel_uncore_pmu *pmu, in uncore_validate_group() argument 673 fake_box = uncore_alloc_box(pmu->type, NUMA_NO_NODE); in uncore_validate_group() [all …]
|
/Linux-v5.10/arch/x86/events/ |
D | rapl.c | 110 struct pmu *pmu; member 116 struct pmu pmu; member 210 static void rapl_start_hrtimer(struct rapl_pmu *pmu) in rapl_start_hrtimer() argument 212 hrtimer_start(&pmu->hrtimer, pmu->timer_interval, in rapl_start_hrtimer() 218 struct rapl_pmu *pmu = container_of(hrtimer, struct rapl_pmu, hrtimer); in rapl_hrtimer_handle() local 222 if (!pmu->n_active) in rapl_hrtimer_handle() 225 raw_spin_lock_irqsave(&pmu->lock, flags); in rapl_hrtimer_handle() 227 list_for_each_entry(event, &pmu->active_list, active_entry) in rapl_hrtimer_handle() 230 raw_spin_unlock_irqrestore(&pmu->lock, flags); in rapl_hrtimer_handle() 232 hrtimer_forward_now(hrtimer, pmu->timer_interval); in rapl_hrtimer_handle() [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/pinctrl/ |
D | marvell,dove-pinctrl.txt | 14 Note: pmu* also allows for Power Management functions listed below 18 mpp0 0 gpio, pmu, uart2(rts), sdio0(cd), lcd0(pwm), pmu* 19 mpp1 1 gpio, pmu, uart2(cts), sdio0(wp), lcd1(pwm), pmu* 20 mpp2 2 gpio, pmu, uart2(txd), sdio0(buspwr), sata(prsnt), 21 uart1(rts), pmu* 22 mpp3 3 gpio, pmu, uart2(rxd), sdio0(ledctrl), sata(act), 23 uart1(cts), lcd-spi(cs1), pmu* 24 mpp4 4 gpio, pmu, uart3(rts), sdio1(cd), spi1(miso), pmu* 25 mpp5 5 gpio, pmu, uart3(cts), sdio1(wp), spi1(cs), pmu* 26 mpp6 6 gpio, pmu, uart3(txd), sdio1(buspwr), spi1(mosi), pmu* [all …]
|
/Linux-v5.10/arch/powerpc/perf/ |
D | imc-pmu.c | 59 return container_of(event->pmu, struct imc_pmu, pmu); in imc_event_to_pmu() 103 struct pmu *pmu = dev_get_drvdata(dev); in imc_pmu_cpumask_get_attr() local 104 struct imc_pmu *imc_pmu = container_of(pmu, struct imc_pmu, pmu); in imc_pmu_cpumask_get_attr() 219 static int update_events_in_group(struct device_node *node, struct imc_pmu *pmu) in update_events_in_group() argument 256 pmu->events = kcalloc(ct, sizeof(struct imc_events), GFP_KERNEL); in update_events_in_group() 257 if (!pmu->events) in update_events_in_group() 263 ret = imc_parse_event(np, g_scale, g_unit, prefix, base_reg, &pmu->events[ct]); in update_events_in_group() 271 imc_free_events(pmu->events, ct); in update_events_in_group() 286 imc_free_events(pmu->events, ct); in update_events_in_group() 293 ev_val_str = kasprintf(GFP_KERNEL, "event=0x%x", pmu->events[i].value); in update_events_in_group() [all …]
|
D | Makefile | 9 obj64-$(CONFIG_PPC_PERF_CTRS) += ppc970-pmu.o power5-pmu.o \ 10 power5+-pmu.o power6-pmu.o power7-pmu.o \ 11 isa207-common.o power8-pmu.o power9-pmu.o \ 12 generic-compat-pmu.o power10-pmu.o 13 obj32-$(CONFIG_PPC_PERF_CTRS) += mpc7450-pmu.o 15 obj-$(CONFIG_PPC_POWERNV) += imc-pmu.o 17 obj-$(CONFIG_FSL_EMB_PERF_EVENT_E500) += e500-pmu.o e6500-pmu.o 21 obj-$(CONFIG_PPC_8xx) += 8xx-pmu.o
|
/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
D | gm200.c | 32 pmu_code(struct nv50_devinit *init, u32 pmu, u32 img, u32 len, bool sec) in pmu_code() argument 38 nvkm_wr32(device, 0x10a180, 0x01000000 | (sec ? 0x10000000 : 0) | pmu); in pmu_code() 41 nvkm_wr32(device, 0x10a188, (pmu + i) >> 8); in pmu_code() 52 pmu_data(struct nv50_devinit *init, u32 pmu, u32 img, u32 len) in pmu_data() argument 58 nvkm_wr32(device, 0x10a1c0, 0x01000000 | pmu); in pmu_data() 87 struct nvbios_pmuR pmu; in pmu_load() local 89 if (!nvbios_pmuRm(bios, type, &pmu)) in pmu_load() 95 pmu_code(init, pmu.boot_addr_pmu, pmu.boot_addr, pmu.boot_size, false); in pmu_load() 96 pmu_code(init, pmu.code_addr_pmu, pmu.code_addr, pmu.code_size, true); in pmu_load() 97 pmu_data(init, pmu.data_addr_pmu, pmu.data_addr, pmu.data_size); in pmu_load() [all …]
|
/Linux-v5.10/drivers/soc/rockchip/ |
D | pm_domains.c | 69 struct rockchip_pmu *pmu; member 136 struct rockchip_pmu *pmu = pd->pmu; in rockchip_pmu_domain_is_idle() local 140 regmap_read(pmu->regmap, pmu->info->idle_offset, &val); in rockchip_pmu_domain_is_idle() 144 static unsigned int rockchip_pmu_read_ack(struct rockchip_pmu *pmu) in rockchip_pmu_read_ack() argument 148 regmap_read(pmu->regmap, pmu->info->ack_offset, &val); in rockchip_pmu_read_ack() 157 struct rockchip_pmu *pmu = pd->pmu; in rockchip_pmu_set_idle_request() local 166 regmap_write(pmu->regmap, pmu->info->req_offset, in rockchip_pmu_set_idle_request() 170 regmap_update_bits(pmu->regmap, pmu->info->req_offset, in rockchip_pmu_set_idle_request() 177 ret = readx_poll_timeout_atomic(rockchip_pmu_read_ack, pmu, val, in rockchip_pmu_set_idle_request() 181 dev_err(pmu->dev, in rockchip_pmu_set_idle_request() [all …]
|
/Linux-v5.10/arch/arm64/kvm/ |
D | pmu-emul.c | 51 struct kvm_pmu *pmu; in kvm_pmc_to_vcpu() local 55 pmu = container_of(pmc, struct kvm_pmu, pmc[0]); in kvm_pmc_to_vcpu() 56 vcpu_arch = container_of(pmu, struct kvm_vcpu_arch, pmu); in kvm_pmc_to_vcpu() 68 return test_bit(pmc->idx >> 1, vcpu->arch.pmu.chained); in kvm_pmu_pmc_is_chained() 166 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_get_counter_value() local 167 struct kvm_pmc *pmc = &pmu->pmc[select_idx]; in kvm_pmu_get_counter_value() 252 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_vcpu_init() local 255 pmu->pmc[i].idx = i; in kvm_pmu_vcpu_init() 266 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_vcpu_reset() local 270 kvm_pmu_stop_counter(vcpu, &pmu->pmc[i]); in kvm_pmu_vcpu_reset() [all …]
|
/Linux-v5.10/drivers/regulator/ |
D | bcm590xx-regulator.c | 278 struct bcm590xx_reg *pmu; in bcm590xx_probe() local 284 pmu = devm_kzalloc(&pdev->dev, sizeof(*pmu), GFP_KERNEL); in bcm590xx_probe() 285 if (!pmu) in bcm590xx_probe() 288 pmu->mfd = bcm590xx; in bcm590xx_probe() 290 platform_set_drvdata(pdev, pmu); in bcm590xx_probe() 292 pmu->desc = devm_kcalloc(&pdev->dev, in bcm590xx_probe() 296 if (!pmu->desc) in bcm590xx_probe() 303 pmu->desc[i].name = info->name; in bcm590xx_probe() 304 pmu->desc[i].of_match = of_match_ptr(info->name); in bcm590xx_probe() 305 pmu->desc[i].regulators_node = of_match_ptr("regulators"); in bcm590xx_probe() [all …]
|
/Linux-v5.10/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 …]
|
/Linux-v5.10/arch/x86/kvm/ |
D | pmu.h | 7 #define vcpu_to_pmu(vcpu) (&(vcpu)->arch.pmu) 8 #define pmu_to_vcpu(pmu) (container_of((pmu), struct kvm_vcpu, arch.pmu)) argument 9 #define pmc_to_pmu(pmc) (&(pmc)->vcpu->arch.pmu) 27 unsigned (*find_arch_event)(struct kvm_pmu *pmu, u8 event_select, 31 struct kvm_pmc *(*pmc_idx_to_pmc)(struct kvm_pmu *pmu, int pmc_idx); 46 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in pmc_bitmask() local 48 return pmu->counter_bitmask[pmc->type]; in pmc_bitmask() 96 static inline bool kvm_valid_perf_global_ctrl(struct kvm_pmu *pmu, in kvm_valid_perf_global_ctrl() argument 99 return !(pmu->global_ctrl_mask & data); in kvm_valid_perf_global_ctrl() 106 static inline struct kvm_pmc *get_gp_pmc(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc() argument [all …]
|