Skip to contentSkip to conversation

x86/fpu: Remove unused trace events

PATCH In review Steven Rostedt 1 participant 3 messages May 29, 2025 – May 31, 2025

Subsystems (2)
lore
Share & tools
lore

Steven Rostedt

author maintainer
#0 lore raw

PATCH 1/1 x86/fpu: Remove unused trace events

From: Steven Rostedt <[email protected]>

The following trace events are not used and defining them just wastes memory:

x86_fpu_before_restore
x86_fpu_after_restore
x86_fpu_init_state

Simply remove them.

---
 arch/x86/include/asm/trace/fpu.h | 15 ---------------
 1 file changed, 15 deletions(-)
arch/x86/include/asm/trace/fpu.h +0 -15
index 0454d5e60e5d..721b408d9a67 100644
@@ -44,16 +44,6 @@ DEFINE_EVENT(x86_fpu, x86_fpu_after_save,
 	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)
@@ -64,11 +54,6 @@ DEFINE_EVENT(x86_fpu, x86_fpu_regs_deactivated,
 	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)
Signature · 1 line
2.47.2
author maintainer
#1 lore raw

Can I get an acked-by, and I'll pull this in through my tree (with the other patches that remove unused events)?

Thanks,

-- Steve

Quoted 51 lines · On Thu, 29 May 2025 13:10:24 -0400 Steven Rostedt <[email protected]> wrote:

From: Steven Rostedt <[email protected]>

The following trace events are not used and defining them just wastes memory:

x86_fpu_before_restore
x86_fpu_after_restore
x86_fpu_init_state

Simply remove them.

---
 arch/x86/include/asm/trace/fpu.h | 15 ---------------
 1 file changed, 15 deletions(-)
arch/x86/include/asm/trace/fpu.h +0 -15
index 0454d5e60e5d..721b408d9a67 100644
@@ -44,16 +44,6 @@ DEFINE_EVENT(x86_fpu, x86_fpu_after_save,
 	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)
@@ -64,11 +54,6 @@ DEFINE_EVENT(x86_fpu, x86_fpu_regs_deactivated,
 	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)
author maintainer
#2 lore raw
Quoted 2 lines · On Sat, 31 May 2025 16:17:23 -0400 Steven Rostedt <[email protected]> wrote:

Can I get an acked-by, and I'll pull this in through my tree (with the other patches that remove unused events)?

Never mind, I just noticed the tip message that this was already merged and going upstream.

Thanks,

-- Steve