]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tracing: move tracing declarations from kernel.h to a dedicated header
authorYury Norov <ynorov@nvidia.com>
Fri, 16 Jan 2026 04:25:09 +0000 (23:25 -0500)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 1 Feb 2026 00:16:06 +0000 (16:16 -0800)
commitbec261fec6d41318e414c4064f2b67c6db628acd
tree19671e39e94a3c316a7ccab7e4431616b6b5f1e9
parent86e685ff364394b477cd1c476029480a2a1960c5
tracing: move tracing declarations from kernel.h to a dedicated header

Tracing is a half of the kernel.h in terms of LOCs, although it's a
self-consistent part.  It is intended for quick debugging purposes and
isn't used by the normal tracing utilities.

Move it to a separate header.  If someone needs to just throw a
trace_printk() in their driver, they will not have to pull all the heavy
tracing machinery.

This is a pure move.

Link: https://lkml.kernel.org/r/20260116042510.241009-7-ynorov@nvidia.com
Signed-off-by: Yury Norov <ynorov@nvidia.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Joel Fernandes <joelagnelf@nvidia.com>
Cc: Aaron Tomlin <atomlin@atomlin.com>
Cc: Andi Shyti <andi.shyti@linux.intel.com>
Cc: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Petr Pavlu <petr.pavlu@suse.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/kernel.h
include/linux/trace_printk.h [new file with mode: 0644]