Home
last modified time | relevance | path

Searched refs:BPF_CORE_READ (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.4/tools/testing/selftests/bpf/progs/
Dtest_core_reloc_ints.c32 if (BPF_CORE_READ(&out->u8_field, &in->u8_field) || in test_core_ints()
33 BPF_CORE_READ(&out->s8_field, &in->s8_field) || in test_core_ints()
34 BPF_CORE_READ(&out->u16_field, &in->u16_field) || in test_core_ints()
35 BPF_CORE_READ(&out->s16_field, &in->s16_field) || in test_core_ints()
36 BPF_CORE_READ(&out->u32_field, &in->u32_field) || in test_core_ints()
37 BPF_CORE_READ(&out->s32_field, &in->s32_field) || in test_core_ints()
38 BPF_CORE_READ(&out->u64_field, &in->u64_field) || in test_core_ints()
39 BPF_CORE_READ(&out->s64_field, &in->s64_field)) in test_core_ints()
Dtest_core_reloc_mods.c50 if (BPF_CORE_READ(&out->a, &in->a) || in test_core_mods()
51 BPF_CORE_READ(&out->b, &in->b) || in test_core_mods()
52 BPF_CORE_READ(&out->c, &in->c) || in test_core_mods()
53 BPF_CORE_READ(&out->d, &in->d) || in test_core_mods()
54 BPF_CORE_READ(&out->e, &in->e[2]) || in test_core_mods()
55 BPF_CORE_READ(&out->f, &in->f[1]) || in test_core_mods()
56 BPF_CORE_READ(&out->g, &in->g.x) || in test_core_mods()
57 BPF_CORE_READ(&out->h, &in->h.y)) in test_core_mods()
Dtest_core_reloc_primitives.c34 if (BPF_CORE_READ(&out->a, &in->a) || in test_core_primitives()
35 BPF_CORE_READ(&out->b, &in->b) || in test_core_primitives()
36 BPF_CORE_READ(&out->c, &in->c) || in test_core_primitives()
37 BPF_CORE_READ(&out->d, &in->d) || in test_core_primitives()
38 BPF_CORE_READ(&out->f, &in->f)) in test_core_primitives()
Dtest_core_reloc_arrays.c41 if (BPF_CORE_READ(&out->a2, &in->a[2])) in test_core_arrays()
44 if (BPF_CORE_READ(&out->b123, &in->b[1][2][3])) in test_core_arrays()
47 if (BPF_CORE_READ(&out->c1c, &in->c[1].c)) in test_core_arrays()
50 if (BPF_CORE_READ(&out->d00d, &in->d[0][0].d)) in test_core_arrays()
Dtest_core_reloc_flavors.c51 if (BPF_CORE_READ(&out->a, &in_weird->a)) in test_core_flavors()
54 if (BPF_CORE_READ(&out->b, &in_rev->b)) in test_core_flavors()
57 if (BPF_CORE_READ(&out->c, &in_orig->c)) in test_core_flavors()
Dtest_core_reloc_misc.c44 if (BPF_CORE_READ(&out->a, &in_a->a1) || /* accessor: 0:0 */ in test_core_misc()
45 BPF_CORE_READ(&out->b, &in_b->b1)) /* accessor: 0:0 */ in test_core_misc()
52 if (BPF_CORE_READ(&out->c, &in_ext[2])) /* accessor: 2 */ in test_core_misc()
Dtest_core_reloc_kernel.c27 if (BPF_CORE_READ(&pid, &task->pid) || in test_core_kernel()
28 BPF_CORE_READ(&tgid, &task->tgid)) in test_core_kernel()
Dtest_core_reloc_nesting.c39 if (BPF_CORE_READ(&out->a.a.a, &in->a.a.a)) in test_core_nesting()
41 if (BPF_CORE_READ(&out->b.b.b, &in->b.b.b)) in test_core_nesting()
Dtest_core_reloc_ptr_as_arr.c25 if (BPF_CORE_READ(&out->a, &in[2].a)) in test_core_ptr_as_arr()
/Linux-v5.4/tools/testing/selftests/bpf/
Dbpf_helpers.h531 #define BPF_CORE_READ(dst, src) \ macro