Re: [PATCH 2/2] tracing: Add CONFIG_TRACE_PRINTK_DEBUGGING to clean up kernel.h

From: Steven Rostedt

Date: Sun Jun 21 2026 - 09:08:34 EST


On Sun, 21 Jun 2026 13:55:31 +0100
David Laight <david.laight.linux@xxxxxxxxx> wrote:

> Indeed...
> Isn't trace_printk() just an extern?
> Having it defined somewhere isn't going to make any difference to build times.

No it is not. It is a macro to cut as many nanoseconds as possible as
trace_printk() was created to debug tight race conditions and any added
latency can make the race go away.

-- Steve