RISC-V: Enable perf events by default
PATCH 1/1 RISC-V: Enable perf events by default
Let us enable perf events by default in RV32 and RV64 defconfigs so that we can use RISC-V PMU drivers on various RISC-V platforms.
Signed-off-by Anup Patel <[email protected]>
--- arch/riscv/configs/defconfig | 1 + arch/riscv/configs/rv32_defconfig | 1 + 2 files changed, 2 insertions(+)
arch/riscv/configs/defconfig +1 -0
@@ -15,6 +15,7 @@ CONFIG_CHECKPOINT_RESTORE=y CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y # CONFIG_SYSFS_SYSCALL is not set +CONFIG_PERF_EVENTS=y CONFIG_SOC_MICROCHIP_POLARFIRE=y CONFIG_SOC_SIFIVE=y CONFIG_SOC_VIRT=y
arch/riscv/configs/rv32_defconfig +1 -0
@@ -15,6 +15,7 @@ CONFIG_CHECKPOINT_RESTORE=y CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y # CONFIG_SYSFS_SYSCALL is not set +CONFIG_PERF_EVENTS=y CONFIG_SOC_SIFIVE=y CONFIG_SOC_VIRT=y CONFIG_ARCH_RV32I=y
Signature · 1 line
2.25.1
Quoted 35 lines · Anup Patel
Let us enable perf events by default in RV32 and RV64 defconfigs so that we can use RISC-V PMU drivers on various RISC-V platforms.
Signed-off-by Anup Patel <[email protected]>--- arch/riscv/configs/defconfig | 1 + arch/riscv/configs/rv32_defconfig | 1 + 2 files changed, 2 insertions(+)arch/riscv/configs/defconfig +1
-0@@ -15,6 +15,7 @@ CONFIG_CHECKPOINT_RESTORE=y CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y # CONFIG_SYSFS_SYSCALL is not set +CONFIG_PERF_EVENTS=y CONFIG_SOC_MICROCHIP_POLARFIRE=y CONFIG_SOC_SIFIVE=y CONFIG_SOC_VIRT=yarch/riscv/configs/rv32_defconfig +1
-1@@ -15,6 +15,7 @@ CONFIG_CHECKPOINT_RESTORE=y CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y # CONFIG_SYSFS_SYSCALL is not set +CONFIG_PERF_EVENTS=y CONFIG_SOC_SIFIVE=y CONFIG_SOC_VIRT=y CONFIG_ARCH_RV32I=y --
Quoted 2 lines
2.25.1
I think it is better to enable perf events by adding CONFIG_PROFILING to the defconfig similar to other ISAs.
Signature · 2 lines
Regards, Atish
Quoted 34 lines · Atish Patra
Quoted 32 lines · Anup Patel
Let us enable perf events by default in RV32 and RV64 defconfigs so that we can use RISC-V PMU drivers on various RISC-V platforms.
Signed-off-by Anup Patel <[email protected]>--- arch/riscv/configs/defconfig | 1 + arch/riscv/configs/rv32_defconfig | 1 + 2 files changed, 2 insertions(+)arch/riscv/configs/defconfig +1
-0@@ -15,6 +15,7 @@ CONFIG_CHECKPOINT_RESTORE=y CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y # CONFIG_SYSFS_SYSCALL is not set +CONFIG_PERF_EVENTS=y CONFIG_SOC_MICROCHIP_POLARFIRE=y CONFIG_SOC_SIFIVE=y CONFIG_SOC_VIRT=yarch/riscv/configs/rv32_defconfig +1
-0@@ -15,6 +15,7 @@ CONFIG_CHECKPOINT_RESTORE=y CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y # CONFIG_SYSFS_SYSCALL is not set +CONFIG_PERF_EVENTS=y CONFIG_SOC_SIFIVE=y
Quoted 8 lines
Quoted 5 lines
arch/riscv/configs/rv32_defconfig +0
-1CONFIG_SOC_VIRT=y CONFIG_ARCH_RV32I=y --2.25.1
I think it is better to enable perf events by adding
CONFIG_PROFILINGto the defconfig similar to other ISAs.
Sure, I will update this patch like you suggested.
Regards,
Anup
Quoted 4 lines
--
Regards,
Atish