Commit bb4a6a92 authored by Alexei Starovoitov's avatar Alexei Starovoitov Committed by Andrii Nakryiko

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: default avatarAlexei Starovoitov <ast@kernel.org>
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20230319203014.55866-2-alexei.starovoitov@gmail.com
parent a506d6ce
...@@ -37,7 +37,7 @@ int pass_handler(const void *ctx) ...@@ -37,7 +37,7 @@ int pass_handler(const void *ctx)
/* tests existing symbols. */ /* tests existing symbols. */
rq = (struct rq *)bpf_per_cpu_ptr(&runqueues, 0); rq = (struct rq *)bpf_per_cpu_ptr(&runqueues, 0);
if (rq) if (rq && bpf_ksym_exists(&runqueues))
out__existing_typed = rq->cpu; out__existing_typed = rq->cpu;
out__existing_typeless = (__u64)&bpf_prog_active; out__existing_typeless = (__u64)&bpf_prog_active;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment