Home
last modified time | relevance | path

Searched refs:CORE_READ (Results 1 – 9 of 9) sorted by relevance

/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_core_reloc_mods.c46 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src) macro
48 #define CORE_READ(dst, src) ({ \ macro
62 if (CORE_READ(&out->a, &in->a) || in test_core_mods()
63 CORE_READ(&out->b, &in->b) || in test_core_mods()
64 CORE_READ(&out->c, &in->c) || in test_core_mods()
65 CORE_READ(&out->d, &in->d) || in test_core_mods()
66 CORE_READ(&out->e, &in->e[2]) || in test_core_mods()
67 CORE_READ(&out->f, &in->f[1]) || in test_core_mods()
68 CORE_READ(&out->g, &in->g.x) || in test_core_mods()
69 CORE_READ(&out->h, &in->h.y)) in test_core_mods()
Dtest_core_reloc_ints.c27 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src) macro
35 if (CORE_READ(&out->u8_field, &in->u8_field) || in test_core_ints()
36 CORE_READ(&out->s8_field, &in->s8_field) || in test_core_ints()
37 CORE_READ(&out->u16_field, &in->u16_field) || in test_core_ints()
38 CORE_READ(&out->s16_field, &in->s16_field) || in test_core_ints()
39 CORE_READ(&out->u32_field, &in->u32_field) || in test_core_ints()
40 CORE_READ(&out->s32_field, &in->s32_field) || in test_core_ints()
41 CORE_READ(&out->u64_field, &in->u64_field) || in test_core_ints()
42 CORE_READ(&out->s64_field, &in->s64_field)) in test_core_ints()
Dtest_core_reloc_primitives.c29 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src) macro
37 if (CORE_READ(&out->a, &in->a) || in test_core_primitives()
38 CORE_READ(&out->b, &in->b) || in test_core_primitives()
39 CORE_READ(&out->c, &in->c) || in test_core_primitives()
40 CORE_READ(&out->d, &in->d) || in test_core_primitives()
41 CORE_READ(&out->f, &in->f)) in test_core_primitives()
Dtest_core_reloc_arrays.c37 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src) macro
45 if (CORE_READ(&out->a2, &in->a[2])) in test_core_arrays()
47 if (CORE_READ(&out->b123, &in->b[1][2][3])) in test_core_arrays()
49 if (CORE_READ(&out->c1c, &in->c[1].c)) in test_core_arrays()
51 if (CORE_READ(&out->d00d, &in->d[0][0].d)) in test_core_arrays()
53 if (CORE_READ(&out->f01c, &in->f[0][1].c)) in test_core_arrays()
Dtest_core_reloc_flavors.c43 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src) macro
54 if (CORE_READ(&out->a, &in_weird->a)) in test_core_flavors()
57 if (CORE_READ(&out->b, &in_rev->b)) in test_core_flavors()
60 if (CORE_READ(&out->c, &in_orig->c)) in test_core_flavors()
Dtest_core_reloc_misc.c36 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src) macro
47 if (CORE_READ(&out->a, &in_a->a1) || /* accessor: 0:0 */ in test_core_misc()
48 CORE_READ(&out->b, &in_b->b1)) /* accessor: 0:0 */ in test_core_misc()
55 if (CORE_READ(&out->c, &in_ext[2])) /* accessor: 2 */ in test_core_misc()
Dtest_core_reloc_nesting.c34 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src) macro
42 if (CORE_READ(&out->a.a.a, &in->a.a.a)) in test_core_nesting()
44 if (CORE_READ(&out->b.b.b, &in->b.b.b)) in test_core_nesting()
Dtest_core_reloc_ptr_as_arr.c20 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src) macro
28 if (CORE_READ(&out->a, &in[2].a)) in test_core_ptr_as_arr()
Dtest_core_reloc_kernel.c43 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src) macro
62 if (CORE_READ(&pid, &task->pid) || in test_core_kernel()
63 CORE_READ(&tgid, &task->tgid)) in test_core_kernel()