Skip to contentSkip to conversation

RISC-V: Enable profiling by default

PATCH In review Anup Patel 3 participants 3 messages Mar 24, 2022 – Mar 31, 2022 RISC-V

lore
Share & tools
lore

Anup Patel

author
#0 lore raw

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
index f120fcc43d0a..bfebee46784c 100644
@@ -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
index 8b56a7f1eb06..2b68b1bd2559 100644
@@ -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
Reviewed-by on v2 1/1
#1 lore raw
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.

---
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
index f120fcc43d0a..bfebee46784c 100644
@@ -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 -1
index 8b56a7f1eb06..2b68b1bd2559 100644
@@ -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
maintainer
#2 lore raw
In reply to Anup Patel
Quoted 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.

---
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
index f120fcc43d0a..bfebee46784c 100644
@@ -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 +0 -0
index 8b56a7f1eb06..2b68b1bd2559 100644

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.