[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAEf4BzYNO9bS98VPm4xhB3VRN53zWMmfAhE11bqeq2oz-NcfkQ@mail.gmail.com>
Date: Sun, 29 Mar 2020 13:13:52 -0700
From: Andrii Nakryiko <andrii.nakryiko@...il.com>
To: Toke Høiland-Jørgensen <toke@...hat.com>
Cc: Daniel Borkmann <daniel@...earbox.net>,
Alexei Starovoitov <ast@...com>, bpf <bpf@...r.kernel.org>,
Networking <netdev@...r.kernel.org>
Subject: Re: [PATCH v4 2/2] selftests: Add test for overriding global data
value before load
On Sun, Mar 29, 2020 at 6:23 AM Toke Høiland-Jørgensen <toke@...hat.com> wrote:
>
> This adds a test to exercise the new bpf_map__set_initial_value() function.
> The test simply overrides the global data section with all zeroes, and
> checks that the new value makes it into the kernel map on load.
>
> Signed-off-by: Toke Høiland-Jørgensen <toke@...hat.com>
> ---
I guess given you don't attach or run any BPF program, it's fine to
reuse test_global_data.o for this.
Acked-by: Andrii Nakryiko <andriin@...com>
> .../bpf/prog_tests/global_data_init.c | 61 +++++++++++++++++++
> .../selftests/bpf/progs/test_global_data.c | 2 +-
> 2 files changed, 62 insertions(+), 1 deletion(-)
> create mode 100644 tools/testing/selftests/bpf/prog_tests/global_data_init.c
>
[...]
Powered by blists - more mailing lists