Home
last modified time | relevance | path

Searched refs:INTEL_PMC_IDX_FIXED (Results 1 – 9 of 9) sorted by relevance

/linux-6.1.9/arch/x86/include/asm/
Dperf_event.h13 #define INTEL_PMC_IDX_FIXED 32 macro
260 #define INTEL_PMC_IDX_FIXED_INSTRUCTIONS (INTEL_PMC_IDX_FIXED + 0)
264 #define INTEL_PMC_IDX_FIXED_CPU_CYCLES (INTEL_PMC_IDX_FIXED + 1)
268 #define INTEL_PMC_IDX_FIXED_REF_CYCLES (INTEL_PMC_IDX_FIXED + 2)
273 #define INTEL_PMC_IDX_FIXED_SLOTS (INTEL_PMC_IDX_FIXED + 3)
288 #define INTEL_PMC_IDX_FIXED_BTS (INTEL_PMC_IDX_FIXED + 15)
296 #define INTEL_PMC_IDX_METRIC_BASE (INTEL_PMC_IDX_FIXED + 16)
/linux-6.1.9/arch/x86/kvm/vmx/
Dpmu_intel.c54 __set_bit(INTEL_PMC_IDX_FIXED + i, pmu->pmc_in_use); in reprogram_fixed_counters()
61 if (pmc_idx < INTEL_PMC_IDX_FIXED) { in intel_pmc_idx_to_pmc()
65 u32 idx = pmc_idx - INTEL_PMC_IDX_FIXED; in intel_pmc_idx_to_pmc()
566 (((1ull << pmu->nr_arch_fixed_counters) - 1) << INTEL_PMC_IDX_FIXED)); in intel_pmu_refresh()
604 ~(1ULL << (INTEL_PMC_IDX_FIXED + i * 4)); in intel_pmu_refresh()
630 pmu->fixed_counters[i].idx = i + INTEL_PMC_IDX_FIXED; in intel_pmu_init()
/linux-6.1.9/arch/x86/events/intel/
Dds.c1267 if (hwc->idx >= INTEL_PMC_IDX_FIXED) { in intel_pmu_pebs_via_pt_enable()
1269 idx = hwc->idx - INTEL_PMC_IDX_FIXED; in intel_pmu_pebs_via_pt_enable()
1302 if (idx >= INTEL_PMC_IDX_FIXED) { in intel_pmu_pebs_enable()
1304 idx = MAX_PEBS_EVENTS_FMT4 + (idx - INTEL_PMC_IDX_FIXED); in intel_pmu_pebs_enable()
1306 idx = MAX_PEBS_EVENTS + (idx - INTEL_PMC_IDX_FIXED); in intel_pmu_pebs_enable()
2081 short counts[INTEL_PMC_IDX_FIXED + MAX_FIXED_PEBS_EVENTS] = {}; in intel_pmu_drain_pebs_nhm()
2082 short error[INTEL_PMC_IDX_FIXED + MAX_FIXED_PEBS_EVENTS] = {}; in intel_pmu_drain_pebs_nhm()
2097 mask |= ((1ULL << x86_pmu.num_counters_fixed) - 1) << INTEL_PMC_IDX_FIXED; in intel_pmu_drain_pebs_nhm()
2098 size = INTEL_PMC_IDX_FIXED + x86_pmu.num_counters_fixed; in intel_pmu_drain_pebs_nhm()
2191 short counts[INTEL_PMC_IDX_FIXED + MAX_FIXED_PEBS_EVENTS] = {}; in intel_pmu_drain_pebs_icl()
[all …]
Dcore.c2444 mask = 0xfULL << ((idx - INTEL_PMC_IDX_FIXED) * 4); in intel_pmu_disable_fixed()
2454 case 0 ... INTEL_PMC_IDX_FIXED - 1: in intel_pmu_disable_event()
2458 case INTEL_PMC_IDX_FIXED ... INTEL_PMC_IDX_FIXED_BTS - 1: in intel_pmu_disable_event()
2755 idx -= INTEL_PMC_IDX_FIXED; in intel_pmu_enable_fixed()
2777 case 0 ... INTEL_PMC_IDX_FIXED - 1: in intel_pmu_enable_event()
2781 case INTEL_PMC_IDX_FIXED ... INTEL_PMC_IDX_FIXED_BTS - 1: in intel_pmu_enable_event()
2915 INTEL_PMC_IDX_FIXED + x86_pmu.num_counters_fixed) { in x86_pmu_handle_guest_pebs()
5631 *intel_ctrl |= fixed_mask << INTEL_PMC_IDX_FIXED; in intel_pmu_check_num_counters()
5676 ~(~0ULL << (INTEL_PMC_IDX_FIXED + num_counters_fixed)); in intel_pmu_check_event_constraints()
/linux-6.1.9/arch/x86/events/zhaoxin/
Dcore.c291 int idx = hwc->idx - INTEL_PMC_IDX_FIXED; in zhaoxin_pmu_disable_fixed()
315 int idx = hwc->idx - INTEL_PMC_IDX_FIXED; in zhaoxin_pmu_enable_fixed()
602 x86_pmu.intel_ctrl |= ((1LL << x86_pmu.num_counters_fixed)-1) << INTEL_PMC_IDX_FIXED; in zhaoxin_pmu_init()
/linux-6.1.9/arch/x86/events/
Dcore.c874 if (c->idxmsk64 & (~0ULL << INTEL_PMC_IDX_FIXED)) { in __perf_sched_find_counter()
875 idx = INTEL_PMC_IDX_FIXED; in __perf_sched_find_counter()
889 for_each_set_bit_from(idx, c->idxmsk, INTEL_PMC_IDX_FIXED) { in __perf_sched_find_counter()
1235 case INTEL_PMC_IDX_FIXED ... INTEL_PMC_IDX_FIXED_BTS-1: in x86_assign_hw_event()
1238 (idx - INTEL_PMC_IDX_FIXED); in x86_assign_hw_event()
1239 hwc->event_base_rdpmc = (idx - INTEL_PMC_IDX_FIXED) | in x86_assign_hw_event()
2051 << INTEL_PMC_IDX_FIXED) & intel_ctrl)); in x86_pmu_show_pmu_cap()
2507 if (i >= INTEL_PMC_IDX_FIXED) { in perf_clear_dirty_counters()
2509 if ((i - INTEL_PMC_IDX_FIXED) >= hybrid(cpuc->pmu, num_counters_fixed)) in perf_clear_dirty_counters()
2512 wrmsrl(MSR_ARCH_PERFMON_FIXED_CTR0 + (i - INTEL_PMC_IDX_FIXED), 0); in perf_clear_dirty_counters()
Dperf_event.h1297 return !(intel_ctrl >> (i + INTEL_PMC_IDX_FIXED)); in fixed_counter_disabled()
/linux-6.1.9/arch/x86/kvm/
Dpmu.c283 idx = pmc->idx - INTEL_PMC_IDX_FIXED; in check_pmu_event_filter()
316 pmc->idx - INTEL_PMC_IDX_FIXED); in reprogram_counter()
Dpmu.h156 pmc->idx - INTEL_PMC_IDX_FIXED) & 0x3; in pmc_speculative_in_use()