diff options
author | Eduard Zingerman <[email protected]> | 2024-03-06 12:45:28 +0200 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2024-03-06 15:18:16 -0800 |
commit | bd70a8fb7ca4fcb078086f4d96b048aaf1aa4786 (patch) | |
tree | 5e508f79182e882a923a5f2986a0e9fcaa53334f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 733e5e875444fc5afc9b72714f0ecaca629ccf8a (diff) |
bpf: Allow all printable characters in BTF DATASEC names
The intent is to allow libbpf to use SEC("?.struct_ops") to identify
struct_ops maps that are optional, e.g. like in the following BPF code:
SEC("?.struct_ops")
struct test_ops optional_map = { ... };
Which yields the following BTF:
...
[13] DATASEC '?.struct_ops' size=0 vlen=...
...
To load such BTF libbpf rewrites DATASEC name before load.
After this patch the rewrite won't be necessary.
Signed-off-by: Eduard Zingerman <[email protected]>
Signed-off-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