build: add -Wall and clean up warnings

This fixes or silences various warnings noticed by -Wall.

Signed-off-by: Kees Cook <keescook@chromium.org>
tests: shut down tracer on unknown events

If the tracer doesn't shut down on unknown events, it can potentially
spin forever.

Signed-off-by: Kees Cook <keescook@chromium.org>
tests: refactor tracer for additional tracer tests

This moves the test logic of the tracer into a separate function so it can
be reused by other tracing tests.

Signed-off-by: Kees Cook <keescook@chromium.org>
tests: add syscall redirection validation

This makes sure that TRACE filters can allow, change, and skip syscalls.

Signed-off-by: Kees Cook <keescook@chromium.org>
tests: check maximum filter sizes

Make sure that individual filters and total filter chain counts cannot
exceed expected lengths.

Signed-off-by: Kees Cook <keescook@chromium.org>
Merge pull request #9 from kees/trace

Trace