bpf_override_return error from kprobe #666
-
I add bpf_override_return code this,and doesn't work with error 2022/05/09 16:37:47 opening kprobe: setting perf event bpf program: invalid argument. What I want todo ? I want use eBFP to inject hook to terminating some operation, May I use bpf_override_return to do this ? Can u help me ? Looking forward to your reply |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Two prerequisites to use 1.The kernel was compiled with the following two configurations
2.The hooked function was whitelisted to allow error injections. Please refer to iovisor/bcc#2485 (comment) |
Beta Was this translation helpful? Give feedback.
Two prerequisites to use
bpf_override_return
:1.The kernel was compiled with the following two configurations
2.The hooked function was whitelisted to allow error injections. Please refer to iovisor/bcc#2485 (comment)