Re: [PATCH v6 4/9] x86/nmi: Assign and register NMI-source vectors

From: Dave Hansen
Date: Tue Jun 03 2025 - 17:54:17 EST


On 6/3/25 13:22, Sohil Mehta wrote:
> With an enum, it's harder to figure out the exact sources when let's say
> the source bitmap is printed as 0x0090.

Uhh, then don't print a bitmap. ;)

/proc/cpuinfo doesn't print out CPUID leaves, it prints out bits mapped
to strings.

Look at the kmalloc trace points:

Xorg-4589 [003] ..... 1568557.823993: kmalloc: ...
gfp_flags=GFP_KERNEL
Xorg-4589 [003] ..... 1568557.823993: kmalloc: ...
gfp_flags=GFP_KERNEL

gfp_flags are a bitmap, yet they're mapped out with strings and symbolic
names.