• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

seccomp / libseccomp / 369
92%
main: 89%

Build:
Build:
LAST BUILD BRANCH: fix_syscall_name_munging
DEFAULT BRANCH: main
Ran 11 Mar 2020 09:00AM UTC
Jobs 1
Files 52
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
369

Pull #204

travis-ci

web-flow
syscalls: use gperf for lookup

use gperf to generate a perfect hash to lookup syscall names.   It
improves significantly the complexity for seccomp_syscall_resolve_name.*
since it replaces the expensive strcmp for each syscall in the
database, with a lookup table.

The complexity for syscall_resolve_num is not changed and it
uses the linear search, that is anyway less expensive than
seccomp_syscall_resolve_name.* as it uses an index for comparison
instead of doing a string comparison.

On my machine, calling 1000 seccomp_syscall_resolve_name_arch and
seccomp_syscall_resolve_num_arch over the entire syscalls DB passed
from ~0.45 sec to ~0.06s.

Closes: https://github.com/seccomp/libseccomp/issues/207

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Pull Request #204: [WIP] syscalls: use gperf for lookups

3874 of 4193 relevant lines covered (92.39%)

257617.18 hits per line

Jobs
ID Job ID Ran Files Coverage
1 369.1 11 Mar 2020 09:00AM UTC 0
92.39
Travis Job 369.1
Source Files on build 369
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #369
  • Pull Request #204
  • PR Base - master (#368)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc