diff --git a/README.md b/README.md index 2ae7acd..d43f569 100644 --- a/README.md +++ b/README.md @@ -200,6 +200,8 @@ There is often a need to check a kernel config and other OS configuration to mak | [CentOS Linux 7 (Core)](./CentOS%20Linux%207%20(Core)/3.10.0-1127.el7.x86_64) | x86_64 | 3.10.0-1127.el7.x86_64 | :x: | :heavy_check_mark: | > See [bpf-helpers docs](https://man7.org/linux/man-pages/man7/bpf-helpers.7.html) for more details. + +> Both CONFIG_FUNCTION_ERROR_INJECTION and CONFIG_BPF_KPROBE_OVERRIDE needs to be enabled for the bpf_override_return() to work. Moreover, the system call should be [listed explicitly for error-injection](https://github.com/iovisor/bcc/issues/2485#issuecomment-1179965134).
diff --git a/tools/compositions/bpf-override.yaml b/tools/compositions/bpf-override.yaml index f1f08d5..29ae5d7 100644 --- a/tools/compositions/bpf-override.yaml +++ b/tools/compositions/bpf-override.yaml @@ -1,6 +1,7 @@ title: "bpf_override_return() Support" notes: - note: "See [bpf-helpers docs](https://man7.org/linux/man-pages/man7/bpf-helpers.7.html) for more details." + - note: "Both CONFIG_FUNCTION_ERROR_INJECTION and CONFIG_BPF_KPROBE_OVERRIDE needs to be enabled for the bpf_override_return() to work. Moreover, the system call should be [listed explicitly for error-injection](https://github.com/iovisor/bcc/issues/2485#issuecomment-1179965134)." compositions: - name: "CONFIG_FUNCTION_ERROR_INJECTION" configs: ["CONFIG_FUNCTION_ERROR_INJECTION=[ym]"]