Thread (7 messages) 7 messages, 3 authors, 2021-01-19

Re: /proc/cpuinfo not showing all info

From: Pankaj Vinodrao Joshi <hidden>
Date: 2021-01-19 07:39:05

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 <redacted>
Sent: Wednesday, January 13, 2021 3:12 PM
To: Pankaj Vinodrao Joshi <redacted>
Cc: kernelnewbies@kernelnewbies.org <redacted>
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]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help