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

seccomp / libseccomp / 319
93%
main: 89%

Build:
Build:
LAST BUILD BRANCH: alpha-support
DEFAULT BRANCH: main
Ran 31 Jan 2020 09:49PM UTC
Jobs 1
Files 50
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
319

Pull #204

travis-ci

Giuseppe Scrivano
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:

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

3717 of 4012 relevant lines covered (92.65%)

250487.08 hits per line

Jobs
ID Job ID Ran Files Coverage
1 319.1 31 Jan 2020 09:49PM UTC 0
92.65
Travis Job 319.1
Source Files on build 319
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #319
  • Pull Request #204
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