aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2021-01-09 23:03:40 -0800
committerDaniel Borkmann <[email protected]>2021-01-12 21:11:30 +0100
commitbcc5e6162d66d44f7929f30fce032f95855fc8b4 (patch)
tree113f20d0f937679d41cc01f996b67f0bbf30b0e1 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace
parent4be34f3d0731b38a1b24566b37fbb39500aaf3a2 (diff)
bpf: Allow empty module BTFs
Some modules don't declare any new types and end up with an empty BTF, containing only valid BTF header and no types or strings sections. This currently causes BTF validation error. There is nothing wrong with such BTF, so fix the issue by allowing module BTFs with no types or strings. Fixes: 36e68442d1af ("bpf: Load and verify kernel module BTFs") Reported-by: Christopher William Snowhill <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
0 files changed, 0 insertions, 0 deletions