zephyr/tests/subsys
Tom Burdick 97dc88bb6d tracing: Automatic syscall tracing
When generating syscall wrappers, call a tracing macro with the id,
name, and all parameters of the syscall as params when entering and
leaving the syscall. This can be disabled in certain call sites
by defining DISABLE_SYSCALL_TRACING which is useful for certain
tracing implementations which require syscalls themselves to work.

Notably some syscalls *cannot* be automatically traced this way and
headers where exclusions are set are in the gen_syscall.py as notracing.

Includes a systemview and test format implementation.

Tested with systemview, usb, and uart backends with the string
formatter using the tracing sample app.

Debugging the trace wrapper can be aided by setting the TRACE_DIAGNOSTIC
env var and rebuilding from scratch, a warning is issued for every
instance a syscall is traced.

Automatically generating a name mapping for SYSVIEW_Zephyr.txt is a
future item as is documenting how to capture and use the tracing data
generated.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2021-10-23 20:45:17 -04:00
..
canbus cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
cpp tests: subsys: libcxx: extend the timeout for cpp.libcxx.newlib_nano 2021-10-23 20:44:08 -04:00
debug cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
dfu cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
edac/ibecc edac: tests: Add testing error_trigger() for unset type 2021-10-14 12:11:09 -04:00
fs cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
jwt tests: jwt: This test requires csprng 2021-10-07 14:02:40 -05:00
logging tests: logging: remove definition of SYS_CLOCK_HW_CYCLES_PER_SEC 2021-10-06 19:25:41 +02:00
mgmt/ec_host_cmd cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
modbus cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
openthread tracing: Automatic syscall tracing 2021-10-23 20:45:17 -04:00
pm pm: Use stats subsys for tracking system states 2021-10-17 10:56:21 -04:00
portability cmsis_rtos_v1: fix thread instances management. 2021-09-09 12:01:06 -04:00
settings cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
shell cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
storage tests/subsys/storage/flash_map: get flash device from flash area 2021-10-21 10:55:16 -04:00
tracing/tracing_api tests: subsys: Adding testcases to check trace API 2021-09-05 07:25:34 -04:00
usb cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00