From 141e62806c1e248144873c8df519cfd4a3ef6259 Mon Sep 17 00:00:00 2001 From: Sudeep Mohanty Date: Mon, 22 Sep 2025 08:45:10 +0200 Subject: [PATCH] feat(freertos-smp): Enabled FreeRTOS Runtime stats gathering for Amazon SMP Kernel --- components/freertos/Kconfig | 2 +- .../config/include/freertos/FreeRTOSConfig.h | 14 ++++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/components/freertos/Kconfig b/components/freertos/Kconfig index 021e01d5e2..df75e9c63e 100644 --- a/components/freertos/Kconfig +++ b/components/freertos/Kconfig @@ -299,7 +299,7 @@ menu "FreeRTOS" choice FREERTOS_RUN_TIME_COUNTER_TYPE prompt "configRUN_TIME_COUNTER_TYPE" - depends on FREERTOS_GENERATE_RUN_TIME_STATS && !FREERTOS_SMP + depends on FREERTOS_GENERATE_RUN_TIME_STATS default FREERTOS_RUN_TIME_COUNTER_TYPE_U32 help Sets the data type used for the FreeRTOS run time stats. A larger data type can be used to reduce the diff --git a/components/freertos/config/include/freertos/FreeRTOSConfig.h b/components/freertos/config/include/freertos/FreeRTOSConfig.h index 3fb51d1618..8a505d5bc2 100644 --- a/components/freertos/config/include/freertos/FreeRTOSConfig.h +++ b/components/freertos/config/include/freertos/FreeRTOSConfig.h @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2023-2025 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ @@ -168,13 +168,11 @@ #define configUSE_STATS_FORMATTING_FUNCTIONS 1 /* Used by vTaskList() */ #endif /* CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS */ -#if !CONFIG_FREERTOS_SMP - #if CONFIG_FREERTOS_RUN_TIME_COUNTER_TYPE_U32 - #define configRUN_TIME_COUNTER_TYPE uint32_t - #elif CONFIG_FREERTOS_RUN_TIME_COUNTER_TYPE_U64 - #define configRUN_TIME_COUNTER_TYPE uint64_t - #endif /* CONFIG_FREERTOS_RUN_TIME_COUNTER_TYPE_U64 */ -#endif /* !CONFIG_FREERTOS_SMP */ +#if CONFIG_FREERTOS_RUN_TIME_COUNTER_TYPE_U32 + #define configRUN_TIME_COUNTER_TYPE uint32_t +#elif CONFIG_FREERTOS_RUN_TIME_COUNTER_TYPE_U64 + #define configRUN_TIME_COUNTER_TYPE uint64_t +#endif /* CONFIG_FREERTOS_RUN_TIME_COUNTER_TYPE_U64 */ /* -------------------- Co-routines ----------------------- */