zephyr/tests/kernel
Ederson de Souza bdaac354f4 kernel: Bring back object tracking
When CONFIG_TRACING_OBJECT_TRACKING is enabled, the kernel will keep
lists of some objects (detailed below), so that debuggers or other tools
can keep track of them.

The lists of objects are:

struct k_timer *_track_list_k_timer;
struct k_mem_slab *_track_list_k_mem_slab;
struct k_sem *_track_list_k_sem;
struct k_mutex *_track_list_k_mutex;
struct k_stack *_track_list_k_stack;
struct k_msgq *_track_list_k_msgq;
struct k_mbox *_track_list_k_mbox;
struct k_pipe *_track_list_k_pipe;
struct k_queue *_track_list_k_queue;

Note that while CONFIG_TRACING is needed, one can always use
CONFIG_TRACE_NONE=y. Also, tracking will only be done for objects that
are also being traced (so, to prevent tracking of some type of object,
such as k_timer, just make CONFIG_TRACING_TIMER=n).

Some simple "sanity checking" tests are also added in this patch.

Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
2021-12-14 07:42:31 -05:00
..
common tests: kernel: atomics: expand atomic operations to 64-bit 2021-11-15 09:59:01 -05:00
condvar/condvar_api cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
context tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
device tests: kernel: device: remove PM related tests 2021-12-02 10:53:39 +01:00
early_sleep tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
events tests: add event test code 2021-10-16 06:27:10 -04:00
fatal tests: kernel: disable one test for qemu_cortex_a9 2021-11-01 22:10:04 -04:00
fifo tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
fpu_sharing cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
gen_isr_table tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
interrupt tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
lifo tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
mbox tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
mem_heap tests: heap: add test case for coverage 2021-11-07 05:39:10 -05:00
mem_protect tests: kernel: Fix address-of-packed-mem warning 2021-12-10 14:08:59 +01:00
mem_slab tests: kernel: mem_slab: Fix test for no multithreading 2021-11-03 09:18:40 -04:00
mp tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
msgq tests: msgq: improve code coverage for msgq API 2021-11-01 11:15:15 -04:00
mutex tests: correct some testsuite name 2021-11-09 15:51:44 -05:00
obj_tracking kernel: Bring back object tracking 2021-12-14 07:42:31 -05:00
pending cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
pipe cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
poll tests: removing incorrect testcases of poll 2021-11-29 18:26:02 -05:00
profiling/profiling_api pm: policy: Add cpu information in the API 2021-11-06 10:21:53 -04:00
queue tests: improve the testcases of queue 2021-12-13 20:31:35 -05:00
sched test: change test suite name and testcase name 2021-11-03 16:44:50 -04:00
semaphore cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
sleep cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
smp tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
smp_boot_delay tests/kernel: Add test for CONFIG_SMP_BOOT_DELAY 2021-11-23 13:23:54 -05:00
spinlock cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
stack/stack tests: stack: fix improper assert message 2021-10-13 06:17:23 -04:00
threads tests: kernel: threads: Correct test assertion in thread_apis test 2021-12-13 20:13:21 -05:00
tickless/tickless_concept cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
timer tests: kernel: cycle64: mark test as slow 2021-11-29 10:35:49 -05:00
workq tests: work: exclude hifive1 board 2021-12-14 07:41:41 -05:00
xip tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00