Home
last modified time | relevance | path

Searched refs:eventsel (Results 1 – 11 of 11) sorted by relevance

/arch/x86/kvm/
Dpmu.c143 void reprogram_gp_counter(struct kvm_pmc *pmc, u64 eventsel) in reprogram_gp_counter() argument
152 if (eventsel & ARCH_PERFMON_EVENTSEL_PIN_CONTROL) in reprogram_gp_counter()
155 pmc->eventsel = eventsel; in reprogram_gp_counter()
159 if (!(eventsel & ARCH_PERFMON_EVENTSEL_ENABLE) || !pmc_is_enabled(pmc)) in reprogram_gp_counter()
166 (eventsel & AMD64_RAW_EVENT_MASK_NB)) in reprogram_gp_counter()
178 event_select = eventsel & ARCH_PERFMON_EVENTSEL_EVENT; in reprogram_gp_counter()
179 unit_mask = (eventsel & ARCH_PERFMON_EVENTSEL_UMASK) >> 8; in reprogram_gp_counter()
181 if (!(eventsel & (ARCH_PERFMON_EVENTSEL_EDGE | in reprogram_gp_counter()
194 config = eventsel & X86_RAW_EVENT_MASK; in reprogram_gp_counter()
197 !(eventsel & ARCH_PERFMON_EVENTSEL_USR), in reprogram_gp_counter()
[all …]
Dpmu_amd.c136 if (amd_event_mapping[i].eventsel == event_select in amd_find_arch_event()
225 *data = pmc->eventsel; in amd_pmu_get_msr()
248 if (data == pmc->eventsel) in amd_pmu_set_msr()
300 pmc->counter = pmc->eventsel = 0; in amd_pmu_reset()
Dpmu.h17 u8 eventsel; member
106 void reprogram_gp_counter(struct kvm_pmc *pmc, u64 eventsel);
/arch/x86/kvm/vmx/
Dpmu_intel.c74 if (intel_arch_events[i].eventsel == event_select in intel_find_arch_event()
193 *data = pmc->eventsel; in intel_pmu_get_msr()
250 if (data == pmc->eventsel) in intel_pmu_set_msr()
350 pmc->counter = pmc->eventsel = 0; in intel_pmu_reset()
/arch/x86/events/amd/
Dcore.c276 static inline int amd_pmu_addr_offset(int index, bool eventsel) in amd_pmu_addr_offset() argument
283 if (eventsel) in amd_pmu_addr_offset()
296 if (eventsel) in amd_pmu_addr_offset()
884 .eventsel = MSR_K7_EVNTSEL0,
942 x86_pmu.eventsel = MSR_F15H_PERF_CTL; in amd_core_pmu_init()
/arch/x86/events/intel/
Dp6.c210 .eventsel = MSR_P6_EVNTSEL0,
Dknc.c299 .eventsel = MSR_KNC_EVNTSEL0,
Dp4.c1309 .eventsel = MSR_P4_BPU_CCCR0,
Dcore.c3886 .eventsel = MSR_ARCH_PERFMON_EVENTSEL0,
3932 .eventsel = MSR_ARCH_PERFMON_EVENTSEL0,
/arch/x86/events/
Dperf_event.h581 unsigned eventsel; member
583 int (*addr_offset)(int index, bool eventsel);
800 return x86_pmu.eventsel + (x86_pmu.addr_offset ? in x86_pmu_config_addr()
/arch/x86/include/asm/
Dkvm_host.h454 u64 eventsel; member