diff options
author | Alexei Starovoitov <[email protected]> | 2023-03-19 13:30:14 -0700 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2023-03-20 09:26:41 -0700 |
commit | bb4a6a9237293346cf1b3b7bc4ff4dfc1977a103 (patch) | |
tree | 78e9e1ec8bb13d542d52067d35418e16181c3cc4 | |
parent | a506d6ce1dd184051037dc9d26c3eb187c9fe625 (diff) |
selftest/bpf: Add a test case for ld_imm64 copy logic.
Add a test case to exercise {btf_id, btf_obj_fd} copy logic between ld_imm64 insns.
Signed-off-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
-rw-r--r-- | tools/testing/selftests/bpf/progs/test_ksyms_weak.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/progs/test_ksyms_weak.c b/tools/testing/selftests/bpf/progs/test_ksyms_weak.c index 5f8379aadb29..7003eef0c192 100644 --- a/tools/testing/selftests/bpf/progs/test_ksyms_weak.c +++ b/tools/testing/selftests/bpf/progs/test_ksyms_weak.c @@ -37,7 +37,7 @@ int pass_handler(const void *ctx) /* tests existing symbols. */ rq = (struct rq *)bpf_per_cpu_ptr(&runqueues, 0); - if (rq) + if (rq && bpf_ksym_exists(&runqueues)) out__existing_typed = rq->cpu; out__existing_typeless = (__u64)&bpf_prog_active; |