From 640c025e0a4febd75baf91809781f0ac1517c2d1 Mon Sep 17 00:00:00 2001 From: ganchuantao Date: Thu, 13 Feb 2025 09:01:01 +0000 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89btf=20=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84=E5=AE=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ganchuantao --- src/libbpf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/libbpf.c b/src/libbpf.c index af7203f..04e8898 100644 --- a/src/libbpf.c +++ b/src/libbpf.c @@ -6200,9 +6200,7 @@ bpf_object__relocate_core(struct bpf_object *obj, const char *targ_btf_path) return 0; if (targ_btf_path) { -#ifdef HAVE_LIBELF obj->btf_vmlinux_override = btf__parse(targ_btf_path, NULL); -#endif err = libbpf_get_error(obj->btf_vmlinux_override); if (err) { pr_warn("failed to parse target BTF: %d\n", err); -- Gitee