#include <linux/export.h>
#include <linux/percpu.h>
#include <linux/preempt.h>
#include <asm/msr.h>
#define CREATE_TRACE_POINTS
#include <asm/msr-trace.h>
struct msr __percpu *msrs_alloc(void)
{ … }
EXPORT_SYMBOL(…);
void msrs_free(struct msr __percpu *msrs)
{ … }
EXPORT_SYMBOL(…);
static int msr_read(u32 msr, struct msr *m)
{ … }
static int msr_write(u32 msr, struct msr *m)
{ … }
static inline int __flip_bit(u32 msr, u8 bit, bool set)
{ … }
int msr_set_bit(u32 msr, u8 bit)
{ … }
int msr_clear_bit(u32 msr, u8 bit)
{ … }
#ifdef CONFIG_TRACEPOINTS
void do_trace_write_msr(unsigned int msr, u64 val, int failed)
{ … }
EXPORT_SYMBOL(…);
EXPORT_TRACEPOINT_SYMBOL(…);
void do_trace_read_msr(unsigned int msr, u64 val, int failed)
{ … }
EXPORT_SYMBOL(…);
EXPORT_TRACEPOINT_SYMBOL(…);
void do_trace_rdpmc(unsigned counter, u64 val, int failed)
{ … }
EXPORT_SYMBOL(…);
EXPORT_TRACEPOINT_SYMBOL(…);
#endif