diff options
author | 2024-03-06 12:45:15 +0200 | |
---|---|---|
committer | 2024-03-06 15:18:15 -0800 | |
commit | a2a5172cf1eb39472bd2038079f65c6f676906a5 (patch) | |
tree | 8fa10eaa502c527a8572b6c89958e9e06d1fd0e9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge branch 'bpf-introduce-may_goto-and-cond_break' (diff) | |
download | wireguard-linux-a2a5172cf1eb39472bd2038079f65c6f676906a5.tar.xz wireguard-linux-a2a5172cf1eb39472bd2038079f65c6f676906a5.zip |
libbpf: Allow version suffixes (___smth) for struct_ops types
E.g. allow the following struct_ops definitions:
struct bpf_testmod_ops___v1 { int (*test)(void); };
struct bpf_testmod_ops___v2 { int (*test)(void); };
SEC(".struct_ops.link")
struct bpf_testmod_ops___v1 a = { .test = ... }
SEC(".struct_ops.link")
struct bpf_testmod_ops___v2 b = { .test = ... }
Where both bpf_testmod_ops__v1 and bpf_testmod_ops__v2 would be
resolved as 'struct bpf_testmod_ops' from kernel BTF.
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: David Vernet <void@manifault.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240306104529.6453-2-eddyz87@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions