public inbox for linux-trace-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/1] tracing: Fix an event field filter issue
@ 2025-07-29  5:10 Masami Hiramatsu (Google)
  2025-07-29  5:10 ` [PATCH v5 1/1] tracing: Remove "__attribute__()" from the type field of event format Masami Hiramatsu (Google)
  0 siblings, 1 reply; 4+ messages in thread
From: Masami Hiramatsu (Google) @ 2025-07-29  5:10 UTC (permalink / raw)
  To: Steven Rostedt, Masami Hiramatsu
  Cc: Mathieu Desnoyers, linux-kernel, linux-trace-kernel

Hi,

Here is the 5th version of series to fix the tracing event filter
because of __attribute__.

The previous version is here;
https://lore.kernel.org/all/175333238644.2267214.1835493691667067597.stgit@mhiramat.tok.corp.google.com/

This version fixes some code according to Steve's comments.
Especially, to avoid strstr(), run sanitize_field_type() first. This
also, simplifies the error handling. If failed to allocate memory,
return immediately, but if there is any wrong string etc, it just
skips the field.

This removes the __attribute__ from the event format type string,
which can cause issues with parsing (detecting the string type).

Thank you,


---

Masami Hiramatsu (Google) (1):
      tracing: Remove "__attribute__()" from the type field of event format


 kernel/trace/trace.c        |   28 ++++++---
 kernel/trace/trace.h        |    4 +
 kernel/trace/trace_events.c |  128 ++++++++++++++++++++++++++++++++++++-------
 3 files changed, 127 insertions(+), 33 deletions(-)

--
Masami Hiramatsu (Google) <mhiramat@kernel.org>

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

end of thread, other threads:[~2025-07-30  0:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-29  5:10 [PATCH v5 0/1] tracing: Fix an event field filter issue Masami Hiramatsu (Google)
2025-07-29  5:10 ` [PATCH v5 1/1] tracing: Remove "__attribute__()" from the type field of event format Masami Hiramatsu (Google)
2025-07-29 16:33   ` Steven Rostedt
2025-07-30  0:20     ` Masami Hiramatsu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox