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

seccomp / libseccomp / 369 / 1
92%
main: 89%

Build:
Build:
LAST BUILD BRANCH: fix_syscall_name_munging
DEFAULT BRANCH: main
Ran 11 Mar 2020 09:00AM UTC
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

11 Mar 2020 08:41AM UTC coverage: 92.392% (+2.1%) from 90.263%
369.1

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

Source Files on job 369.1
  • Tree
  • List 0
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 287
  • Travis Job 369.1
  • 923cadd2 on github
  • Prev Job for COVERITY_SCAN_TOKEN=[secure] on gperf (#368.1)
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