Re: [PATCH bpf-next v2 4/5] selftest/bpf: move utility function to tests header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jan 24, 2021 at 11:54 AM Andrei Matei <andreimatei1@xxxxxxxxx> wrote:
>
> get_base_addr is generally useful for tests attaching uprobes. This
> patch moves it from one particular test to test_progs.{h,c}. The
> function will be used by a second test in the next patch.
>
> Signed-off-by: Andrei Matei <andreimatei1@xxxxxxxxx>
> ---

trace_helpers.{c,h} seem more appropriate as a destination

>  .../selftests/bpf/prog_tests/attach_probe.c   | 21 ----------------
>  tools/testing/selftests/bpf/test_progs.c      | 25 +++++++++++++++++++
>  tools/testing/selftests/bpf/test_progs.h      |  1 +
>  3 files changed, 26 insertions(+), 21 deletions(-)
>
> diff --git a/tools/testing/selftests/bpf/prog_tests/attach_probe.c b/tools/testing/selftests/bpf/prog_tests/attach_probe.c
> index a0ee87c8e1ea..3bda8acbbafb 100644
> --- a/tools/testing/selftests/bpf/prog_tests/attach_probe.c
> +++ b/tools/testing/selftests/bpf/prog_tests/attach_probe.c
> @@ -2,27 +2,6 @@
>  #include <test_progs.h>
>  #include "test_attach_probe.skel.h"
>

[...]



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux