History

bpf: Update bpf_override_return() comment

The documentation says CONFIG_FUNCTION_ERROR_INJECTION is supported only on x86. This was presumably true at the time of writing, but it's now supported on many other architectures too. Drop this statement, since it's not correct anymore and it fits better in other documentation anyway.

Martin Kelly committed 2 years ago

Commit c6ca3191 parent 5bd48a32 files · +0 −8Browse files

Showing the changes to tools/include/uapi/linux (1 of 2 files). Show all

Unified · Split

tools/include/uapi/linux/bpf.h+0−4
@@ -3103,10 +3103,6 @@ union bpf_attr { · 3102 unmodified lines
31033103 * with the **CONFIG_BPF_KPROBE_OVERRIDE** configuration
31043104 * option, and in this case it only works on functions tagged with
31053105 * **ALLOW_ERROR_INJECTION** in the kernel code.
3106− *
3107− * Also, the helper is only available for the architectures having
3108− * the CONFIG_FUNCTION_ERROR_INJECTION option. As of this writing,
3109− * x86 architecture is the only one to support this feature.
31103106 * Return
31113107 * 0
31123108 *