You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/10/03 04:53:17 UTC
[nuttx] branch master updated (8e80d05fbb -> d889b7362d)
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
from 8e80d05fbb arch/arm/src/stm32h7/stm32_oneshot.c: Fix format warnings.
new 917fa624b9 arch/{all stm32 | all nordic | at32}: simplify the enable condition for up_perf_init
new dbe10a0fc8 boards: simplify the enable condition for up_perf_init
new 696d67870a arch/Kconfig: set ARCH_PERF_EVENTS default to n
new d889b7362d arch: auto-select ARCH_PERF_EVENTS if some debug features enabled
The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
arch/Kconfig | 3 ++-
arch/arm/src/at32/at32_start.c | 2 +-
arch/arm/src/nrf52/nrf52_start.c | 2 +-
arch/arm/src/nrf53/nrf53_start.c | 2 +-
arch/arm/src/nrf91/nrf91_start.c | 2 +-
arch/arm/src/stm32/stm32_start.c | 2 +-
arch/arm/src/stm32f0l0g0/stm32_start.c | 2 +-
arch/arm/src/stm32f7/stm32_start.c | 2 +-
arch/arm/src/stm32h7/stm32_start.c | 2 +-
arch/arm/src/stm32l4/stm32l4_start.c | 2 +-
arch/arm/src/stm32l5/stm32l5_start.c | 2 +-
arch/arm/src/stm32u5/stm32_start.c | 2 +-
arch/arm/src/stm32wb/stm32wb_start.c | 2 +-
arch/arm/src/stm32wl5/stm32wl5_start.c | 2 +-
boards/arm/lpc17xx_40xx/lx_cpu/src/lpc17_40_boardinitialize.c | 2 +-
boards/arm/s32k1xx/rddrone-bms772/src/s32k1xx_boot.c | 2 +-
boards/arm/s32k1xx/s32k144evb/src/s32k1xx_boot.c | 2 +-
boards/arm/s32k1xx/s32k146evb/src/s32k1xx_boot.c | 2 +-
boards/arm/s32k1xx/s32k148evb/src/s32k1xx_boot.c | 2 +-
boards/arm/s32k1xx/ucans32k146/src/s32k1xx_boot.c | 2 +-
boards/arm/s32k3xx/mr-canhubk3/src/s32k3xx_boot.c | 2 +-
boards/risc-v/esp32c3/esp32c3-devkit-rust-1/src/esp32c3_boot.c | 2 +-
boards/risc-v/esp32c3/esp32c3-devkit/src/esp32c3_boot.c | 2 +-
23 files changed, 24 insertions(+), 23 deletions(-)
[nuttx] 04/04: arch: auto-select ARCH_PERF_EVENTS if some debug features enabled
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit d889b7362ddcf7184bd23b3d664924eae9792fb0
Author: raiden00pl <ra...@railab.me>
AuthorDate: Mon Oct 2 16:43:56 2023 +0200
arch: auto-select ARCH_PERF_EVENTS if some debug features enabled
---
arch/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/Kconfig b/arch/Kconfig
index 1616a047b3..c545ac470f 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -502,6 +502,7 @@ config ARCH_HAVE_PERF_EVENTS
config ARCH_PERF_EVENTS
bool "Configure hardware performance counting"
+ default y if SCHED_CRITMONITOR || SCHED_IRQMONITOR || RPTUN_PING || SEGGER_SYSVIEW
default n
depends on ARCH_HAVE_PERF_EVENTS
---help---
[nuttx] 03/04: arch/Kconfig: set ARCH_PERF_EVENTS default to n
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 696d67870ae56c6153da9d6fac0fe1317fff344a
Author: raiden00pl <ra...@railab.me>
AuthorDate: Fri Sep 29 16:18:46 2023 +0200
arch/Kconfig: set ARCH_PERF_EVENTS default to n
This is a debugging feature so it should be disabled by default
---
arch/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/Kconfig b/arch/Kconfig
index 8640e64a78..1616a047b3 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -502,7 +502,7 @@ config ARCH_HAVE_PERF_EVENTS
config ARCH_PERF_EVENTS
bool "Configure hardware performance counting"
- default y
+ default n
depends on ARCH_HAVE_PERF_EVENTS
---help---
Enable hardware performance counter support for perf events. If
[nuttx] 02/04: boards: simplify the enable condition for up_perf_init
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit dbe10a0fc8e36ace6f68b4267017410f8c2dc990
Author: raiden00pl <ra...@railab.me>
AuthorDate: Mon Oct 2 17:00:18 2023 +0200
boards: simplify the enable condition for up_perf_init
---
boards/arm/lpc17xx_40xx/lx_cpu/src/lpc17_40_boardinitialize.c | 2 +-
boards/arm/s32k1xx/rddrone-bms772/src/s32k1xx_boot.c | 2 +-
boards/arm/s32k1xx/s32k144evb/src/s32k1xx_boot.c | 2 +-
boards/arm/s32k1xx/s32k146evb/src/s32k1xx_boot.c | 2 +-
boards/arm/s32k1xx/s32k148evb/src/s32k1xx_boot.c | 2 +-
boards/arm/s32k1xx/ucans32k146/src/s32k1xx_boot.c | 2 +-
boards/arm/s32k3xx/mr-canhubk3/src/s32k3xx_boot.c | 2 +-
boards/risc-v/esp32c3/esp32c3-devkit-rust-1/src/esp32c3_boot.c | 2 +-
boards/risc-v/esp32c3/esp32c3-devkit/src/esp32c3_boot.c | 2 +-
9 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/boards/arm/lpc17xx_40xx/lx_cpu/src/lpc17_40_boardinitialize.c b/boards/arm/lpc17xx_40xx/lx_cpu/src/lpc17_40_boardinitialize.c
index ece52b56e9..685917cc66 100644
--- a/boards/arm/lpc17xx_40xx/lx_cpu/src/lpc17_40_boardinitialize.c
+++ b/boards/arm/lpc17xx_40xx/lx_cpu/src/lpc17_40_boardinitialize.c
@@ -51,7 +51,7 @@
void lpc17_40_boardinitialize(void)
{
-#ifdef CONFIG_SCHED_IRQMONITOR
+#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)LPC17_40_CCLK);
#endif
diff --git a/boards/arm/s32k1xx/rddrone-bms772/src/s32k1xx_boot.c b/boards/arm/s32k1xx/rddrone-bms772/src/s32k1xx_boot.c
index 86e47706fc..dd7a73d663 100644
--- a/boards/arm/s32k1xx/rddrone-bms772/src/s32k1xx_boot.c
+++ b/boards/arm/s32k1xx/rddrone-bms772/src/s32k1xx_boot.c
@@ -47,7 +47,7 @@
void s32k1xx_board_initialize(void)
{
-#ifdef CONFIG_SEGGER_SYSVIEW
+#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)RDDRONE_BMS772_RUN_SYSCLK_FREQUENCY);
#endif
diff --git a/boards/arm/s32k1xx/s32k144evb/src/s32k1xx_boot.c b/boards/arm/s32k1xx/s32k144evb/src/s32k1xx_boot.c
index ca25b44ef5..6bb757e3d8 100644
--- a/boards/arm/s32k1xx/s32k144evb/src/s32k1xx_boot.c
+++ b/boards/arm/s32k1xx/s32k144evb/src/s32k1xx_boot.c
@@ -45,7 +45,7 @@
void s32k1xx_board_initialize(void)
{
-#ifdef CONFIG_SEGGER_SYSVIEW
+#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)S32K144EVB_RUN_SYSCLK_FREQUENCY);
#endif
diff --git a/boards/arm/s32k1xx/s32k146evb/src/s32k1xx_boot.c b/boards/arm/s32k1xx/s32k146evb/src/s32k1xx_boot.c
index 862614b3bf..6a4ce1fad7 100644
--- a/boards/arm/s32k1xx/s32k146evb/src/s32k1xx_boot.c
+++ b/boards/arm/s32k1xx/s32k146evb/src/s32k1xx_boot.c
@@ -45,7 +45,7 @@
void s32k1xx_board_initialize(void)
{
-#ifdef CONFIG_SEGGER_SYSVIEW
+#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)S32K146EVB_RUN_SYSCLK_FREQUENCY);
#endif
diff --git a/boards/arm/s32k1xx/s32k148evb/src/s32k1xx_boot.c b/boards/arm/s32k1xx/s32k148evb/src/s32k1xx_boot.c
index 2e87052ff1..a89368d60f 100644
--- a/boards/arm/s32k1xx/s32k148evb/src/s32k1xx_boot.c
+++ b/boards/arm/s32k1xx/s32k148evb/src/s32k1xx_boot.c
@@ -45,7 +45,7 @@
void s32k1xx_board_initialize(void)
{
-#ifdef CONFIG_SEGGER_SYSVIEW
+#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)S32K148EVB_RUN_SYSCLK_FREQUENCY);
#endif
diff --git a/boards/arm/s32k1xx/ucans32k146/src/s32k1xx_boot.c b/boards/arm/s32k1xx/ucans32k146/src/s32k1xx_boot.c
index 6a3466b4b8..dee2bde627 100644
--- a/boards/arm/s32k1xx/ucans32k146/src/s32k1xx_boot.c
+++ b/boards/arm/s32k1xx/ucans32k146/src/s32k1xx_boot.c
@@ -45,7 +45,7 @@
void s32k1xx_board_initialize(void)
{
-#ifdef CONFIG_SEGGER_SYSVIEW
+#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)UCANS32K146_RUN_SYSCLK_FREQUENCY);
#endif
diff --git a/boards/arm/s32k3xx/mr-canhubk3/src/s32k3xx_boot.c b/boards/arm/s32k3xx/mr-canhubk3/src/s32k3xx_boot.c
index b4e71a8552..e749d0aa1a 100644
--- a/boards/arm/s32k3xx/mr-canhubk3/src/s32k3xx_boot.c
+++ b/boards/arm/s32k3xx/mr-canhubk3/src/s32k3xx_boot.c
@@ -47,7 +47,7 @@
void s32k3xx_board_initialize(void)
{
-#ifdef CONFIG_SEGGER_SYSVIEW
+#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)MR_CANHUBK3_SYSCLK_FREQUENCY);
#endif
diff --git a/boards/risc-v/esp32c3/esp32c3-devkit-rust-1/src/esp32c3_boot.c b/boards/risc-v/esp32c3/esp32c3-devkit-rust-1/src/esp32c3_boot.c
index 812e49b371..1057370794 100644
--- a/boards/risc-v/esp32c3/esp32c3-devkit-rust-1/src/esp32c3_boot.c
+++ b/boards/risc-v/esp32c3/esp32c3-devkit-rust-1/src/esp32c3_boot.c
@@ -52,7 +52,7 @@
void esp32c3_board_initialize(void)
{
-#ifdef CONFIG_SCHED_CRITMONITOR
+#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init(NULL);
#endif
diff --git a/boards/risc-v/esp32c3/esp32c3-devkit/src/esp32c3_boot.c b/boards/risc-v/esp32c3/esp32c3-devkit/src/esp32c3_boot.c
index 76630e9853..934a05b72e 100644
--- a/boards/risc-v/esp32c3/esp32c3-devkit/src/esp32c3_boot.c
+++ b/boards/risc-v/esp32c3/esp32c3-devkit/src/esp32c3_boot.c
@@ -51,7 +51,7 @@
void esp32c3_board_initialize(void)
{
-#ifdef CONFIG_SCHED_CRITMONITOR
+#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init(NULL);
#endif
[nuttx] 01/04: arch/{all stm32 | all nordic | at32}: simplify the enable condition for up_perf_init
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 917fa624b967262e4bed2f549d049f47a4e1c662
Author: raiden00pl <ra...@railab.me>
AuthorDate: Thu Sep 28 09:54:28 2023 +0200
arch/{all stm32 | all nordic | at32}: simplify the enable condition for up_perf_init
---
arch/arm/src/at32/at32_start.c | 2 +-
arch/arm/src/nrf52/nrf52_start.c | 2 +-
arch/arm/src/nrf53/nrf53_start.c | 2 +-
arch/arm/src/nrf91/nrf91_start.c | 2 +-
arch/arm/src/stm32/stm32_start.c | 2 +-
arch/arm/src/stm32f0l0g0/stm32_start.c | 2 +-
arch/arm/src/stm32f7/stm32_start.c | 2 +-
arch/arm/src/stm32h7/stm32_start.c | 2 +-
arch/arm/src/stm32l4/stm32l4_start.c | 2 +-
arch/arm/src/stm32l5/stm32l5_start.c | 2 +-
arch/arm/src/stm32u5/stm32_start.c | 2 +-
arch/arm/src/stm32wb/stm32wb_start.c | 2 +-
arch/arm/src/stm32wl5/stm32wl5_start.c | 2 +-
13 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/arch/arm/src/at32/at32_start.c b/arch/arm/src/at32/at32_start.c
index 7dd2372715..0a8b886176 100644
--- a/arch/arm/src/at32/at32_start.c
+++ b/arch/arm/src/at32/at32_start.c
@@ -155,7 +155,7 @@ void __start(void)
showprogress('C');
-#ifdef CONFIG_SCHED_IRQMONITOR
+#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)AT32_SYSCLK_FREQUENCY);
#endif
diff --git a/arch/arm/src/nrf52/nrf52_start.c b/arch/arm/src/nrf52/nrf52_start.c
index d587372451..2e3bf74b61 100644
--- a/arch/arm/src/nrf52/nrf52_start.c
+++ b/arch/arm/src/nrf52/nrf52_start.c
@@ -203,7 +203,7 @@ void __start(void)
nrf52_enable_profile(true);
#endif
-#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW)
+#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)BOARD_SYSTICK_CLOCK);
#endif
diff --git a/arch/arm/src/nrf53/nrf53_start.c b/arch/arm/src/nrf53/nrf53_start.c
index bf95e2f378..07458a7659 100644
--- a/arch/arm/src/nrf53/nrf53_start.c
+++ b/arch/arm/src/nrf53/nrf53_start.c
@@ -247,7 +247,7 @@ void __start(void)
nrf53_enable_profile(true);
#endif
-#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW)
+#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)BOARD_SYSTICK_CLOCK);
#endif
diff --git a/arch/arm/src/nrf91/nrf91_start.c b/arch/arm/src/nrf91/nrf91_start.c
index 1a6eccf8e4..a2f915e135 100644
--- a/arch/arm/src/nrf91/nrf91_start.c
+++ b/arch/arm/src/nrf91/nrf91_start.c
@@ -235,7 +235,7 @@ void __start(void)
nrf91_enable_profile(true);
#endif
-#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW)
+#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)BOARD_SYSTICK_CLOCK);
#endif
diff --git a/arch/arm/src/stm32/stm32_start.c b/arch/arm/src/stm32/stm32_start.c
index 9196bccd26..c369d1c7db 100644
--- a/arch/arm/src/stm32/stm32_start.c
+++ b/arch/arm/src/stm32/stm32_start.c
@@ -158,7 +158,7 @@ void __start(void)
showprogress('C');
-#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW)
+#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)STM32_SYSCLK_FREQUENCY);
#endif
diff --git a/arch/arm/src/stm32f0l0g0/stm32_start.c b/arch/arm/src/stm32f0l0g0/stm32_start.c
index 8fb64641af..4dede6d0f4 100644
--- a/arch/arm/src/stm32f0l0g0/stm32_start.c
+++ b/arch/arm/src/stm32f0l0g0/stm32_start.c
@@ -115,7 +115,7 @@ void __start(void)
showprogress('C');
-#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW)
+#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)STM32_SYSCLK_FREQUENCY);
#endif
diff --git a/arch/arm/src/stm32f7/stm32_start.c b/arch/arm/src/stm32f7/stm32_start.c
index 4b9915be78..e333385fed 100644
--- a/arch/arm/src/stm32f7/stm32_start.c
+++ b/arch/arm/src/stm32f7/stm32_start.c
@@ -245,7 +245,7 @@ void __start(void)
up_enable_dcache();
showprogress('C');
-#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW)
+#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)STM32_SYSCLK_FREQUENCY);
#endif
diff --git a/arch/arm/src/stm32h7/stm32_start.c b/arch/arm/src/stm32h7/stm32_start.c
index e4611ef981..9959d49f9d 100644
--- a/arch/arm/src/stm32h7/stm32_start.c
+++ b/arch/arm/src/stm32h7/stm32_start.c
@@ -265,7 +265,7 @@ void __start(void)
#endif
showprogress('C');
-#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW)
+#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)STM32_CPUCLK_FREQUENCY);
#endif
diff --git a/arch/arm/src/stm32l4/stm32l4_start.c b/arch/arm/src/stm32l4/stm32l4_start.c
index 0b6f140477..c95e6e1225 100644
--- a/arch/arm/src/stm32l4/stm32l4_start.c
+++ b/arch/arm/src/stm32l4/stm32l4_start.c
@@ -179,7 +179,7 @@ void __start(void)
showprogress('C');
-#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW)
+#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)STM32_SYSCLK_FREQUENCY);
#endif
diff --git a/arch/arm/src/stm32l5/stm32l5_start.c b/arch/arm/src/stm32l5/stm32l5_start.c
index c26ad9ac91..1f09ed1046 100644
--- a/arch/arm/src/stm32l5/stm32l5_start.c
+++ b/arch/arm/src/stm32l5/stm32l5_start.c
@@ -181,7 +181,7 @@ void __start(void)
showprogress('C');
-#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW)
+#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)STM32_SYSCLK_FREQUENCY);
#endif
diff --git a/arch/arm/src/stm32u5/stm32_start.c b/arch/arm/src/stm32u5/stm32_start.c
index 6758d38d21..cbb0c640f8 100644
--- a/arch/arm/src/stm32u5/stm32_start.c
+++ b/arch/arm/src/stm32u5/stm32_start.c
@@ -181,7 +181,7 @@ void __start(void)
showprogress('C');
-#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW)
+#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)STM32_SYSCLK_FREQUENCY);
#endif
diff --git a/arch/arm/src/stm32wb/stm32wb_start.c b/arch/arm/src/stm32wb/stm32wb_start.c
index 245722445f..6ab5605da8 100644
--- a/arch/arm/src/stm32wb/stm32wb_start.c
+++ b/arch/arm/src/stm32wb/stm32wb_start.c
@@ -199,7 +199,7 @@ void __start(void)
showprogress('C');
-#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW)
+#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)STM32_SYSCLK_FREQUENCY);
#endif
diff --git a/arch/arm/src/stm32wl5/stm32wl5_start.c b/arch/arm/src/stm32wl5/stm32wl5_start.c
index 75b6b67031..d7ddc49069 100644
--- a/arch/arm/src/stm32wl5/stm32wl5_start.c
+++ b/arch/arm/src/stm32wl5/stm32wl5_start.c
@@ -183,7 +183,7 @@ void __start(void)
showprogress('C');
-#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW)
+#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)STM32_SYSCLK_FREQUENCY);
#endif