syscalls: syscall id lookup and dispatch table improvements
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 2 Dec 2021 21:39:19 +0000 (16:39 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 Dec 2021 16:34:25 +0000 (11:34 -0500)
commit999033797f1e2f90c6e5d013eb9972f1ea1b4a75
tree4ded43807a5ebac49843525a15af9b97aac40214
parent7f52f0d4228ee23b783e907258835d2f818350d7
syscalls: syscall id lookup and dispatch table improvements

Use the syscall id from event creation as key to index the filter
bitmap rather than lookup the syscall id using the syscall name as
key. This additional lookup is completely redundant.

For unknown syscalls, add the unknown syscall event to the unknown
system call dispatch table only when it matches an enabler: the only way
it matches an enabler is because a wildcard is used to enabled all
system calls (until we eventually support enabling system calls by
number).

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I61ce9d447e5056976605ab0e048ff5f9cd8ff484
src/lttng-syscalls.c
This page took 0.027301 seconds and 4 git commands to generate.