RISC-V: Enable profiling by default
PATCH v2 1/1 RISC-V: Enable profiling by default
Let us enable profiling by default in RV32 and RV64 defconfigs so that we can use RISC-V PMU drivers on various RISC-V platforms.
---
Changes since v1:
- Enable CONFIG_PROFILING instead of CONFIG_PREF_EVENTS in defconfigs
--- 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_PROFILING=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_PROFILING=y CONFIG_SOC_SIFIVE=y CONFIG_SOC_VIRT=y CONFIG_ARCH_RV32I=y
Signature · 1 line
2.25.1
Quoted 38 lines · Anup Patel
Let us enable profiling 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]>---
Changes since v1:
- EnableCONFIG_PROFILINGinstead ofCONFIG_PREF_EVENTSin defconfigs--- 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_PROFILING=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_PROFILING=y CONFIG_SOC_SIFIVE=y CONFIG_SOC_VIRT=y CONFIG_ARCH_RV32I=y --
Quoted 2 lines
2.25.1
Signature · 2 lines
Regards, Atish
Palmer Dabbelt
maintainerQuoted 29 lines · On Wed, 23 Mar 2022 22:30:20 PDT (-0700), [email protected] wrote:
Let us enable profiling 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]>---
Changes since v1:
- EnableCONFIG_PROFILINGinstead ofCONFIG_PREF_EVENTSin defconfigs--- 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_PROFILING=y CONFIG_SOC_MICROCHIP_POLARFIRE=y CONFIG_SOC_SIFIVE=y CONFIG_SOC_VIRT=yarch/riscv/configs/rv32_defconfig +0
-0
arch/riscv/configs/rv32_defconfig CONFIG_CHECKPOINT_RESTORE=y · line 21
Quoted 7 lines
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_PROFILING=y CONFIG_SOC_SIFIVE=y CONFIG_SOC_VIRT=y CONFIG_ARCH_RV32I=y
Thanks, this is on for-next.