diff options
author | Eduard Zingerman <[email protected]> | 2024-03-06 12:45:15 +0200 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2024-03-06 15:18:15 -0800 |
commit | a2a5172cf1eb39472bd2038079f65c6f676906a5 (patch) | |
tree | 8fa10eaa502c527a8572b6c89958e9e06d1fd0e9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 0f79bb8987a5c483362dc12d58b221a1a1c45578 (diff) |
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 <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: David Vernet <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions