All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] selftests/bpf: Copy runqslower to OUTPUT directory
@ 2020-04-28 17:37 Veronika Kabatova
  2020-04-28 18:57 ` Andrii Nakryiko
  0 siblings, 1 reply; 5+ messages in thread
From: Veronika Kabatova @ 2020-04-28 17:37 UTC (permalink / raw)
  To: bpf; +Cc: andriin, brouer, Veronika Kabatova

$(OUTPUT)/runqslower makefile target doesn't actually create runqslower
binary in the $(OUTPUT) directory. As lib.mk expects all
TEST_GEN_PROGS_EXTENDED (which runqslower is a part of) to be present in
the OUTPUT directory, this results in an error when running e.g. `make
install`:

rsync: link_stat "tools/testing/selftests/bpf/runqslower" failed: No
       such file or directory (2)

Copy the binary into the OUTPUT directory after building it to fix the
error.

Fixes: 3a0d3092a4ed ("selftests/bpf: Build runqslower from selftests")
Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
---
 tools/testing/selftests/bpf/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile
index 7729892e0b04..4e654d41c7af 100644
--- a/tools/testing/selftests/bpf/Makefile
+++ b/tools/testing/selftests/bpf/Makefile
@@ -141,7 +141,8 @@ VMLINUX_BTF := $(abspath $(firstword $(wildcard $(VMLINUX_BTF_PATHS))))
 $(OUTPUT)/runqslower: $(BPFOBJ)
 	$(Q)$(MAKE) $(submake_extras) -C $(TOOLSDIR)/bpf/runqslower	\
 		    OUTPUT=$(SCRATCH_DIR)/ VMLINUX_BTF=$(VMLINUX_BTF)   \
-		    BPFOBJ=$(BPFOBJ) BPF_INCLUDE=$(INCLUDE_DIR)
+		    BPFOBJ=$(BPFOBJ) BPF_INCLUDE=$(INCLUDE_DIR) &&	\
+		    cp $(SCRATCH_DIR)/runqslower $@
 
 $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED): $(OUTPUT)/test_stub.o $(BPFOBJ)
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] selftests/bpf: Copy runqslower to OUTPUT directory
  2020-04-28 17:37 [PATCH v2] selftests/bpf: Copy runqslower to OUTPUT directory Veronika Kabatova
@ 2020-04-28 18:57 ` Andrii Nakryiko
  2020-04-28 19:40   ` Daniel Borkmann
  0 siblings, 1 reply; 5+ messages in thread
From: Andrii Nakryiko @ 2020-04-28 18:57 UTC (permalink / raw)
  To: Veronika Kabatova; +Cc: bpf, Andrii Nakryiko, Jesper Dangaard Brouer

On Tue, Apr 28, 2020 at 10:38 AM Veronika Kabatova <vkabatov@redhat.com> wrote:
>
> $(OUTPUT)/runqslower makefile target doesn't actually create runqslower
> binary in the $(OUTPUT) directory. As lib.mk expects all
> TEST_GEN_PROGS_EXTENDED (which runqslower is a part of) to be present in
> the OUTPUT directory, this results in an error when running e.g. `make
> install`:
>
> rsync: link_stat "tools/testing/selftests/bpf/runqslower" failed: No
>        such file or directory (2)
>
> Copy the binary into the OUTPUT directory after building it to fix the
> error.
>
> Fixes: 3a0d3092a4ed ("selftests/bpf: Build runqslower from selftests")
> Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
> ---

Looks good, thanks.

Acked-by: Andrii Nakryiko <andriin@fb.com>

>  tools/testing/selftests/bpf/Makefile | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile
> index 7729892e0b04..4e654d41c7af 100644
> --- a/tools/testing/selftests/bpf/Makefile
> +++ b/tools/testing/selftests/bpf/Makefile
> @@ -141,7 +141,8 @@ VMLINUX_BTF := $(abspath $(firstword $(wildcard $(VMLINUX_BTF_PATHS))))
>  $(OUTPUT)/runqslower: $(BPFOBJ)
>         $(Q)$(MAKE) $(submake_extras) -C $(TOOLSDIR)/bpf/runqslower     \
>                     OUTPUT=$(SCRATCH_DIR)/ VMLINUX_BTF=$(VMLINUX_BTF)   \
> -                   BPFOBJ=$(BPFOBJ) BPF_INCLUDE=$(INCLUDE_DIR)
> +                   BPFOBJ=$(BPFOBJ) BPF_INCLUDE=$(INCLUDE_DIR) &&      \
> +                   cp $(SCRATCH_DIR)/runqslower $@
>
>  $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED): $(OUTPUT)/test_stub.o $(BPFOBJ)
>
> --
> 2.25.1
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] selftests/bpf: Copy runqslower to OUTPUT directory
  2020-04-28 18:57 ` Andrii Nakryiko
@ 2020-04-28 19:40   ` Daniel Borkmann
  2020-04-29  0:15     ` Andrii Nakryiko
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Borkmann @ 2020-04-28 19:40 UTC (permalink / raw)
  To: Andrii Nakryiko, Veronika Kabatova
  Cc: bpf, Andrii Nakryiko, Jesper Dangaard Brouer

