diff options
| author | Anup Patel <[email protected]> | 2018-10-02 19:15:06 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2018-10-23 00:03:37 +0000 |
| commit | 4b26d22fdff1e39647cc5952b01d329e83dedfe1 (patch) | |
| tree | 83fa6fc257ee0249ca954b35600cc468c0e5d79c /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | RISC-V: Use Linux logical CPU number instead of hartid (diff) | |
| download | kernel-4b26d22fdff1e39647cc5952b01d329e83dedfe1.tar.gz kernel-4b26d22fdff1e39647cc5952b01d329e83dedfe1.zip | |
RISC-V: Show CPU ID and Hart ID separately in /proc/cpuinfo
Currently, /proc/cpuinfo show logical CPU ID as Hart ID which
is in-correct. This patch shows CPU ID and Hart ID separately
in /proc/cpuinfo using cpuid_to_hardid_map().
With this patch, contents of /proc/cpuinfo looks as follows:
processor : 0
hart : 1
isa : rv64imafdc
mmu : sv48
processor : 1
hart : 0
isa : rv64imafdc
mmu : sv48
processor : 2
hart : 2
isa : rv64imafdc
mmu : sv48
processor : 3
hart : 3
isa : rv64imafdc
mmu : sv48
Signed-off-by: Anup Patel <[email protected]>
Signed-off-by: Atish Patra <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions
