Skip to content

fuweid/failpoint-bpf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

failpoint-bpf

sysfail

The sysfail uses bpf to inject failpoint. The -inject option format align with strace(1). For example, you can delay mount(2) with 10 seconds.

$ sysfail -inject mount:delay_enter=10000:when=1 -pid 1000

install bpf_failpoint_delay before run

bpf-helper(7) doesn't support sleep function. However, fentry/fexit tracing functions support sleepable call. sysfail uses btf_kfunc to export kernel function msleep to bpf_failpoint_delay. The btf_kfunc registration is done by kernel module

$ cd bpf/kmod
$ make install-mod

requirement

It requires kernel to build with CONFIG_FUNCTION_ERROR_INJECTION.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages