[Linux-stm32] [PATCH 2/2] tracing: Add CONFIG_TRACE_PRINTK_DEBUGGING to clean up kernel.h

Steven Rostedt rostedt at kernel.org
Sun Jun 21 13:03:53 UTC 2026


On Sun, 21 Jun 2026 13:55:31 +0100
David Laight <david.laight.linux at gmail.com> 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



More information about the Linux-stm32 mailing list