bpf: Update bpf_override_return() comment
authorMartin Kelly <martin.kelly@crowdstrike.com>
Thu, 10 Oct 2024 19:33:01 +0000 (12:33 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 10 Oct 2024 20:39:45 +0000 (13:39 -0700)
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.

Signed-off-by: Martin Kelly <martin.kelly@crowdstrike.com>
Link: https://lore.kernel.org/r/20241010193301.995909-1-martin.kelly@crowdstrike.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/uapi/linux/bpf.h
tools/include/uapi/linux/bpf.h

index 874af0186fe84357988a50cc5dec6c2d45d3ccba..627c4195f04f6e6a7143b944fc429854d78a34be 100644 (file)
@@ -3103,10 +3103,6 @@ union bpf_attr {
  *             with the **CONFIG_BPF_KPROBE_OVERRIDE** configuration
  *             option, and in this case it only works on functions tagged with
  *             **ALLOW_ERROR_INJECTION** in the kernel code.
- *
- *             Also, the helper is only available for the architectures having
- *             the CONFIG_FUNCTION_ERROR_INJECTION option. As of this writing,
- *             x86 architecture is the only one to support this feature.
  *     Return
  *             0
  *
index 5937c39069ba6eb45b93921e24aba9fe25626007..0e49ce2981a0cf705c9c0bda465a18dab2bf224d 100644 (file)
@@ -3103,10 +3103,6 @@ union bpf_attr {
  *             with the **CONFIG_BPF_KPROBE_OVERRIDE** configuration
  *             option, and in this case it only works on functions tagged with
  *             **ALLOW_ERROR_INJECTION** in the kernel code.
- *
- *             Also, the helper is only available for the architectures having
- *             the CONFIG_FUNCTION_ERROR_INJECTION option. As of this writing,
- *             x86 architecture is the only one to support this feature.
  *     Return
  *             0
  *