/proc/cpuinfo not showing all info

Pankaj Vinodrao Joshi Pankaj.VJ at exaleapsemi.com
Tue Jan 19 02:38:13 EST 2021


i agree each processor type exports different information but i need to pop up information while i do /proc/cpu also i have observed that almost every arch display information w.r.t frequency. Can you suggest how i can add info related to cpufreq into /proc ?



Thanks
________________________________
From: Greg KH <greg at kroah.com>
Sent: Wednesday, January 13, 2021 3:12 PM
To: Pankaj Vinodrao Joshi <Pankaj.VJ at exaleapsemi.com>
Cc: kernelnewbies at kernelnewbies.org <kernelnewbies at kernelnewbies.org>
Subject: Re: /proc/cpuinfo not showing all info

On Wed, Jan 13, 2021 at 09:21:31AM +0000, Pankaj  Vinodrao Joshi wrote:
> Hi,
> i am using sifive's u540, RISCV64 with custom kernel 5.10.2 and i am trying to get all hardware information with the help of /proc/cpuinfo but i am not able get all information i need.
>
> i am attaching current /proc/cpuinfo
>
>
> rocessor        : 0
> hart            : 2
> isa             : rv64imafdc
> mmu             : sv39
> uarch           : sifive,u54-mc
>
>
> but i am expecting following kind of output
>
> processor       : 0
> vendor_id       : GenuineIntel
> cpu family      : 6
> model           : 142
> model name      : Intel(R) Core(TM) i3-7020U CPU @ 2.30GHz
> stepping        : 9
> microcode       : 0xde
> cpu MHz         : 700.027
> cache size      : 3072 KB
> physical id     : 0
> siblings        : 4
> core id         : 0
> cpu cores       : 2
> apicid          : 0
> initial apicid  : 0
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 22
> wp              : yes
>
> Can someone suggest me how i can print all info with /proc/cpuinfo  ??

Each processor type exports different information in /proc/cpuinfo.  How
would a riscv cpu have the same types as an x86 cpu?

You have to treat each cpu type individually, there is no common format
for all different CPUs out there, sorry.

Hope this helps,

greg k-h
[EXT]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20210119/533a9de8/attachment.html>


More information about the Kernelnewbies mailing list