[PATCH] x86/fpu: Remove unused trace events

Steven Rostedt posted 1 patch 8 months, 2 weeks ago
There is a newer version of this series
arch/x86/include/asm/trace/fpu.h | 15 ---------------
1 file changed, 15 deletions(-)
[PATCH] x86/fpu: Remove unused trace events
Posted by Steven Rostedt 8 months, 2 weeks ago
From: Steven Rostedt <rostedt@goodmis.org>

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.

Link: https://lore.kernel.org/all/20250529130138.544ffec4@gandalf.local.home/

Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
---
 arch/x86/include/asm/trace/fpu.h | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/arch/x86/include/asm/trace/fpu.h b/arch/x86/include/asm/trace/fpu.h
index 0454d5e60e5d..721b408d9a67 100644
--- a/arch/x86/include/asm/trace/fpu.h
+++ b/arch/x86/include/asm/trace/fpu.h
@@ -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)
-- 
2.47.2
Re: [PATCH] x86/fpu: Remove unused trace events
Posted by Steven Rostedt 8 months, 2 weeks ago
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


On Thu, 29 May 2025 13:10:24 -0400
Steven Rostedt <rostedt@goodmis.org> wrote:

> From: Steven Rostedt <rostedt@goodmis.org>
> 
> 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.
> 
> Link: https://lore.kernel.org/all/20250529130138.544ffec4@gandalf.local.home/
> 
> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
> ---
>  arch/x86/include/asm/trace/fpu.h | 15 ---------------
>  1 file changed, 15 deletions(-)
> 
> diff --git a/arch/x86/include/asm/trace/fpu.h b/arch/x86/include/asm/trace/fpu.h
> index 0454d5e60e5d..721b408d9a67 100644
> --- a/arch/x86/include/asm/trace/fpu.h
> +++ b/arch/x86/include/asm/trace/fpu.h
> @@ -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)
Re: [PATCH] x86/fpu: Remove unused trace events
Posted by Steven Rostedt 8 months, 2 weeks ago
On Sat, 31 May 2025 16:17:23 -0400
Steven Rostedt <rostedt@goodmis.org> 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