Thread (16 messages) 16 messages, 3 authors, 2020-09-29

Re: [PATCH bpf-next v3 3/6] selftests/bpf: ksyms_btf to test typed ksyms

From: Andrii Nakryiko <hidden>
Date: 2020-09-21 17:57:14
Also in: bpf, linux-kselftest, lkml

On Wed, Sep 16, 2020 at 3:39 PM Hao Luo [off-list ref] wrote:
Selftests for typed ksyms. Tests two types of ksyms: one is a struct,
the other is a plain int. This tests two paths in the kernel. Struct
ksyms will be converted into PTR_TO_BTF_ID by the verifier while int
typed ksyms will be converted into PTR_TO_MEM.

Signed-off-by: Hao Luo <redacted>
---
LGTM.

Acked-by: Andrii Nakryiko <redacted>
 .../testing/selftests/bpf/prog_tests/ksyms.c  | 38 ++++------
 .../selftests/bpf/prog_tests/ksyms_btf.c      | 70 +++++++++++++++++++
 .../selftests/bpf/progs/test_ksyms_btf.c      | 23 ++++++
 tools/testing/selftests/bpf/trace_helpers.c   | 27 +++++++
 tools/testing/selftests/bpf/trace_helpers.h   |  4 ++
 5 files changed, 137 insertions(+), 25 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/ksyms_btf.c
 create mode 100644 tools/testing/selftests/bpf/progs/test_ksyms_btf.c
[...]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help