Home
last modified time | relevance | path

Searched refs:btf_enum (Results 1 – 16 of 16) sorted by relevance

/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/
H A Dnetif_receive_skb.c189 TEST_BTF_C(str, struct btf_enum, 0, in BPF_PROG()
191 TEST_BTF(str, struct btf_enum, BTF_F_NONAME, "{3,-1,}", in BPF_PROG()
193 TEST_BTF(str, struct btf_enum, BTF_F_NONAME, "{-1,}", in BPF_PROG()
195 TEST_BTF(str, struct btf_enum, BTF_F_NONAME|BTF_F_ZERO, "{0,-1,}", in BPF_PROG()
198 TEST_BTF(str, struct btf_enum, 0, "(struct btf_enum){}", in BPF_PROG()
200 TEST_BTF(str, struct btf_enum, BTF_F_NONAME, "{}", in BPF_PROG()
202 TEST_BTF(str, struct btf_enum, BTF_F_ZERO, in BPF_PROG()
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_write.c12 const struct btf_enum *v; in test_btf_write()
153 v = btf_enum(t) + 0; in test_btf_write()
156 v = btf_enum(t) + 1; in test_btf_write()
H A Dcore_reloc.c372 (name = btf__name_by_offset(local_btf, btf_enum(t)[0].name_off)) && in setup_type_id_case_local()
H A Dbtf.c6616 return base_size + vlen * sizeof(struct btf_enum); in btf_type_size()
/OK3568_Linux_fs/kernel/tools/lib/bpf/
H A Dbtf.h309 static inline struct btf_enum *btf_enum(const struct btf_type *t) in btf_enum() function
311 return (struct btf_enum *)(t + 1); in btf_enum()
H A Dbtf.c270 return base_size + vlen * sizeof(struct btf_enum); in btf_type_size()
301 struct btf_enum *e; in btf_bswap_type_rest()
318 for (i = 0, e = btf_enum(t); i < vlen; i++, e++) { in btf_bswap_type_rest()
1920 struct btf_enum *v; in btf__add_enum_value()
1940 sz = sizeof(struct btf_enum); in btf__add_enum_value()
3040 struct btf_enum *m = btf_enum(t); in btf_for_each_str_off()
3344 const struct btf_enum *m1, *m2; in btf_equal_enum()
3352 m1 = btf_enum(t1); in btf_equal_enum()
3353 m2 = btf_enum(t2); in btf_equal_enum()
H A Dbtf_dump.c948 const struct btf_enum *v = btf_enum(t); in btf_dump_emit_enum_def()
H A Dlibbpf.c4568 acc->name = btf__name_by_offset(btf, btf_enum(t)[access_idx].name_off); in bpf_core_parse_spec()
5016 const struct btf_enum *e; in bpf_core_spec_match()
5026 for (i = 0, e = btf_enum(targ_type); i < btf_vlen(targ_type); i++, e++) { in bpf_core_spec_match()
5267 const struct btf_enum *e; in bpf_core_calc_enumval_relo()
5277 e = btf_enum(t) + spec->spec[0].idx; in bpf_core_calc_enumval_relo()
5613 const struct btf_enum *e; in bpf_core_dump_spec()
5629 e = btf_enum(t) + spec->raw_spec[0]; in bpf_core_dump_spec()
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Dbtf.h90 struct btf_enum { struct
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dbtf.h90 struct btf_enum { struct
/OK3568_Linux_fs/kernel/tools/include/uapi/linux/
H A Dbtf.h98 struct btf_enum { struct
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dbtf.h98 struct btf_enum { struct
/OK3568_Linux_fs/kernel/tools/bpf/bpftool/
H A Dbtf_dumper.c141 const struct btf_enum *enums = btf_enum(t); in btf_dumper_enum()
H A Dbtf.c209 const struct btf_enum *v = (const void *)(t + 1); in dump_btf_type()
/OK3568_Linux_fs/kernel/Documentation/bpf/
H A Dbtf.rst286 ``btf_type`` is followed by ``info.vlen`` number of ``struct btf_enum``.::
288 struct btf_enum {
293 The ``btf_enum`` encoding:
/OK3568_Linux_fs/kernel/kernel/bpf/
H A Dbtf.c586 static const struct btf_enum *btf_type_enum(const struct btf_type *t) in btf_type_enum()
588 return (const struct btf_enum *)(t + 1); in btf_type_enum()
3170 const struct btf_enum *enums = btf_type_enum(t); in btf_enum_check_meta()
3238 const struct btf_enum *enums = btf_type_enum(t); in btf_enum_show()