zephyr/tests/kernel
Andrew Boie efc5fe07a2 kernel: overhaul unused stack measurement
The existing stack_analyze APIs had some problems:

1. Not properly namespaced
2. Accepted the stack object as a parameter, yet the stack object
   does not contain the necessary information to get the associated
   buffer region, the thread object is needed for this
3. Caused a crash on certain platforms that do not allow inspection
   of unused stack space for the currently running thread
4. No user mode access
5. Separately passed in thread name

We deprecate these functions and add a new API
k_thread_stack_space_get() which addresses all of these issues.

A helper API log_stack_usage() also added which resembles
STACK_ANALYZE() in functionality.

Fixes: #17852

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2020-02-08 10:02:35 +02:00
..
common global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
context drivers: timer: Add per-core ARM architected timer 2020-02-01 08:08:43 -05:00
critical tests: fix test identifiers 2019-12-09 15:53:44 -05:00
device kernel: init: provide access to kernel startup state 2019-12-11 14:45:40 -08:00
early_sleep tests: fix test identifiers 2019-12-09 15:53:44 -05:00
fatal tests/kernel/fatal: add volatile to prevent compiler optimization 2020-01-22 07:08:12 -08:00
fifo tests: fifo: assert of NULL from k_fifo_get 2019-12-10 10:39:59 -05:00
fp_sharing arch: arm: Move ARM code to AArch32 sub-directory 2019-12-20 11:40:59 -05:00
gen_isr_table arch: arm: Move ARM code to AArch32 sub-directory 2019-12-20 11:40:59 -05:00
interrupt arch: arm: Move ARM code to AArch32 sub-directory 2019-12-20 11:40:59 -05:00
lifo kernel/sys_clock.h: Deprecate and convert uses of old conversions 2019-11-08 11:08:58 +01:00
mbox tests: new updated names for the kernel tests 2019-10-24 06:25:53 -04:00
mem_heap/mheap_api_concept malloc: make sure returned memory is properly aligned 2019-07-03 14:17:29 -07:00
mem_pool global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
mem_protect kernel: overhaul unused stack measurement 2020-02-08 10:02:35 +02:00
mem_slab global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
mp kernel: cleanup and formally define CPU start fn 2020-01-13 16:35:10 -05:00
msgq/msgq_api tests: adjust resource pool sizes for 64-bit 2019-12-12 14:48:42 -08:00
mutex tests: fix test identifiers 2019-12-09 15:53:44 -05:00
obj_tracing tests: obj tracing: fix counting 2019-12-10 10:40:16 -05:00
pending global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
pipe kernel: pipe: runtime error checking 2020-01-20 17:19:54 -05:00
poll tests: kernel: poll: Add checks when having zero events 2020-01-03 11:26:46 -08:00
profiling/profiling_api kernel: overhaul unused stack measurement 2020-02-08 10:02:35 +02:00
queue tests: queue: fix SMP issue 2019-12-18 11:17:33 -08:00
sched global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
semaphore/semaphore tests: test k_sem_init() 2020-01-20 17:19:54 -05:00
sleep tests: fix test identifiers 2019-12-09 15:53:44 -05:00
smp kernel: rename z_arch_ to arch_ 2019-11-07 15:21:46 -08:00
spinlock kernel: rename z_arch_ to arch_ 2019-11-07 15:21:46 -08:00
stack/stack tests: stack: consolidate tests 2019-11-15 08:04:52 -05:00
threads tests: dynamic_thread: disable on x86 2020-01-13 16:35:10 -05:00
tickless kernel/sys_clock.h: Deprecate and convert uses of old conversions 2019-11-08 11:08:58 +01:00
timer tests/kernel: timer_api: Remove build_only tickless variant 2020-01-16 07:43:40 -06:00
workq kernel/sys_clock.h: Deprecate and convert uses of old conversions 2019-11-08 11:08:58 +01:00
xip x86: fix XIP SOC support and defaults 2019-09-11 21:11:38 -04:00