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.
Since then, more architectures got support, would be nice to give the description an update in the docs.
The description we get from libbpf says
Since then, more architectures got support, would be nice to give the description an update in the docs.