Home
last modified time | relevance | path

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

/Linux-v6.6/arch/x86/include/asm/
Dperf_event.h13 #define INTEL_PMC_IDX_FIXED 32 macro
281 #define INTEL_PMC_IDX_FIXED_INSTRUCTIONS (INTEL_PMC_IDX_FIXED + 0)
285 #define INTEL_PMC_IDX_FIXED_CPU_CYCLES (INTEL_PMC_IDX_FIXED + 1)
289 #define INTEL_PMC_IDX_FIXED_REF_CYCLES (INTEL_PMC_IDX_FIXED + 2)
294 #define INTEL_PMC_IDX_FIXED_SLOTS (INTEL_PMC_IDX_FIXED + 3)
309 #define INTEL_PMC_IDX_FIXED_BTS (INTEL_PMC_IDX_FIXED + 15)
317 #define INTEL_PMC_IDX_METRIC_BASE (INTEL_PMC_IDX_FIXED + 16)
/Linux-v6.6/arch/x86/kvm/vmx/
Dpmu_intel.c87 __set_bit(INTEL_PMC_IDX_FIXED + i, pmu->pmc_in_use); in reprogram_fixed_counters()
94 if (pmc_idx < INTEL_PMC_IDX_FIXED) { in intel_pmc_idx_to_pmc()
98 u32 idx = pmc_idx - INTEL_PMC_IDX_FIXED; in intel_pmc_idx_to_pmc()
554 (((1ull << pmu->nr_arch_fixed_counters) - 1) << INTEL_PMC_IDX_FIXED)); in intel_pmu_refresh()
598 ~(1ULL << (INTEL_PMC_IDX_FIXED + i * 4)); in intel_pmu_refresh()
624 pmu->fixed_counters[i].idx = i + INTEL_PMC_IDX_FIXED; in intel_pmu_init()
/Linux-v6.6/arch/x86/events/intel/
Dds.c1314 if (hwc->idx >= INTEL_PMC_IDX_FIXED) { in intel_pmu_pebs_via_pt_enable()
1316 idx = hwc->idx - INTEL_PMC_IDX_FIXED; in intel_pmu_pebs_via_pt_enable()
1368 if (idx >= INTEL_PMC_IDX_FIXED) { in intel_pmu_pebs_enable()
1370 idx = MAX_PEBS_EVENTS_FMT4 + (idx - INTEL_PMC_IDX_FIXED); in intel_pmu_pebs_enable()
1372 idx = MAX_PEBS_EVENTS + (idx - INTEL_PMC_IDX_FIXED); in intel_pmu_pebs_enable()
2157 short counts[INTEL_PMC_IDX_FIXED + MAX_FIXED_PEBS_EVENTS] = {}; in intel_pmu_drain_pebs_nhm()
2158 short error[INTEL_PMC_IDX_FIXED + MAX_FIXED_PEBS_EVENTS] = {}; in intel_pmu_drain_pebs_nhm()
2173 mask |= ((1ULL << x86_pmu.num_counters_fixed) - 1) << INTEL_PMC_IDX_FIXED; in intel_pmu_drain_pebs_nhm()
2174 size = INTEL_PMC_IDX_FIXED + x86_pmu.num_counters_fixed; in intel_pmu_drain_pebs_nhm()
2267 short counts[INTEL_PMC_IDX_FIXED + MAX_FIXED_PEBS_EVENTS] = {}; in intel_pmu_drain_pebs_icl()
[all …]
Dcore.c2475 mask = intel_fixed_bits_by_idx(idx - INTEL_PMC_IDX_FIXED, INTEL_FIXED_BITS_MASK); in intel_pmu_disable_fixed()
2485 case 0 ... INTEL_PMC_IDX_FIXED - 1: in intel_pmu_disable_event()
2489 case INTEL_PMC_IDX_FIXED ... INTEL_PMC_IDX_FIXED_BTS - 1: in intel_pmu_disable_event()
2786 idx -= INTEL_PMC_IDX_FIXED; in intel_pmu_enable_fixed()
2808 case 0 ... INTEL_PMC_IDX_FIXED - 1: in intel_pmu_enable_event()
2812 case INTEL_PMC_IDX_FIXED ... INTEL_PMC_IDX_FIXED_BTS - 1: in intel_pmu_enable_event()
2946 INTEL_PMC_IDX_FIXED + x86_pmu.num_counters_fixed) { in x86_pmu_handle_guest_pebs()
5813 *intel_ctrl |= fixed_mask << INTEL_PMC_IDX_FIXED; in intel_pmu_check_num_counters()
5858 ~(~0ULL << (INTEL_PMC_IDX_FIXED + num_counters_fixed)); in intel_pmu_check_event_constraints()
/Linux-v6.6/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()
608 x86_pmu.intel_ctrl |= ((1LL << x86_pmu.num_counters_fixed)-1) << INTEL_PMC_IDX_FIXED; in zhaoxin_pmu_init()
/Linux-v6.6/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()
2050 << INTEL_PMC_IDX_FIXED) & intel_ctrl)); in x86_pmu_show_pmu_cap()
2481 if (i >= INTEL_PMC_IDX_FIXED) { in perf_clear_dirty_counters()
2483 if ((i - INTEL_PMC_IDX_FIXED) >= hybrid(cpuc->pmu, num_counters_fixed)) in perf_clear_dirty_counters()
2486 wrmsrl(MSR_ARCH_PERFMON_FIXED_CTR0 + (i - INTEL_PMC_IDX_FIXED), 0); in perf_clear_dirty_counters()
Dperf_event.h1300 return !(intel_ctrl >> (i + INTEL_PMC_IDX_FIXED)); in fixed_counter_disabled()
/Linux-v6.6/arch/x86/kvm/
Dpmu.c347 int fixed_idx = idx - INTEL_PMC_IDX_FIXED; in is_fixed_event_allowed()
401 pmc->idx - INTEL_PMC_IDX_FIXED); in reprogram_counter()
726 pmc->idx - INTEL_PMC_IDX_FIXED); in cpl_is_matched()
Dpmu.h174 pmc->idx - INTEL_PMC_IDX_FIXED) & 0x3; in pmc_speculative_in_use()
/Linux-v6.6/tools/testing/selftests/kvm/x86_64/
Dpmu_event_filter_test.c30 #define INTEL_PMC_IDX_FIXED 32 macro
821 BIT_ULL(INTEL_PMC_IDX_FIXED + fixed_ctr_idx)); in intel_run_fixed_counter_guest_code()