summaryrefslogtreecommitdiff
path: root/libc/malloc_debug/tests/malloc_debug_system_tests.cpp
diff options
context:
space:
mode:
authorBram Bonné <brambonne@google.com>2020-05-06 13:49:55 +0200
committerBram Bonné <brambonne@google.com>2020-05-18 11:20:30 +0200
commitacadd09c66e1e5966ac771cb338f1ad660aed4c0 (patch)
treebc11de4fe811b802c698f972cb1eb16ac09ddd0c /libc/malloc_debug/tests/malloc_debug_system_tests.cpp
parent57a1c3908ff5a2e427f5d45992d0b463fd71b87a (diff)
Speed up seccomp with priority list.
Allow to provide a list of prioritized syscalls (e.g., syscalls that we know occur often) which are checked before other syscalls in seccomp. When constructing the bpf seccomp filter, traverse prioritized syscalls in a linear list before checking all other syscalls in a binary tree. Bug: 156732794 Test: make, inspect generated *_system_policy.cpp files Test: simpleperf on futex/ioctl-heavy app seems to show 5-10% less time spent in seccomp call Change-Id: I509343bcd32ada90c0591785ab5cb12d2a38c31e (cherry picked from commit ce84677733c18bc442f7f1b2f1840117c904db70)
Diffstat (limited to 'libc/malloc_debug/tests/malloc_debug_system_tests.cpp')
0 files changed, 0 insertions, 0 deletions