Skip to content
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

Add analogue of --seccomp-bpf as a way to speed up syscall matching #61

Open
qrilka opened this issue Feb 1, 2020 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@qrilka
Copy link
Collaborator

qrilka commented Feb 1, 2020

See e.g. description at https://pchaigno.github.io/strace/2019/10/02/introducing-strace-seccomp-bpf.html#fnref:seccomp-ebpf

@qrilka qrilka added the enhancement New feature or request label Feb 1, 2020
@qrilka
Copy link
Collaborator Author

qrilka commented Feb 18, 2020

Very basic demo of speed improvements in strace:

qrilka@qdesktop ~ $ time strace -c -e openat head -1000000 /dev/urandom > /dev/null
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
  0,00    0,000000           0        12         5 openat
------ ----------- ----------- --------- --------- ----------------
100.00    0,000000                    12         5 total

real	0m2,187s
user	0m0,495s
sys	0m1,838s
qrilka@qdesktop ~ $ time strace -c --seccomp-bpf -e openat head -1000000 /dev/urandom > /dev/null
strace: --seccomp-bpf implies -f
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
  0,00    0,000000           0        12         5 openat
------ ----------- ----------- --------- --------- ----------------
100.00    0,000000                    12         5 total

real	0m1,130s
user	0m0,212s
sys	0m0,918s

@nh2
Copy link
Owner

nh2 commented Apr 11, 2020

Nice!

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

No branches or pull requests

2 participants