zephyr/scripts
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
..
checkpatch kernel: add an architecture specific structs header 2021-04-21 09:03:47 -04:00
ci scripts: check_compliance should not generate soc/shield Kconfig files 2021-09-23 11:27:41 -04:00
coccinelle coccinelle: check reserved symbols based on a file 2021-04-30 22:09:43 -04:00
coredump scripts: coredump: rename parser to avoid conflict with builtin module 2021-07-19 21:14:16 +03:00
dts dts: Add support for specifier-space property. 2021-10-13 09:56:46 -05:00
footprint scripts: footprint: fix print alignment and color 2021-10-07 16:56:20 -04:00
gitlint
kconfig kconfig: add support for warnings when using experimental features 2021-10-22 13:59:21 +02:00
logging/dictionary scripts: colorize parsed dictionary logging 2021-07-16 21:34:06 -04:00
net
pylib/twister twister: Fix skipping unskippable tests when --subset is used 2021-10-21 21:45:53 -04:00
release scripts: add script to extract top-ten bug-bashers 2021-09-01 17:06:50 -04:00
schemas/twister twister: Allow baud rates other than 115200 2021-10-14 16:35:48 -04:00
support
tests twister: remove toolchain test 2021-06-11 08:16:41 -04:00
tracing
west_commands west: sign: add support for NXP i.MX8MP 2021-10-20 19:08:50 -04:00
.gitignore
checkpatch.pl scripts: checkpatch: do not require top-level Makefile 2021-03-29 10:59:28 -04:00
checkstack.pl
coccicheck
dir_is_writeable.py
file2hex.py
gen_app_partitions.py scripts: Add align for empty _app_smem region 2021-09-28 20:06:06 -04:00
gen_cfb_font_header.py
gen_gcov_files.py
gen_handles.py device: add fudge factor for handle padding 2021-09-30 21:37:59 -04:00
gen_kobject_list.py kernel: add support for event objects 2021-10-16 06:27:10 -04:00
gen_kobject_placeholders.py kernel: generate placeholders for kobj tables before final build 2021-04-27 13:32:00 -04:00
gen_offset_header.py
gen_relocate_app.py scripts: Set align size for code relocated 2021-05-04 15:46:52 +02:00
gen_syscalls.py tracing: Automatic syscall tracing 2021-10-23 20:45:17 -04:00
get_maintainer.py scripts: get_maintainer: add count function 2021-10-18 08:36:21 -04:00
list_boards.py scripts: list_boards: handle boards dirs with subset of architectures 2021-06-11 16:26:30 +02:00
mergehex.py
parse_syscalls.py
process_gperf.py
requirements-base.txt requirements: bump west to >=0.10.1 2021-05-18 09:52:12 -05:00
requirements-build-test.txt
requirements-compliance.txt
requirements-doc.txt requirements-doc: add PyYAML which removes dependency on -base 2021-06-16 10:39:08 +02:00
requirements-extras.txt scripts: add script to extract top-ten bug-bashers 2021-09-01 17:06:50 -04:00
requirements-run-test.txt
requirements.txt
series-push-hook.sh scripts: series-push-hook: Use main as base comparison branch 2021-05-27 15:55:43 -05:00
spelling.txt
subfolder_list.py
tags.sh
twister twister: Fix skipping unskippable tests when --subset is used 2021-10-21 21:45:53 -04:00
uf2conv.py
user_wordsize.py
valgrind.supp
west-commands.yml west: spdx: Generate SPDX 2.2 tag-value documents 2021-05-05 11:14:06 -04:00
zephyr_module.py cmake: add a comment header to zephyr_settings.txt 2021-08-10 07:37:19 -04:00