Skip to content

Commit

Permalink
added bpf_override_return composition
Browse files Browse the repository at this point in the history
Signed-off-by: Rahul Jadhav <nyrahul@gmail.com>
  • Loading branch information
nyrahul committed Jan 1, 2025
1 parent 8dd24e9 commit f042c5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
</p></details>
<details><summary><h3>BPF/eBPF Support</h3></summary><p>
Expand Down
1 change: 1 addition & 0 deletions tools/compositions/bpf-override.yaml
Original file line number Diff line number Diff line change
@@ -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]"]
Expand Down

0 comments on commit f042c5d

Please sign in to comment.