hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/arch/x86/include/asm/trace/fpu.h
....@@ -13,22 +13,22 @@
1313
1414 TP_STRUCT__entry(
1515 __field(struct fpu *, fpu)
16
- __field(bool, initialized)
16
+ __field(bool, load_fpu)
1717 __field(u64, xfeatures)
1818 __field(u64, xcomp_bv)
1919 ),
2020
2121 TP_fast_assign(
2222 __entry->fpu = fpu;
23
- __entry->initialized = fpu->initialized;
23
+ __entry->load_fpu = test_thread_flag(TIF_NEED_FPU_LOAD);
2424 if (boot_cpu_has(X86_FEATURE_OSXSAVE)) {
2525 __entry->xfeatures = fpu->state.xsave.header.xfeatures;
2626 __entry->xcomp_bv = fpu->state.xsave.header.xcomp_bv;
2727 }
2828 ),
29
- TP_printk("x86/fpu: %p initialized: %d xfeatures: %llx xcomp_bv: %llx",
29
+ TP_printk("x86/fpu: %p load: %d xfeatures: %llx xcomp_bv: %llx",
3030 __entry->fpu,
31
- __entry->initialized,
31
+ __entry->load_fpu,
3232 __entry->xfeatures,
3333 __entry->xcomp_bv
3434 )
....@@ -60,11 +60,6 @@
6060 );
6161
6262 DEFINE_EVENT(x86_fpu, x86_fpu_regs_deactivated,
63
- TP_PROTO(struct fpu *fpu),
64
- TP_ARGS(fpu)
65
-);
66
-
67
-DEFINE_EVENT(x86_fpu, x86_fpu_activate_state,
6863 TP_PROTO(struct fpu *fpu),
6964 TP_ARGS(fpu)
7065 );