Re: [PATCH v4 2/2] perf trace: Add --bitmask-list command-line option
From: Aaron Tomlin
Date: Fri Jul 24 2026 - 10:32:05 EST
On Thu, Jul 23, 2026 at 10:54:35PM -0700, Namhyung Kim wrote:
> On Thu, Jul 23, 2026 at 11:28:48AM -0400, Aaron Tomlin wrote:
> > On Wed, Jul 22, 2026 at 10:49:33PM -0700, Namhyung Kim wrote:
> > > On Wed, Jul 22, 2026 at 11:50:49AM -0400, Aaron Tomlin wrote:
> > > > Introduce a new '--bitmask-list' command-line option for 'perf trace'.
> > > > When this option is specified, the formatting of cpumasks is delegated
> > > > to bitmap_scnprintf(), enabling cpumasks to be displayed as a condensed,
> > > > human-readable list (e.g., "0,2-5,7") instead of the default hexadecimal
> > > > representation. An example is provided below:
> > >
> > > Do you know any other places than cpumask use bitmask too? I'm just
> > > curious if it needs to handle other cases or not.
> >
> > Hi Namhyung,
> >
> > As far as I can tell, currently no other users.
>
> Ok, I was thinking about --cpumask-list or --cpulist. But I'm fine with
> the current name as long as we can update other use cases in the future.
> I'll process this unless others have different opinions.
Hi Namhyung,
Thank you.
I decided to be somewhat analogous to commit 2cddfc2 ("tracing: Add
bitmask-list option for human-readable bitmask display") [1].
[1]: https://github.com/torvalds/linux/commit/2cddfc2e8fc78c13b0f5286ea5dd48cdf527ad41
Kind regards,
--
Aaron Tomlin