# Re: \[PATCH 2/2\] tracing: Add CONFIG\_TRACE\_PRINTK\_DEBUGGING to clean up kernel.h

- From: Thomas Gleixner \<tglx@kernel.org\>
- Date: 2026-06-21 10:13:06 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2026/06/17158163
- Thread: https://ratatoskr.run/linux-trace-kernel/2026/06/17158123/t.md

```text
On Sun, Jun 21 2026 at 05:34, Steven Rostedt wrote:
> Instead of having trace_printk.h included in kernel.h, create a config
> TRACE_PRINTK_DEBUGGING that when set will update the CFLAGS in the
> Makefile to allow developers to add trace_printk() without the need to add
> the include for it. Having it included in the Makefile keeps it from being
> in the dependency chain and it will not waste extra CPU cycles for those
> building the kernel without using trace_printk.

IOW, you make it worse just because.

With the header being separate I add the three trace_printk()s and the
include to the source file I'm investigating. The recompile will build
exactly this source file.

Having to enable the config knob will result in a full kernel rebuild
for no value.

Seriously?

Thanks,

        tglx



```
