You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implemented usage of seccomp-bpf for stopping tracees only for filtered
syscalls. Use --seccomp-bpf option to enable.
It has huge impact on performance. According to my tests, strace command currently used by compile-db-gen adds ~100% overhead (i.e. build time doubles under strace). 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 in compile-db-gen, if available.
The text was updated successfully, but these errors were encountered:
i-ky
changed the title
Use srtace's --seccomp-bpf option
Use strace's --seccomp-bpf option
Apr 18, 2023
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: