Skip to content

configs: Add FTRACE_SYSCALLS=y #6759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: rpi-6.12.y
Choose a base branch
from

Conversation

pelwell
Copy link
Contributor

@pelwell pelwell commented Apr 1, 2025

FTRACE_SYSCALLS enables the syscall entry and exit events to be traced.

See: #6752

FTRACE_SYSCALLS enables the syscall entry and exit events to be traced.

See: raspberrypi#6752

Signed-off-by: Phil Elwell <[email protected]>
@pelwell
Copy link
Contributor Author

pelwell commented Apr 1, 2025

This option adds 170kB to the uncompressed ARMv7 kernel - the one which is most size sensitive, since the memories are smallest:

Build File size
Before Image 16229536
kernel.img 7316892
After Image 16408704
kernel.img 7371224

Are you happy with this, @popcornmix?

@popcornmix
Copy link
Collaborator

The size increase is more than I expected. Perhaps this needs more thought to see exactly how many users it would benefit.

I did ask a colleague who has been using perfetto for tracing system activity if this would be useful and he says perfetto already supports tracing syscalls using these events:

$ sudo cat /sys/kernel/debug/tracing/available_events | grep syscalls
raw_syscalls:sys_exit
raw_syscalls:sys_enter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants