From 0f3b9caf389b486541614836bf180b64544615cb Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Sat, 13 Aug 2022 18:06:20 +0200 Subject: Fixup test/kvm, add target_set to ioctl tests as argument --- kmod/asm.h | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'kmod/asm.h') diff --git a/kmod/asm.h b/kmod/asm.h index 35f803b..9e9385a 100755 --- a/kmod/asm.h +++ b/kmod/asm.h @@ -4,9 +4,6 @@ #define CPUID_AFFECTED_REGS "rax", "rbx", "rcx", "rdx" -__attribute__((always_inline)) -static inline uint64_t cachepc_readpmc(uint64_t event); - __attribute__((always_inline)) static inline void cachepc_cpuid(void); @@ -22,22 +19,6 @@ static inline void cachepc_mfence(void); __attribute__((always_inline)) static inline void cachepc_readq(void *p); -uint64_t -cachepc_readpmc(uint64_t event) -{ - uint32_t lo, hi; - - event = 0xC0010201 + 2 * event; - - asm volatile ( - "rdmsr" - : "=a" (lo), "=d" (hi) - : "c"(event) - ); - - return ((uint64_t) hi << 32) | (uint64_t) lo; -} - void cachepc_cpuid(void) { -- cgit v1.2.3-71-gd317