Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/fpu: Convert tracing to fpstate

Convert FPU tracing code to the new register storage mechanism in
preparation for dynamically sized buffers.

No functional change.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211013145322.503327333@linutronix.de

authored by

Thomas Gleixner and committed by
Borislav Petkov
cceb4964 1c57572d

+2 -2
+2 -2
arch/x86/include/asm/trace/fpu.h
··· 22 22 __entry->fpu = fpu; 23 23 __entry->load_fpu = test_thread_flag(TIF_NEED_FPU_LOAD); 24 24 if (boot_cpu_has(X86_FEATURE_OSXSAVE)) { 25 - __entry->xfeatures = fpu->state.xsave.header.xfeatures; 26 - __entry->xcomp_bv = fpu->state.xsave.header.xcomp_bv; 25 + __entry->xfeatures = fpu->fpstate->regs.xsave.header.xfeatures; 26 + __entry->xcomp_bv = fpu->fpstate->regs.xsave.header.xcomp_bv; 27 27 } 28 28 ), 29 29 TP_printk("x86/fpu: %p load: %d xfeatures: %llx xcomp_bv: %llx",