Re: [PATCH] lscpu: limit options --all, --online, --offline to parsable and extended output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 09, 2012 at 12:49:02PM +0530, faizan husain wrote:
> On Thursday 09 August 2012 12:27 PM, Heiko Carstens wrote:
> >>  [root@mx3650m2 ~]# lscpu -a
> >That wouldn't work with the patch above applied (and without the patch
> >applied there wouldn't be any difference in the output, regardless if you
> >would specify "-a" or not).
> >
> >So.. I don't understand what your concern is.
> 
> My concern here is, earlier we used to print all the column information with
> -a, -b(limit online and other column info), -c(limit offline and other column info.
> 
> but with your patch we are certainly going to miss other information?
> 
> here is output from you patch:
> 
> [root@mx3650m2 ~]# lscpu -a
> lscpu: options --all, --online and --offline may only be used with options --extended or --parsable.
> 
> [root@mx3650m2 util-linux-2.21.1]# lscpu -ae
> 
> CPU NODE SOCKET CORE L1d:L1i:L2:L3 ONLINE
> 0   0    0      0    0:0:0:0       yes
> 1   0    0      1    1:1:1:0       yes

[...]

> so only CPU NODE SOCKET CORE L1d:L1i:L2:L3 ONLINE are printed with your patch.
> other column like Architecture, CPU op-mode(s), Byte Order, Thread(s) per core,
> vendors ID, CPU family etc... user are going to miss.

lscpu never printed columns for architecture, threads per core etc. for the
extended and parsable output. My patch doesn't make any difference here.
Also it doesn't make any sense to print such static and identical information
for each and every cpu line.

The purpose of the extended and parsable output is to give the user an overview
of the cpu topology and per cpu attributes.
It's purpose is certainly not to give an overview of the whole system.

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux