Just like with strace one is able to inject either errors or delays into syscalls through -e inject (see http://man7.org/linux/man-pages/man1/strace.1.html), we could do the same for some very targetted system calls.
This could be used to:
return very edge case errors for syscalls that we might assume to not fail, and
make syscalls suddenly slow (especially interesting for simulating either disk or network devices being throttled).
For 2, we verify that this indeed works by using bpftrace.
Just like with
strace
one is able to inject either errors or delays into syscalls through-e inject
(see http://man7.org/linux/man-pages/man1/strace.1.html), we could do the same for some very targetted system calls.This could be used to:
For
2
, we verify that this indeed works by usingbpftrace
.