1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/test_utils
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
..
benchmark_udp sys: Use size_t print format specifier 2023-12-21 12:02:19 +01:00
dummy_thread *Kconfig*: Remove dep-only Kconfig files 2024-03-26 14:54:22 +01:00
interactive_sync *Kconfig*: Remove dep-only Kconfig files 2024-03-26 14:54:22 +01:00
netdev_eth_minimal *Kconfig*: Remove dep-only Kconfig files 2024-03-26 14:54:22 +01:00
netdev_ieee802154_minimal *Kconfig*: Remove dep-only Kconfig files 2024-03-26 14:54:22 +01:00
print_stack_usage core/thread: fix thread_measure_stack_free() 2024-05-31 19:54:10 +02:00
result_output *Kconfig*: Remove dep-only Kconfig files 2024-03-26 14:54:22 +01:00
Makefile.dep sys/test_utils: add netdev ieee802154 minimal processing 2022-07-11 09:25:01 +02:00