linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86/fpu: Remove unused trace events
@ 2025-05-29 17:10 Steven Rostedt
  2025-05-31 20:17 ` Steven Rostedt
  0 siblings, 1 reply; 3+ messages in thread
From: Steven Rostedt @ 2025-05-29 17:10 UTC (permalink / raw)
  To: LKML, Linux Trace Kernel, x86
  Cc: Thomas Gleixner, Borislav Petkov, Ingo Molnar, H. Peter Anvin,
	Dave Hansen, Oleg Nesterov, Mathieu Desnoyers, Masami Hiramatsu

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] x86/fpu: Remove unused trace events
  2025-05-29 17:10 [PATCH] x86/fpu: Remove unused trace events Steven Rostedt
@ 2025-05-31 20:17 ` Steven Rostedt
  2025-05-31 20:20   ` Steven Rostedt
  0 siblings, 1 reply; 3+ messages in thread
From: Steven Rostedt @ 2025-05-31 20:17 UTC (permalink / raw)
  To: LKML, Linux Trace Kernel, x86
  Cc: Thomas Gleixner, Borislav Petkov, Ingo Molnar, H. Peter Anvin,
	Dave Hansen, Oleg Nesterov, Mathieu Desnoyers, Masami Hiramatsu


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)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] x86/fpu: Remove unused trace events
  2025-05-31 20:17 ` Steven Rostedt
@ 2025-05-31 20:20   ` Steven Rostedt
  0 siblings, 0 replies; 3+ messages in thread
From: Steven Rostedt @ 2025-05-31 20:20 UTC (permalink / raw)
  To: LKML, Linux Trace Kernel, x86
  Cc: Thomas Gleixner, Borislav Petkov, Ingo Molnar, H. Peter Anvin,
	Dave Hansen, Oleg Nesterov, Mathieu Desnoyers, Masami Hiramatsu

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-05-31 20:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-29 17:10 [PATCH] x86/fpu: Remove unused trace events Steven Rostedt
2025-05-31 20:17 ` Steven Rostedt
2025-05-31 20:20   ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).