Skip to content

Commit

Permalink
Merge branch 'feature/configurable_gcov_task_size' into 'master'
Browse files Browse the repository at this point in the history
feat(gcov): make gcov dump task size configurable

See merge request espressif/esp-idf!25456
  • Loading branch information
erhankur committed Aug 28, 2023
2 parents e05455e + f36f427 commit 16be3a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions components/app_trace/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion components/app_trace/gcov/gcov_rtio.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ void gcov_dump_task(void *pvParameter)
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)
Expand Down

0 comments on commit 16be3a1

Please sign in to comment.