Home
last modified time | relevance | path

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

/openbmc/linux/arch/x86/include/asm/
H A Dperf_event.h13 #define INTEL_PMC_IDX_FIXED 32 macro
305 #define INTEL_PMC_IDX_FIXED_INSTRUCTIONS (INTEL_PMC_IDX_FIXED + 0)
309 #define INTEL_PMC_IDX_FIXED_CPU_CYCLES (INTEL_PMC_IDX_FIXED + 1)
313 #define INTEL_PMC_IDX_FIXED_REF_CYCLES (INTEL_PMC_IDX_FIXED + 2)
318 #define INTEL_PMC_IDX_FIXED_SLOTS (INTEL_PMC_IDX_FIXED + 3)
333 #define INTEL_PMC_IDX_FIXED_BTS (INTEL_PMC_IDX_FIXED + 15)
341 #define INTEL_PMC_IDX_METRIC_BASE (INTEL_PMC_IDX_FIXED + 16)
/openbmc/linux/arch/x86/kvm/vmx/
H A 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()
542 (((1ull << pmu->nr_arch_fixed_counters) - 1) << INTEL_PMC_IDX_FIXED)); in intel_pmu_refresh()
586 ~(1ULL << (INTEL_PMC_IDX_FIXED + i * 4)); in intel_pmu_refresh()
612 pmu->fixed_counters[i].idx = i + INTEL_PMC_IDX_FIXED; in intel_pmu_init()
/openbmc/linux/arch/x86/events/intel/
H A 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()
2161 short counts[INTEL_PMC_IDX_FIXED + MAX_FIXED_PEBS_EVENTS] = {}; in intel_pmu_drain_pebs_nhm()
2162 short error[INTEL_PMC_IDX_FIXED + MAX_FIXED_PEBS_EVENTS] = {}; in intel_pmu_drain_pebs_nhm()
2177 mask |= ((1ULL << x86_pmu.num_counters_fixed) - 1) << INTEL_PMC_IDX_FIXED; in intel_pmu_drain_pebs_nhm()
2178 size = INTEL_PMC_IDX_FIXED + x86_pmu.num_counters_fixed; in intel_pmu_drain_pebs_nhm()
2271 short counts[INTEL_PMC_IDX_FIXED + MAX_FIXED_PEBS_EVENTS] = {}; in intel_pmu_drain_pebs_icl()
[all …]
H A 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()
5959 *intel_ctrl |= fixed_mask << INTEL_PMC_IDX_FIXED; in intel_pmu_check_num_counters()
6004 ~(~0ULL << (INTEL_PMC_IDX_FIXED + num_counters_fixed)); in intel_pmu_check_event_constraints()
/openbmc/linux/arch/x86/events/zhaoxin/
H A 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()
/openbmc/linux/arch/x86/events/
H A Dcore.c876 if (c->idxmsk64 & (~0ULL << INTEL_PMC_IDX_FIXED)) { in __perf_sched_find_counter()
877 idx = INTEL_PMC_IDX_FIXED; in __perf_sched_find_counter()
891 for_each_set_bit_from(idx, c->idxmsk, INTEL_PMC_IDX_FIXED) { in __perf_sched_find_counter()
1237 case INTEL_PMC_IDX_FIXED ... INTEL_PMC_IDX_FIXED_BTS-1: in x86_assign_hw_event()
1240 (idx - INTEL_PMC_IDX_FIXED); in x86_assign_hw_event()
1241 hwc->event_base_rdpmc = (idx - INTEL_PMC_IDX_FIXED) | in x86_assign_hw_event()
2053 << INTEL_PMC_IDX_FIXED) & intel_ctrl)); in x86_pmu_show_pmu_cap()
2484 if (i >= INTEL_PMC_IDX_FIXED) { in perf_clear_dirty_counters()
2486 if ((i - INTEL_PMC_IDX_FIXED) >= hybrid(cpuc->pmu, num_counters_fixed)) in perf_clear_dirty_counters()
2489 wrmsrl(MSR_ARCH_PERFMON_FIXED_CTR0 + (i - INTEL_PMC_IDX_FIXED), 0); in perf_clear_dirty_counters()
H A Dperf_event.h1300 return !(intel_ctrl >> (i + INTEL_PMC_IDX_FIXED)); in fixed_counter_disabled()
/openbmc/linux/arch/x86/kvm/
H A Dpmu.c365 int fixed_idx = idx - INTEL_PMC_IDX_FIXED; in is_fixed_event_allowed()
419 pmc->idx - INTEL_PMC_IDX_FIXED); in reprogram_counter()
801 pmc->idx - INTEL_PMC_IDX_FIXED); in cpl_is_matched()
H A Dpmu.h156 pmc->idx - INTEL_PMC_IDX_FIXED) & 0x3; in pmc_speculative_in_use()
/openbmc/linux/tools/testing/selftests/kvm/x86_64/
H A 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()