Re: [PATCH] tracing: Add __string_src() helper to help compilers not to get confused

2024-03-15 Thread Alison Schofield
On Thu, Mar 14, 2024 at 11:27:54PM -0400, Steven Rostedt wrote: > From: "Steven Rostedt (Google)" > > The __string() helper macro of the TRACE_EVENT() macro is used to > determine how much of the ring buffer needs to be allocated to fit the > given source string. Some trace events have a string

[PATCH] tracing: Add __string_src() helper to help compilers not to get confused

2024-03-14 Thread Steven Rostedt
From: "Steven Rostedt (Google)" The __string() helper macro of the TRACE_EVENT() macro is used to determine how much of the ring buffer needs to be allocated to fit the given source string. Some trace events have a string that is dependent on another variable that could be NULL, and in those