Re: [PATCH] x86/cpu: sort cpuinfo flags
From: Dave Hansen
Date: Fri Dec 21 2018 - 10:19:09 EST
On 12/21/18 5:04 AM, Borislav Petkov wrote:
>
> $ grep -m 1 flags /proc/cpuinfo | tr " " "\n" | sort | xargs
>
> and there probably is even a simpler way to do that.
>
> Or add a shell alias for that or a small script or ...
I don't always look at these through the shell. I got a screenshot the
other day, or someone pasted the flags into a spreadsheet.
/proc/cpuinfo is supposed to be human-readable. But, the flags field,
as it stands, is not. You've further proved my point by having to
machine post-process it to make it usable by humans. :)