Searched refs:hw_events (Results 1 - 25 of 26) sorted by relevance

12

/linux-master/drivers/perf/
H A Darm_pmu_platform.c48 struct pmu_hw_events __percpu *hw_events = pmu->hw_events; local
55 per_cpu(hw_events->irq, cpu) = irq;
99 struct pmu_hw_events __percpu *hw_events = pmu->hw_events; local
144 if (per_cpu(hw_events->irq, cpu)) {
149 per_cpu(hw_events->irq, cpu) = irq;
158 struct pmu_hw_events __percpu *hw_events = armpmu->hw_events; local
162 int irq = per_cpu(hw_events
177 struct pmu_hw_events __percpu *hw_events = armpmu->hw_events; local
[all...]
H A Darm_pmu.c316 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); local
321 hw_events->events[idx] = NULL;
322 armpmu->clear_event_idx(hw_events, event);
332 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); local
341 idx = armpmu->get_event_idx(hw_events, event);
351 hw_events->events[idx] = event;
364 validate_event(struct pmu *pmu, struct pmu_hw_events *hw_events, argument
387 return armpmu->get_event_idx(hw_events, even
524 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); local
687 struct pmu_hw_events __percpu *hw_events = pmu->hw_events; local
741 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); local
774 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); local
[all...]
H A Dstarfive_starlink_pmu.c71 struct starlink_hw_events __percpu *hw_events; member in struct:starlink_pmu
293 struct starlink_hw_events *hw_events = local
294 this_cpu_ptr(starlink_pmu->hw_events);
296 unsigned long *used_mask = hw_events->used_mask;
319 hw_events->events[idx] = event;
333 struct starlink_hw_events *hw_events = local
334 this_cpu_ptr(starlink_pmu->hw_events);
338 hw_events->events[hwc->idx] = NULL;
339 clear_bit(hwc->idx, hw_events->used_mask);
400 struct starlink_hw_events *hw_events local
451 struct starlink_hw_events *hw_events = local
511 struct starlink_hw_events *hw_events; local
[all...]
H A Darm_pmu_acpi.c272 struct pmu_hw_events __percpu *hw_events = pmu->hw_events; local
279 int other_irq = per_cpu(hw_events->irq, cpu);
303 struct pmu_hw_events __percpu *hw_events; local
304 hw_events = pmu->hw_events;
305 per_cpu(hw_events->irq, cpu) = irq;
H A Darm-cci.c105 struct cci_pmu_hw_events hw_events; member in struct:cci_pmu
642 struct cci_pmu_hw_events *cci_hw = &cci_pmu->hw_events;
646 for_each_set_bit(i, cci_pmu->hw_events.used_mask, cci_pmu->num_cntrs) {
664 /* Should be called with cci_pmu->hw_events->pmu_lock held */
674 /* Should be called with cci_pmu->hw_events->pmu_lock held */
681 /* Should be called with cci_pmu->hw_events->pmu_lock held */
756 * cci_pm->hw_events->pmu_lock).
896 struct cci_pmu_hw_events *cci_hw = &cci_pmu->hw_events;
961 struct perf_event *event = cci_pmu->hw_events.events[i];
1027 struct cci_pmu_hw_events *events = &cci_pmu->hw_events;
1095 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; local
1111 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; local
1132 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; local
1189 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; local
1214 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; local
1225 validate_event(struct pmu *cci_pmu, struct cci_pmu_hw_events *hw_events, struct perf_event *event) argument
[all...]
H A Darm_dsu_pmu.c103 * @hw_events : Holds the event counter state.
117 struct dsu_hw_events hw_events; member in struct:dsu_pmu
299 static int dsu_pmu_get_event_idx(struct dsu_hw_events *hw_events, argument
305 unsigned long *used_mask = hw_events->used_mask;
316 set_bit(idx, hw_events->used_mask);
395 struct dsu_hw_events *hw_events = &dsu_pmu->hw_events; local
403 struct perf_event *event = hw_events->events[i];
443 struct dsu_hw_events *hw_events = &dsu_pmu->hw_events; local
469 struct dsu_hw_events *hw_events = &dsu_pmu->hw_events; local
509 dsu_pmu_validate_event(struct pmu *pmu, struct dsu_hw_events *hw_events, struct perf_event *event) argument
[all...]
H A Driscv_pmu.c264 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events);
288 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events);
400 pmu->hw_events = alloc_percpu_gfp(struct cpu_hw_events, GFP_KERNEL);
401 if (!pmu->hw_events) {
407 cpuc = per_cpu_ptr(pmu->hw_events, cpuid);
H A Driscv_pmu_sbi.c368 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events);
427 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events);
642 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events);
659 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events);
790 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events);
828 struct cpu_hw_events __percpu *hw_events = pmu->hw_events; local
864 ret = request_percpu_irq(riscv_pmu_irq, pmu_sbi_ovf_handler, "riscv-pmu", hw_events);
878 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events);
H A Dcxl_pmu.c98 struct perf_event **hw_events; member in struct:cxl_pmu_info
755 info->hw_events[idx] = event;
771 info->hw_events[hwc->idx] = NULL;
791 struct perf_event *event = info->hw_events[i];
845 info->hw_events = devm_kcalloc(dev, sizeof(*info->hw_events),
847 if (!info->hw_events)
H A Dapple_m1_cpu_pmu.c384 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events);
H A Darm_pmuv3.c783 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events);
844 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events);
/linux-master/include/linux/perf/
H A Darm_pmu.h87 int (*get_event_idx)(struct pmu_hw_events *hw_events,
89 void (*clear_event_idx)(struct pmu_hw_events *hw_events,
106 struct pmu_hw_events __percpu *hw_events; member in struct:arm_pmu
H A Driscv_pmu.h63 struct cpu_hw_events __percpu *hw_events; member in struct:riscv_pmu
/linux-master/drivers/perf/arm_cspmu/
H A Darm_cspmu.c553 disabled = bitmap_empty(cspmu->hw_events.used_ctrs,
569 static int arm_cspmu_get_event_idx(struct arm_cspmu_hw_events *hw_events, argument
579 hw_events->used_ctrs))
590 idx = find_first_zero_bit(hw_events->used_ctrs,
594 hw_events->used_ctrs,
599 idx = find_first_zero_bit(hw_events->used_ctrs,
612 set_bit(idx, hw_events->used_ctrs);
618 struct arm_cspmu_hw_events *hw_events,
628 return (arm_cspmu_get_event_idx(hw_events, event) >= 0);
889 struct arm_cspmu_hw_events *hw_events local
617 arm_cspmu_validate_event(struct pmu *pmu, struct arm_cspmu_hw_events *hw_events, struct perf_event *event) argument
918 struct arm_cspmu_hw_events *hw_events = &cspmu->hw_events; local
[all...]
H A Dampere_cspmu.c156 idx = find_first_bit(cspmu->hw_events.used_ctrs,
159 event = cspmu->hw_events.events[idx];
193 idx = find_first_bit(cspmu->hw_events.used_ctrs,
200 curr = cspmu->hw_events.events[idx];
H A Darm_cspmu.h159 struct arm_cspmu_hw_events hw_events; member in struct:arm_cspmu
/linux-master/arch/csky/kernel/
H A Dperf_event.c41 struct pmu_hw_events __percpu *hw_events; member in struct:csky_pmu_t
1075 struct pmu_hw_events *hw_events = this_cpu_ptr(csky_pmu.hw_events); local
1080 hw_events->events[hwc->idx] = NULL;
1088 struct pmu_hw_events *hw_events = this_cpu_ptr(csky_pmu.hw_events); local
1091 hw_events->events[hwc->idx] = event;
1106 struct pmu_hw_events *cpuc = this_cpu_ptr(csky_pmu.hw_events);
1178 this_cpu_ptr(csky_pmu.hw_events));
1195 free_percpu_irq(irq, this_cpu_ptr(csky_pmu.hw_events));
[all...]
/linux-master/drivers/perf/hisilicon/
H A Dhisi_pcie_pmu.c66 struct perf_event *hw_events[HISI_PCIE_MAX_COUNTERS]; member in struct:hisi_pcie_pmu
413 sibling = pcie_pmu->hw_events[idx];
559 if (!pcie_pmu->hw_events[idx]) {
561 pcie_pmu->hw_events[idx] = event;
576 pcie_pmu->hw_events[hwc->idx] = NULL;
586 if (pcie_pmu->hw_events[num])
618 event = pcie_pmu->hw_events[idx];
H A Dhisi_uncore_pmu.c149 event = hisi_pmu->pmu_events.hw_events[idx];
367 hisi_pmu->pmu_events.hw_events[idx] = event;
384 hisi_pmu->pmu_events.hw_events[hwc->idx] = NULL;
H A Dhisi_uncore_pmu.h79 struct perf_event *hw_events[HISI_MAX_COUNTERS]; member in struct:hisi_pmu_hwevents
H A Dhns3_pmu.c302 struct perf_event *hw_events[HNS3_PMU_MAX_HW_EVENTS]; member in struct:hns3_pmu
790 sibling = hns3_pmu->hw_events[idx];
817 if (!hns3_pmu->hw_events[idx])
1353 hns3_pmu->hw_events[idx] = event;
1368 hns3_pmu->hw_events[hwc->idx] = NULL;
/linux-master/arch/arm/kernel/
H A Dperf_event_xscale.c149 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events);
487 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events);
H A Dperf_event_v6.c243 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events);
H A Dperf_event_v7.c943 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events);
/linux-master/drivers/accel/habanalabs/gaudi2/
H A Dgaudi2P.h512 * @hw_events: array that holds all H/W events that are defined valid.
547 u32 hw_events[GAUDI2_EVENT_SIZE]; member in struct:gaudi2_device

Completed in 274 milliseconds

12