-
Notifications
You must be signed in to change notification settings - Fork 1
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
Use strace's --seccomp-bpf option #2
Comments
i-ky
changed the title
Use srtace's --seccomp-bpf option
Use strace's --seccomp-bpf option
Apr 18, 2023
I'm still working on CentOS 7, kernel 3.10.0, strace 4.24. |
Close this ticket and won't enable |
Not even allow user to enable it at their own risk via an option flag? |
Okay, I'm going to take a look, give me some time, will update this week. Thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Newer versions of
strace
support--seccomp-bpf
option introduced in version 5.3:It has huge impact on performance. According to my tests,
strace
command currently used bycompile-db-gen
adds ~100% overhead (i.e. build time doubles understrace
). Simply adding--seccomp-bpf
reduces overhead to ~10% making it almost unnoticeable.I honestly don't know why
strace
developers did not make--seccomp-bpf
a new default, but it definitely makes sense to use it incompile-db-gen
, if available.The text was updated successfully, but these errors were encountered: