inject(8) | System Manager's Manual | inject(8) |
inject - injects appropriate error into function if input call chain and predicates are satisfied. Uses Linux eBPF/bcc.
inject -h [-I header] [-P probability] [-v] [-C count] mode spec
inject injects errors into specified kernel functionality when a given call chain and associated predicates are satsified.
WARNING: This tool injects failures into key kernel functions and may crash the kernel. You should know what you're doing if you're using this tool.
This makes use of a Linux 4.16 feature (bpf_override_return())
Since this uses BPF, only the root user can use this tool.
CONFIG_BPF, CONFIG_BPF_KPROBE_OVERRIDE, bcc
Please see inject_example.txt
This is from bcc.
Also look in the bcc distribution for a companion _examples.txt file containing example usage, output, and commentary for this tool.
Linux
Unstable - in development.
Howard McLauchlan
2018-03-16 | USER COMMANDS |