On 4/28/20 8:57 PM, Andrii Nakryiko wrote:
> On Tue, Apr 28, 2020 at 10:38 AM Veronika Kabatova <vkabatov@redhat.com> wrote:
>>
>> $(OUTPUT)/runqslower makefile target doesn't actually create runqslower
>> binary in the $(OUTPUT) directory. As lib.mk expects all
>> TEST_GEN_PROGS_EXTENDED (which runqslower is a part of) to be present in
>> the OUTPUT directory, this results in an error when running e.g. `make
>> install`:
>>
>> rsync: link_stat "tools/testing/selftests/bpf/runqslower" failed: No
>>         such file or directory (2)
>>
>> Copy the binary into the OUTPUT directory after building it to fix the
>> error.
>>
>> Fixes: 3a0d3092a4ed ("selftests/bpf: Build runqslower from selftests")
>> Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
>> ---
> 
> Acked-by: Andrii Nakryiko <andriin@fb.com>

Applied, thanks!

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] selftests/bpf: Copy runqslower to OUTPUT directory
  2020-04-28 19:40   ` Daniel Borkmann
@ 2020-04-29  0:15     ` Andrii Nakryiko
  2020-04-29  1:25       ` Andrii Nakryiko
  0 siblings, 1 reply; 5+ messages in thread
From: Andrii Nakryiko @ 2020-04-29  0:15 UTC (permalink / raw)
  To: Daniel Borkmann
  Cc: Veronika Kabatova, bpf, Andrii Nakryiko, Jesper Dangaard Brouer

On Tue, Apr 28, 2020 at 12:40 PM Daniel Borkmann <daniel@iogearbox.net> wrote:
>
> On 4/28/20 8:57 PM, Andrii Nakryiko wrote:
> > On Tue, Apr 28, 2020 at 10:38 AM Veronika Kabatova <vkabatov@redhat.com> wrote:
> >>
> >> $(OUTPUT)/runqslower makefile target doesn't actually create runqslower
> >> binary in the $(OUTPUT) directory. As lib.mk expects all
> >> TEST_GEN_PROGS_EXTENDED (which runqslower is a part of) to be present in
> >> the OUTPUT directory, this results in an error when running e.g. `make
> >> install`:
> >>
> >> rsync: link_stat "tools/testing/selftests/bpf/runqslower" failed: No
> >>         such file or directory (2)
> >>
> >> Copy the binary into the OUTPUT directory after building it to fix the
> >> error.
> >>
> >> Fixes: 3a0d3092a4ed ("selftests/bpf: Build runqslower from selftests")
> >> Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
> >> ---
> >
> > Acked-by: Andrii Nakryiko <andriin@fb.com>
>
> Applied, thanks!

Veronika,

This change leaves runqslower laying around in selftests/bpf directory
and available to be committed into git. Can you please follow up with
adding runqslower to .gitignore? Thanks!

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] selftests/bpf: Copy runqslower to OUTPUT directory
  2020-04-29  0:15     ` Andrii Nakryiko
@ 2020-04-29  1:25       ` Andrii Nakryiko
  0 siblings, 0 replies; 5+ messages in thread
From: Andrii Nakryiko @ 2020-04-29  1:25 UTC (permalink / raw)
  To: Daniel Borkmann
  Cc: Veronika Kabatova, bpf, Andrii Nakryiko, Jesper Dangaard Brouer

On Tue, Apr 28, 2020 at 5:15 PM Andrii Nakryiko
<andrii.nakryiko@gmail.com> wrote:
>
> On Tue, Apr 28, 2020 at 12:40 PM Daniel Borkmann <daniel@iogearbox.net> wrote:
> >
> > On 4/28/20 8:57 PM, Andrii Nakryiko wrote:
> > > On Tue, Apr 28, 2020 at 10:38 AM Veronika Kabatova <vkabatov@redhat.com> wrote:
> > >>
> > >> $(OUTPUT)/runqslower makefile target doesn't actually create runqslower
> > >> binary in the $(OUTPUT) directory. As lib.mk expects all
> > >> TEST_GEN_PROGS_EXTENDED (which runqslower is a part of) to be present in
> > >> the OUTPUT directory, this results in an error when running e.g. `make
> > >> install`:
> > >>
> > >> rsync: link_stat "tools/testing/selftests/bpf/runqslower" failed: No
> > >>         such file or directory (2)
> > >>
> > >> Copy the binary into the OUTPUT directory after building it to fix the
> > >> error.
> > >>
> > >> Fixes: 3a0d3092a4ed ("selftests/bpf: Build runqslower from selftests")
> > >> Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
> > >> ---
> > >
> > > Acked-by: Andrii Nakryiko <andriin@fb.com>
> >
> > Applied, thanks!
>
> Veronika,
>
> This change leaves runqslower laying around in selftests/bpf directory
> and available to be committed into git. Can you please follow up with
> adding runqslower to .gitignore? Thanks!

Never mind anymore, sent fix as part of ASAN fixes patch set.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-04-29  1:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-28 17:37 [PATCH v2] selftests/bpf: Copy runqslower to OUTPUT directory Veronika Kabatova
2020-04-28 18:57 ` Andrii Nakryiko
2020-04-28 19:40   ` Daniel Borkmann
2020-04-29  0:15     ` Andrii Nakryiko
2020-04-29  1:25       ` Andrii Nakryiko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.