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

seccomp / libseccomp / 332
92%
main: 89%

Build:
Build:
LAST BUILD BRANCH: alpha-support
DEFAULT BRANCH: main
Ran 23 Feb 2020 09:07PM UTC
Jobs 1
Files 52
Run time 4s
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
332

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: syscalls: use gperf for lookup

14 of 14 new or added lines in 1 file covered. (100.0%)

3740 of 4039 relevant lines covered (92.6%)

256471.1 hits per line

Jobs
ID Job ID Ran Files Coverage
1 332.1 23 Feb 2020 09:07PM UTC 0
92.6
Travis Job 332.1
Source Files on build 332
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #332
  • Pull Request #204
  • PR Base - master (#326)
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