-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Cannot trace syscalls because CONFIG_FTRACE_SYSCALLS is not set #6752
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
Comments
This seems reasonable to me. |
FTRACE_SYSCALLS enables the syscall entry and exit events to be traced. See: raspberrypi#6752 Signed-off-by: Phil Elwell <[email protected]>
See #6759. About 40 minutes from now you should be able to install a trial build using |
Thank you, I tested pulls/6759 and it works:
We can trace more than 300 syscalls with much lower overhead compared to strace and moreover system wide. Size overhead is in my opinion acceptable given the better OS observability. |
@popcornmix's comment on the PR says:
|
Thank you for the comment. I suggest to consider adding the tracing support at least to 64 bit kernels, 170kB memory overhead is 0.03 % on 512 MB memory, which is close to negligible. My view is that tracepoints add minimal overhead, you can control the tracing through a shell in /sys/kernel/tracing directory. Compare it to the above mentioned perfetto which requires dozens of megabytes of the storage. You are right that you might trace by using raw syscall tracepoints but it is user unfriendly or it requires third-party solution. The RPI kernel without FTRACE_SYSCALLS has from my point of view improper configuration for the official distro package as command |
Describe the bug
Please consider to enable CONFIG_FTRACE_SYSCALLS kernel option to enable syscall tracing via 'perf trace', currently only raw syscalls can be observed.
$ perf list | grep syscall
raw_syscalls:sys_enter [Tracepoint event]
raw_syscalls:sys_exit [Tracepoint event]
Performance impact should be close to zero if tracing is disabled (nop instructions).
Steps to reproduce the behaviour
perf stat -e 'syscalls:sys_enter_*'
event syntax error: 'syscalls:sys_enter_*'
___ unknown tracepoint
Device (s)
Raspberry Pi 5
System
Raspberry Pi reference 2024-07-04
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 48efb5fc5485fafdc9de8ad481eb5c09e1182656, stage5
Logs
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: