Re: [PATCH bpf-next 2/2] bpf: selftests: Add bpf_task_pt_regs() selftest

From: Andrii Nakryiko
Date: Thu Aug 19 2021 - 16:29:08 EST


On Wed, Aug 18, 2021 at 4:43 PM Daniel Xu <dxu@xxxxxxxxx> wrote:
>
> This test retrieves the uprobe's pt_regs in two different ways and
> compares the contents in an arch-agnostic way.
>
> Signed-off-by: Daniel Xu <dxu@xxxxxxxxx>
> ---

Please use ASSERT_xxx() macros for new tests.

> .../selftests/bpf/prog_tests/task_pt_regs.c | 50 +++++++++++++++++++
> .../selftests/bpf/progs/test_task_pt_regs.c | 29 +++++++++++
> 2 files changed, 79 insertions(+)
> create mode 100644 tools/testing/selftests/bpf/prog_tests/task_pt_regs.c
> create mode 100644 tools/testing/selftests/bpf/progs/test_task_pt_regs.c
>

[...]