Skip to contentSkip to conversation

lscpu command produces incorrect output with the options -b and -c

DISCUSSION faizan husain 1 participant 1 message Aug 5, 2012 Util-Linux package

lore
Share & tools
lore
#0 lore raw

Options for lscpu command are giving incorrect output. As per the man page or help, '-b' option should limit the output to online CPUs and
'-c' option should limit the output to offline CPUs.
But we could see the output is same for '-a','-b' and '-c' options.

---Steps to Reproduce---
[root@mx3650m2 ~]# lscpu -a
...
...

CPU(s):                16
On-line CPU(s) list:   0-5,7-13,15
Off-line CPU(s) list:  6,14

...
...

[root@mx3650m2 ~]# lscpu -b
Architecture: x86_64
...
...

CPU(s):                16
On-line CPU(s) list:   0-5,7-13,15
Off-line CPU(s) list:  6,14

...
...

[root@mx3650m2 ~]# lscpu -c
...
...

CPU(s):                16
On-line CPU(s) list:   0-5,7-13,15
Off-line CPU(s) list:  6,14

...
...

patch in the next mail fixes this issue.

Thanks
Faizan