From: Daniel Borkmann <daniel@iogearbox.net>
To: Jianlin Lv <iecedge@gmail.com>, bpf@vger.kernel.org
Cc: ast@kernel.org, andrii@kernel.org, kafai@fb.com,
quentin@isovalent.com, jean-philippe@linaro.org,
mauricio@kinvolk.io, ytcoode@gmail.com,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
jianlv@ebay.com
Subject: Re: [PATCH bpf-next] bpftoo: Support user defined vmlinux path
Date: Mon, 25 Apr 2022 16:54:16 +0200 [thread overview]
Message-ID: <873eaf55-6e9d-7f19-232c-6d55e1d33d89@iogearbox.net> (raw)
In-Reply-To: <20220425075724.48540-1-jianlv@ebay.com>
On 4/25/22 9:57 AM, Jianlin Lv wrote:
> From: Jianlin Lv <iecedge@gmail.com>
>
> Add EXTERNAL_PATH variable that define unconventional vmlinux path
>
> Signed-off-by: Jianlin Lv <iecedge@gmail.com>
> ---
> When building Ubuntu-5.15.0 kernel, '../../../vmlinux' cannot locate
> compiled vmlinux image. Incorrect vmlinux generated vmlinux.h missing some
> structure definitions that broken compiling pipe.
You should already be able to define custom VMLINUX_BTF_PATHS, no?
See commit :
commit ec23eb705620234421fd48fc2382490fcfbafc37
Author: Andrii Nakryiko <andriin@fb.com>
Date: Mon Jun 29 17:47:58 2020 -0700
tools/bpftool: Allow substituting custom vmlinux.h for the build
> ---
> tools/bpf/bpftool/Makefile | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tools/bpf/bpftool/Makefile b/tools/bpf/bpftool/Makefile
> index c6d2c77d0252..fefa3b763eb7 100644
> --- a/tools/bpf/bpftool/Makefile
> +++ b/tools/bpf/bpftool/Makefile
> @@ -160,6 +160,7 @@ $(OBJS): $(LIBBPF) $(LIBBPF_INTERNAL_HDRS)
> VMLINUX_BTF_PATHS ?= $(if $(O),$(O)/vmlinux) \
> $(if $(KBUILD_OUTPUT),$(KBUILD_OUTPUT)/vmlinux) \
> ../../../vmlinux \
> + $(if $(EXTERNAL_PATH),$(EXTERNAL_PATH)/vmlinux) \
> /sys/kernel/btf/vmlinux \
> /boot/vmlinux-$(shell uname -r)
> VMLINUX_BTF ?= $(abspath $(firstword $(wildcard $(VMLINUX_BTF_PATHS))))
>
prev parent reply other threads:[~2022-04-25 14:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-25 7:57 Jianlin Lv
2022-04-25 14:54 ` Daniel Borkmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=873eaf55-6e9d-7f19-232c-6d55e1d33d89@iogearbox.net \
--to=daniel@iogearbox.net \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=iecedge@gmail.com \
--cc=jean-philippe@linaro.org \
--cc=jianlv@ebay.com \
--cc=kafai@fb.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mauricio@kinvolk.io \
--cc=netdev@vger.kernel.org \
--cc=quentin@isovalent.com \
--cc=ytcoode@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®