mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 15:26:48 +07:00
3913cc3507
With the lazy FPU code gone, we no longer use the counter field in struct fpu for anything. Get rid it. Signed-off-by: Rik van Riel <riel@redhat.com> Reviewed-by: Andy Lutomirski <luto@kernel.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Brian Gerst <brgerst@gmail.com> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: Denys Vlasenko <dvlasenk@redhat.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Josh Poimboeuf <jpoimboe@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Quentin Casasnovas <quentin.casasnovas@oracle.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: pbonzini@redhat.com Link: http://lkml.kernel.org/r/1475627678-20788-6-git-send-email-riel@redhat.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
117 lines
2.4 KiB
C
117 lines
2.4 KiB
C
#undef TRACE_SYSTEM
|
|
#define TRACE_SYSTEM x86_fpu
|
|
|
|
#if !defined(_TRACE_FPU_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
#define _TRACE_FPU_H
|
|
|
|
#include <linux/tracepoint.h>
|
|
|
|
DECLARE_EVENT_CLASS(x86_fpu,
|
|
TP_PROTO(struct fpu *fpu),
|
|
TP_ARGS(fpu),
|
|
|
|
TP_STRUCT__entry(
|
|
__field(struct fpu *, fpu)
|
|
__field(bool, fpregs_active)
|
|
__field(bool, fpstate_active)
|
|
__field(u64, xfeatures)
|
|
__field(u64, xcomp_bv)
|
|
),
|
|
|
|
TP_fast_assign(
|
|
__entry->fpu = fpu;
|
|
__entry->fpregs_active = fpu->fpregs_active;
|
|
__entry->fpstate_active = fpu->fpstate_active;
|
|
if (boot_cpu_has(X86_FEATURE_OSXSAVE)) {
|
|
__entry->xfeatures = fpu->state.xsave.header.xfeatures;
|
|
__entry->xcomp_bv = fpu->state.xsave.header.xcomp_bv;
|
|
}
|
|
),
|
|
TP_printk("x86/fpu: %p fpregs_active: %d fpstate_active: %d xfeatures: %llx xcomp_bv: %llx",
|
|
__entry->fpu,
|
|
__entry->fpregs_active,
|
|
__entry->fpstate_active,
|
|
__entry->xfeatures,
|
|
__entry->xcomp_bv
|
|
)
|
|
);
|
|
|
|
DEFINE_EVENT(x86_fpu, x86_fpu_state,
|
|
TP_PROTO(struct fpu *fpu),
|
|
TP_ARGS(fpu)
|
|
);
|
|
|
|
DEFINE_EVENT(x86_fpu, x86_fpu_before_save,
|
|
TP_PROTO(struct fpu *fpu),
|
|
TP_ARGS(fpu)
|
|
);
|
|
|
|
DEFINE_EVENT(x86_fpu, x86_fpu_after_save,
|
|
TP_PROTO(struct fpu *fpu),
|
|
TP_ARGS(fpu)
|
|
);
|
|
|
|
DEFINE_EVENT(x86_fpu, x86_fpu_before_restore,
|
|
TP_PROTO(struct fpu *fpu),
|
|
TP_ARGS(fpu)
|
|
);
|
|
|
|
DEFINE_EVENT(x86_fpu, x86_fpu_after_restore,
|
|
TP_PROTO(struct fpu *fpu),
|
|
TP_ARGS(fpu)
|
|
);
|
|
|
|
DEFINE_EVENT(x86_fpu, x86_fpu_regs_activated,
|
|
TP_PROTO(struct fpu *fpu),
|
|
TP_ARGS(fpu)
|
|
);
|
|
|
|
DEFINE_EVENT(x86_fpu, x86_fpu_regs_deactivated,
|
|
TP_PROTO(struct fpu *fpu),
|
|
TP_ARGS(fpu)
|
|
);
|
|
|
|
DEFINE_EVENT(x86_fpu, x86_fpu_activate_state,
|
|
TP_PROTO(struct fpu *fpu),
|
|
TP_ARGS(fpu)
|
|
);
|
|
|
|
DEFINE_EVENT(x86_fpu, x86_fpu_deactivate_state,
|
|
TP_PROTO(struct fpu *fpu),
|
|
TP_ARGS(fpu)
|
|
);
|
|
|
|
DEFINE_EVENT(x86_fpu, x86_fpu_init_state,
|
|
TP_PROTO(struct fpu *fpu),
|
|
TP_ARGS(fpu)
|
|
);
|
|
|
|
DEFINE_EVENT(x86_fpu, x86_fpu_dropped,
|
|
TP_PROTO(struct fpu *fpu),
|
|
TP_ARGS(fpu)
|
|
);
|
|
|
|
DEFINE_EVENT(x86_fpu, x86_fpu_copy_src,
|
|
TP_PROTO(struct fpu *fpu),
|
|
TP_ARGS(fpu)
|
|
);
|
|
|
|
DEFINE_EVENT(x86_fpu, x86_fpu_copy_dst,
|
|
TP_PROTO(struct fpu *fpu),
|
|
TP_ARGS(fpu)
|
|
);
|
|
|
|
DEFINE_EVENT(x86_fpu, x86_fpu_xstate_check_failed,
|
|
TP_PROTO(struct fpu *fpu),
|
|
TP_ARGS(fpu)
|
|
);
|
|
|
|
#undef TRACE_INCLUDE_PATH
|
|
#define TRACE_INCLUDE_PATH asm/trace/
|
|
#undef TRACE_INCLUDE_FILE
|
|
#define TRACE_INCLUDE_FILE fpu
|
|
#endif /* _TRACE_FPU_H */
|
|
|
|
/* This part must be outside protection */
|
|
#include <trace/define_trace.h>
|