Skip to content

tests_manual: Add syscall overhead benchmark - #129

Open
skinsbursky wants to merge 1 commit into
linux-audit:mainfrom
skinsbursky:add-audit-benchmark
Open

skinsbursky wants to merge 1 commit into
linux-audit:mainfrom
skinsbursky:add-audit-benchmark

Conversation

@skinsbursky

Copy link
Copy Markdown

Add a microbenchmark which repeatedly invokes getpid(2) and reports the per-operation latency across multiple repetitions. The workload avoids filesystem and other syscall-specific work so the fixed audit syscall overhead remains visible.

The benchmark deliberately leaves audit policy management to the caller. This permits comparisons with increasing numbers of unrelated exit rules and with automatically removed watch or tree rules without modifying an existing policy unexpectedly.

Add a microbenchmark which repeatedly invokes getpid(2) and reports the
per-operation latency across multiple repetitions. The workload avoids
filesystem and other syscall-specific work so the fixed audit syscall
overhead remains visible.

The benchmark deliberately leaves audit policy management to the caller.
This permits comparisons with increasing numbers of unrelated exit rules
and with automatically removed watch or tree rules without modifying an
existing policy unexpectedly.

Signed-off-by: Stanislav Kinsburskii <skinsburskii@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant