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 include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/bpf.h+0−4
@@ -3103,10 +3103,6 @@ union bpf_attr { · 3102 unmodified lines
3103 * with the **CONFIG_BPF_KPROBE_OVERRIDE** configuration3103 * with the **CONFIG_BPF_KPROBE_OVERRIDE** configuration
3104 * option, and in this case it only works on functions tagged with3104 * option, and in this case it only works on functions tagged with
3105 * **ALLOW_ERROR_INJECTION** in the kernel code.3105 * **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.
3110 * Return3106 * Return
3111 * 03107 * 0
3112 *3108 *