RISC-V: Support CPUID for risc-v in perf
authorJoão Mário Domingos <joao.mario@tecnico.ulisboa.pt>
Tue, 16 Nov 2021 15:48:10 +0000 (15:48 +0000)
committerminda.chen <minda.chen@starfivetech.com>
Tue, 3 Jan 2023 06:26:18 +0000 (14:26 +0800)
commit8839ee9806418d60797407ddcfc0404514283827
tree7b5291a07de6fae70f298183eefe4eb50eb96d98
parent3b2c5c55290627bc6b022fb187370a8b1fed09ef
RISC-V: Support CPUID for risc-v in perf

This patch creates the header.c file for the risc-v architecture and introduces support for
PMU identification through sysfs.
It is now possible to configure pmu-events in risc-v.

Depends on patch [1], that introduces the id sysfs file.

Signed-off-by: João Mário Domingos <joao.mario@tecnico.ulisboa.pt>
Signed-off-by: minda.chen <minda.chen@starfivetech.com>
drivers/perf/riscv_pmu.c
tools/perf/arch/riscv/util/Build
tools/perf/arch/riscv/util/header.c [new file with mode: 0644]