Thread (9 messages) flat view 9 messages, 3 authors, 2025-12-26

Re: [PATCH] tracing: Add bitmask-list option for human-readable bitmask display

From: Aaron Tomlin <atomlin@atomlin.com>
Date: 2025-12-25 07:38:11
Also in: linux-doc, lkml

On Wed, Dec 24, 2025 at 08:58:48AM -0500, Steven Rostedt wrote:
Should we just make all cpu bitmask range lists instead?
Hi Steve,

I am somewhat hesitant to adopt that suggestion as I would prefer to avoid
breaking any existing tooling that relies upon the default hexadecimal
bitmask format.

Whilst range lists are undoubtedly superior for human interpretation, the
hexadecimal output is a well-established standard throughout the kernel.
For instance, the hexadecimal format is still strictly adhered to for
"Cpus_allowed:" within /proc/[pid]/status. Introducing a global change to
ftrace defaults could disrupt parsers and scripts that expect this
consistency across the system.

By leveraging the existing bitmask-list trace option via
trace_print_bitmask_seq(), we offer users the requisite flexibility for
high-core-count systems whilst preserving backward compatibility for the
wider ecosystem.

I shall send a new version of the patch shortly. This version incorporates
the use of iter->tmp_seq to ensure the implementation is robust,
instance-aware, and free from buffer contention or duplication issues.


Kind regards,
-- 
Aaron Tomlin

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help