]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
HID: Use trace_call__##name() at guarded tracepoint call sites
authorVineeth Pillai <vineeth@bitbyteword.org>
Fri, 15 May 2026 13:59:41 +0000 (09:59 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 21 May 2026 22:03:07 +0000 (18:03 -0400)
Replace trace_foo() with the new trace_call__foo() at sites already
guarded by trace_foo_enabled(), avoiding a redundant
static_branch_unlikely() re-evaluation inside the tracepoint.
trace_call__foo() calls the tracepoint callbacks directly without
utilizing the static branch again.

Original v2 series:
https://lore.kernel.org/linux-trace-kernel/20260323160052.17528-1-vineeth@bitbyteword.org/

Parts of the original v2 series have already been merged in mainline.
This patch is being reposted as a follow-up cleanup for the remaining
unmerged pieces.

Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: Jiri Kosina <jikos@kernel.org>
Cc: Benjamin Tissoires <bentiss@kernel.org>
Link: https://patch.msgid.link/20260515135941.2238861-1-vineeth@bitbyteword.org
Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Vineeth Pillai (Google) <vineeth@bitbyteword.org>
Assisted-by: Claude:claude-sonnet-4-6
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
drivers/hid/intel-ish-hid/ipc/pci-ish.c

index ed3405c05e73c5d54677202d67bee5b3d72c194d..8d36ae96a3eead629083cc1ccaeaaed6c8302576 100644 (file)
@@ -110,7 +110,7 @@ void ish_event_tracer(struct ishtp_device *dev, const char *format, ...)
                vsnprintf(tmp_buf, sizeof(tmp_buf), format, args);
                va_end(args);
 
-               trace_ishtp_dump(tmp_buf);
+               trace_call__ishtp_dump(tmp_buf);
        }
 }