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

Merged
merged 2 commits into from
May 2, 2025
Merged

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

@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

pelwell added 2 commits May 2, 2025 11:32
FTRACE_SYSCALLS enables the syscall entry and exit events to be traced.

See: raspberrypi#6752

Signed-off-by: Phil Elwell <[email protected]>
@pelwell pelwell merged commit 0dc20a3 into raspberrypi:rpi-6.12.y May 2, 2025
11 of 12 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request May 6, 2025
kernel: configs: Add FTRACE_SYSCALLS=y
See: raspberrypi/linux#6759

kernel: drm/v3d: Don't retrieve the clock twice
See: raspberrypi/linux#6830

kernel: Update panel-ilitek-ili9881c.c
See: raspberrypi/linux#6836
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request May 6, 2025
kernel: configs: Add FTRACE_SYSCALLS=y
See: raspberrypi/linux#6759

kernel: drm/v3d: Don't retrieve the clock twice
See: raspberrypi/linux#6830

kernel: Update panel-ilitek-ili9881c.c
See: raspberrypi/linux#6836
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