zephyr/subsys/tracing
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
..
ctf tracing: Automatic syscall tracing 2021-10-23 20:45:17 -04:00
include toolchain: migrate iterable sections calls to the external API 2021-08-12 17:47:04 -04:00
sysview tracing: Automatic syscall tracing 2021-10-23 20:45:17 -04:00
test tracing: Automatic syscall tracing 2021-10-23 20:45:17 -04:00
user kernel: add support for event objects 2021-10-16 06:27:10 -04:00
CMakeLists.txt tracing: Add user-definable tracing interface 2021-09-02 06:54:35 -04:00
Kconfig tracing: Automatic syscall tracing 2021-10-23 20:45:17 -04:00
tracing_backend_posix.c
tracing_backend_ram.c tracing: add RAM backend 2021-03-06 07:33:59 -05:00
tracing_backend_uart.c tracing: Automatic syscall tracing 2021-10-23 20:45:17 -04:00
tracing_backend_usb.c tracing: Automatic syscall tracing 2021-10-23 20:45:17 -04:00
tracing_buffer.c
tracing_core.c tracing: Automatic syscall tracing 2021-10-23 20:45:17 -04:00
tracing_format_async.c tracing: Automatic syscall tracing 2021-10-23 20:45:17 -04:00
tracing_format_common.c
tracing_format_sync.c
tracing_none.c Tracing: TRACING_NONE Compilation Fix 2021-05-27 14:39:40 -05:00