summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-03-08 15:58:20 -0800
committerDaniel Borkmann <daniel@iogearbox.net>2019-03-11 10:14:12 +0100
commitf38a1f0a5a5710b14c0e899628c815522c6111cf (patch)
tree15159a7fac85d3be8e6e66fc2014748d15d9c672 /tools/testing/selftests
parent2a5ff07a0eb945f291e361aa6f6becca8340ba46 (diff)
libbpf: handle BTF parsing and loading properly
This patch splits and cleans up error handling logic for loading BTF data. Previously, if BTF data was parsed successfully, but failed to load into kernel, we'd report nonsensical error code, instead of error returned from btf__load(). Now btf__new() and btf__load() are handled separately with proper cleanup and warning reporting. Fixes: d29d87f7e612 ("btf: separate btf creation and loading") Reported-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: Andrii Nakryiko <andriin@fb.com> Acked-by: Martin KaFai Lau <kafai@fb.com> Acked-by: Yonghong Song <yhs@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/testing/selftests')
0 files changed, 0 insertions, 0 deletions