aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorToke Høiland-Jørgensen <[email protected]>2020-02-17 18:17:01 +0100
committerDaniel Borkmann <[email protected]>2020-02-18 15:34:20 +0100
commit113e6b7e15e23dc45d5c66eb66bb91a627812e36 (patch)
tree96d646cc04e8d070610f657cb716217268e2d3d9 /tools/perf/scripts/python/export-to-sqlite.py
parentf25975f42f2f8f2a01303054d6a70c7ceb1fcf54 (diff)
libbpf: Sanitise internal map names so they are not rejected by the kernel
The kernel only accepts map names with alphanumeric characters, underscores and periods in their name. However, the auto-generated internal map names used by libbpf takes their prefix from the user-supplied BPF object name, which has no such restriction. This can lead to "Invalid argument" errors when trying to load a BPF program using global variables. Fix this by sanitising the map names, replacing any non-allowed characters with underscores. Fixes: d859900c4c56 ("bpf, libbpf: support global data/bss/rodata sections") Signed-off-by: Toke Høiland-Jørgensen <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions