[PATCH 0/2] tracing: Fix an event field filter issue

Masami Hiramatsu (Google)
2025-07-08T11:54:44Z

Hi,

Here is a series to fix some issues in the tracing event filter.
The first patch removes the __attribute__ from the event format type
string, which can cause issues with parsing (detecting the string
type). The second patch optimizes memory allocation in
__trace_define_field() by only allocating field->type when it
needs to be sanitized.

Thank you,

---

Masami Hiramatsu (Google) (2):
tracing: Remove "__attribute__()" from the type field of event format
tracing: Allocate field->type only if it needs to be sanitized

kernel/trace/trace.h | 1 +
kernel/trace/trace_events.c | 60 +++++++++++++++++++++++++++++++++++++++++--
2 files changed, 58 insertions(+), 3 deletions(-)

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