]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tracing: Add bitmask-list option for human-readable bitmask display
authorAaron Tomlin <atomlin@atomlin.com>
Fri, 26 Dec 2025 16:07:24 +0000 (11:07 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 26 Jan 2026 22:00:50 +0000 (17:00 -0500)
commit2cddfc2e8fc78c13b0f5286ea5dd48cdf527ad41
tree4ebdba4d9ca44cee4a1cc23a9867770522875cb1
parenta4e0ea0e10a262fb6f1ad55a8a9d203bad776678
tracing: Add bitmask-list option for human-readable bitmask display

Add support for displaying bitmasks in human-readable list format (e.g.,
0,2-5,7) in addition to the default hexadecimal bitmap representation.
This is particularly useful when tracing CPU masks and other large
bitmasks where individual bit positions are more meaningful than their
hexadecimal encoding.

When the "bitmask-list" option is enabled, the printk "%*pbl" format
specifier is used to render bitmasks as comma-separated ranges, making
trace output easier to interpret for complex CPU configurations and
large bitmask values.

Link: https://patch.msgid.link/20251226160724.2246493-2-atomlin@atomlin.com
Signed-off-by: Aaron Tomlin <atomlin@atomlin.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Documentation/trace/ftrace.rst
include/linux/trace_events.h
include/linux/trace_seq.h
include/trace/stages/stage3_trace_output.h
kernel/trace/trace.h
kernel/trace/trace_output.c
kernel/trace/trace_seq.c