From: Eduard Zingerman <eddyz87@gmail.com>
To: Ihor Solodrai <ihor.solodrai@pm.me>, bpf@vger.kernel.org
Cc: andrii@kernel.org, ast@kernel.org, daniel@iogearbox.net,
mykolal@fb.com, bjorn@kernel.org
Subject: Re: [PATCH bpf-next 2/2] selftests/bpf: set vpath in Makefile to search for skels
Date: Mon, 16 Sep 2024 21:00:51 -0700 [thread overview]
Message-ID: <dbf5eb3056eabbd44775d526a64b53e1a43b9f59.camel@gmail.com> (raw)
In-Reply-To: <20240916195919.1872371-2-ihor.solodrai@pm.me>
On Mon, 2024-09-16 at 19:59 +0000, Ihor Solodrai wrote:
[...]
> diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile
> index df75f1beb731..365740f24d2e 100644
> --- a/tools/testing/selftests/bpf/Makefile
> +++ b/tools/testing/selftests/bpf/Makefile
> @@ -622,10 +622,11 @@ $(TRUNNER_BPF_SKELS_LINKED): $(TRUNNER_OUTPUT)/%: $$$$(%-deps) $(BPFTOOL) | $(TR
>
> # When the compiler generates a %.d file, only skel basenames (not
> # full paths) are specified as prerequisites for corresponding %.o
> -# file. This target makes %.skel.h basename dependent on full paths,
> -# linking generated %.d dependency with actual %.skel.h files.
> -$(notdir %.skel.h): $(TRUNNER_OUTPUT)/%.skel.h
> - @true
> +# file. vpath directives below instruct make to search for skel files
> +# in TRUNNER_OUTPUT, if they are not present in the working directory.
> +vpath %.skel.h $(TRUNNER_OUTPUT)
> +vpath %.lskel.h $(TRUNNER_OUTPUT)
> +vpath %.subskel.h $(TRUNNER_OUTPUT)
>
> endif
When I try this patch, the following happens after first full tests build:
$ touch progs/verifier_and.c; make -j test_progs
CLNG-BPF [test_progs] verifier_and.bpf.o
CLNG-BPF [test_progs-no_alu32] verifier_and.bpf.o
CLNG-BPF [test_progs-cpuv4] verifier_and.bpf.o
GEN-SKEL [test_progs] verifier_and.skel.h
GEN-SKEL [test_progs-no_alu32] verifier_and.skel.h
GEN-SKEL [test_progs-cpuv4] verifier_and.skel.h
TEST-OBJ [test_progs] verifier.test.o
BINARY test_progs
Note that multiple binaries are built.
next prev parent reply other threads:[~2024-09-17 4:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-16 19:59 [PATCH bpf-next 1/2] selftests/bpf: remove test_skb_cgroup_id.sh from TEST_PROGS Ihor Solodrai
2024-09-16 19:59 ` [PATCH bpf-next 2/2] selftests/bpf: set vpath in Makefile to search for skels Ihor Solodrai
2024-09-16 20:11 ` Ihor Solodrai
2024-09-17 4:00 ` Eduard Zingerman [this message]
2024-09-17 15:04 ` Ihor Solodrai
2024-09-17 17:53 ` Eduard Zingerman
2024-09-17 8:53 ` Björn Töpel
2024-09-17 8:50 ` [PATCH bpf-next 1/2] selftests/bpf: remove test_skb_cgroup_id.sh from TEST_PROGS Björn Töpel
2024-09-24 6:20 ` patchwork-bot+netdevbpf
2024-11-04 16:31 ` Matthieu Baerts
2024-11-06 22:06 ` Andrii Nakryiko
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=dbf5eb3056eabbd44775d526a64b53e1a43b9f59.camel@gmail.com \
--to=eddyz87@gmail.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bjorn@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=ihor.solodrai@pm.me \
--cc=mykolal@fb.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