1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

9 Commits

Author SHA1 Message Date
Marian Buschsieweke
e93b5e4b98
core/thread: fix thread_measure_stack_free()
`thread_measure_stack_free()` previously assumed that reading past the
stack is safe. When the stack was indeed part of a thread, the
`thread_t` structure is put after the stack, increasing the odds of
this assumption to hold. However, `thread_measure_stack_free()` could
also be used on the ISR stack, which may be allocated at the end of
SRAM.

A second parameter had to be added to indicate the stack size, so that
reading past the stack can now be prevented.

This also makes valgrind happy on `native`/`native64`.
2024-05-31 19:54:10 +02:00
MrKevinWeiss
7a68fb0d5e
*Kconfig*: Remove dep-only Kconfig files 2024-03-26 14:54:22 +01:00
c77b104c2d sys/test_utils/print_stack_usage: reduce MIN_SIZE for fmt 2023-02-07 22:42:43 +01:00
2a960f95ba test_utils/print_stack_usage: use thread.h API 2023-01-31 15:48:32 +01:00
Marian Buschsieweke
5b86848d77
sys/print_stack_usage: update MIN_SIZE
Since fmt no longer has a significant advantage in stack consumption,
we need to bump the `MIN_SIZE` guard that prevents causing stack
overflows due to the printing of the stack consumption.
2022-11-15 21:41:58 +01:00
Karl Fessel
bac70c5e47 sys/test_utils/print_stack_usage: include stdio if printf is used 2022-10-12 12:21:33 +02:00
0199bab468 sys/.../print_stack_usage: optionally use fmt, handle too small stacks 2022-03-31 14:48:02 +02:00
ba86f51b26 sys/test_utils/print_stack_usage: add Kconfig support 2022-03-29 21:49:35 +02:00
fbe57de85e sys/test_utils: add print_stack_usage
This commit adds a module that can print stack metrics in the format as
understood by CI.
2022-03-29 21:49:35 +02:00