lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <DFAUM72AR4OG.1CHGTHZK2CZ4@kernel.org>
Date: Mon, 29 Dec 2025 17:41:38 +0100
From: "Danilo Krummrich" <dakr@...nel.org>
To: "Steven Rostedt" <rostedt@...dmis.org>
Cc: "Andrew Morton" <akpm@...ux-foundation.org>, "Yury Norov (NVIDIA)"
 <yury.norov@...il.com>, "Masami Hiramatsu" <mhiramat@...nel.org>, "Mathieu
 Desnoyers" <mathieu.desnoyers@...icios.com>, "Andy Shevchenko"
 <andriy.shevchenko@...ux.intel.com>, "Christophe Leroy"
 <chleroy@...nel.org>, "Randy Dunlap" <rdunlap@...radead.org>, "Ingo Molnar"
 <mingo@...nel.org>, "Jani Nikula" <jani.nikula@...ux.intel.com>, "Joonas
 Lahtinen" <joonas.lahtinen@...ux.intel.com>, "David Laight"
 <david.laight@...box.com>, "Petr Pavlu" <petr.pavlu@...e.com>, "Andi Shyti"
 <andi.shyti@...nel.org>, "Rodrigo Vivi" <rodrigo.vivi@...el.com>, "Tvrtko
 Ursulin" <tursulin@...ulin.net>, "Daniel Gomez" <da.gomez@...nel.org>,
 "Greg Kroah-Hartman" <gregkh@...uxfoundation.org>, "Rafael J. Wysocki"
 <rafael@...nel.org>, <linux-kernel@...r.kernel.org>,
 <intel-gfx@...ts.freedesktop.org>, <dri-devel@...ts.freedesktop.org>,
 <linux-modules@...r.kernel.org>, <linux-trace-kernel@...r.kernel.org>
Subject: Re: [PATCH v4 7/7] kernel.h: drop trace_printk.h

On Mon Dec 29, 2025 at 5:17 PM CET, Steven Rostedt wrote:
> It will waste a lot of kernel developers time. Go to conferences and talk
> with developers. trace_printk() is now one of the most common ways to debug
> your code. Having to add "#include <linux/trace_printk.h>" in every file
> that you use trace_printk() (and after your build fails because you forgot
> to include that file **WILL** slow down kernel debugging for hundreds of
> developers! It *is* used more than printk() for debugging today. Because
> it's fast and can be used in any context (NMI, interrupt handlers, etc).

I strongly agree with this. I heavly use trace_printk() for debugging for a long
time and have recommended it to dozens of people that all have been very
thankful for it -- especially when it comes to debugging race conditions on a
tough timing, where a normal printk() simply "fixes" the race.

Having to include additional headers would be very painful, especially when
debugging large code bases with lots of files. For instance, one of the
components I maintain is the nouveau driver with 773 C files and 1390 files
overall.

I suppose it would be fair to argue that such codebases usually have their own
common header files that could be reused, but even in that case, I’d consider
the ergonomic cost too high.

- Danilo

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