diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2022-04-08 11:14:24 -0700 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2022-04-08 22:24:15 +0200 |
commit | 2fa5b0f290e19bb34393e1983be511aab18b683e (patch) | |
tree | bacc2e96588fa36ac21f3cac2cf2e091b608e9be /tools/testing/selftests/bpf | |
parent | e89d57d938c8fa80c457982154ed6110804814fe (diff) |
libbpf: Use weak hidden modifier for USDT BPF-side API functions
Use __weak __hidden for bpf_usdt_xxx() APIs instead of much more
confusing `static inline __noinline`. This was previously impossible due
to libbpf erroring out on CO-RE relocations pointing to eliminated weak
subprogs. Now that previous patch fixed this issue, switch back to
__weak __hidden as it's a more direct way of specifying the desired
behavior.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20220408181425.2287230-3-andrii@kernel.org
Diffstat (limited to 'tools/testing/selftests/bpf')
0 files changed, 0 insertions, 0 deletions