From f36f427579461ce8d5e82b96694f9834320fd43d Mon Sep 17 00:00:00 2001 From: Erhan Kurubas Date: Tue, 22 Aug 2023 00:41:39 +0200 Subject: [PATCH] feat(gcov): make gcov dump task size configurable --- components/app_trace/Kconfig | 7 +++++++ components/app_trace/gcov/gcov_rtio.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/components/app_trace/Kconfig b/components/app_trace/Kconfig index e4f8f2f47f..260fe517a5 100644 --- a/components/app_trace/Kconfig +++ b/components/app_trace/Kconfig @@ -389,4 +389,11 @@ menu "Application Level Tracing" help Enables support for GCOV data transfer to host. + config APPTRACE_GCOV_DUMP_TASK_STACK_SIZE + int "Gcov dump task stack size" + depends on APPTRACE_GCOV_ENABLE + default 2048 + help + Configures stack size of Gcov dump task + endmenu diff --git a/components/app_trace/gcov/gcov_rtio.c b/components/app_trace/gcov/gcov_rtio.c index 80b67563fc..8dd9e0d0cb 100644 --- a/components/app_trace/gcov/gcov_rtio.c +++ b/components/app_trace/gcov/gcov_rtio.c @@ -76,7 +76,8 @@ gcov_exit: void gcov_create_task(void *arg) { ESP_EARLY_LOGV(TAG, "%s", __FUNCTION__); - xTaskCreatePinnedToCore(&gcov_dump_task, "gcov_dump_task", 2048, (void *)&s_gcov_task_running, configMAX_PRIORITIES - 1, NULL, 0); + xTaskCreatePinnedToCore(&gcov_dump_task, "gcov_dump_task", CONFIG_APPTRACE_GCOV_DUMP_TASK_STACK_SIZE, + (void *)&s_gcov_task_running, configMAX_PRIORITIES - 1, NULL, 0); } void gcov_create_task_tick_hook(void)