Home
last modified time | relevance | path

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

/Linux-v5.10/tools/testing/selftests/bpf/progs/
Dnetif_receive_skb.c182 TEST_BTF_C(str, struct btf_enum, 0, in BPF_PROG()
184 TEST_BTF(str, struct btf_enum, BTF_F_NONAME, "{3,-1,}", in BPF_PROG()
186 TEST_BTF(str, struct btf_enum, BTF_F_NONAME, "{-1,}", in BPF_PROG()
188 TEST_BTF(str, struct btf_enum, BTF_F_NONAME|BTF_F_ZERO, "{0,-1,}", in BPF_PROG()
191 TEST_BTF(str, struct btf_enum, 0, "(struct btf_enum){}", in BPF_PROG()
193 TEST_BTF(str, struct btf_enum, BTF_F_NONAME, "{}", in BPF_PROG()
195 TEST_BTF(str, struct btf_enum, BTF_F_ZERO, in BPF_PROG()
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/
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()
Dcore_reloc.c377 (name = btf__name_by_offset(local_btf, btf_enum(t)[0].name_off)) && in setup_type_id_case_local()
Dbtf.c6616 return base_size + vlen * sizeof(struct btf_enum); in btf_type_size()
/Linux-v5.10/tools/lib/bpf/
Dbtf.h308 static inline struct btf_enum *btf_enum(const struct btf_type *t) in btf_enum() function
310 return (struct btf_enum *)(t + 1); in btf_enum()
Dbtf.c273 return base_size + vlen * sizeof(struct btf_enum); in btf_type_size()
304 struct btf_enum *e; in btf_bswap_type_rest()
321 for (i = 0, e = btf_enum(t); i < vlen; i++, e++) { in btf_bswap_type_rest()
1923 struct btf_enum *v; in btf__add_enum_value()
1943 sz = sizeof(struct btf_enum); in btf__add_enum_value()
3043 struct btf_enum *m = btf_enum(t); in btf_for_each_str_off()
3347 const struct btf_enum *m1, *m2; in btf_equal_enum()
3355 m1 = btf_enum(t1); in btf_equal_enum()
3356 m2 = btf_enum(t2); in btf_equal_enum()
Dbtf_dump.c948 const struct btf_enum *v = btf_enum(t); in btf_dump_emit_enum_def()
Dlibbpf.c4509 acc->name = btf__name_by_offset(btf, btf_enum(t)[access_idx].name_off); in bpf_core_parse_spec()
4957 const struct btf_enum *e; in bpf_core_spec_match()
4967 for (i = 0, e = btf_enum(targ_type); i < btf_vlen(targ_type); i++, e++) { in bpf_core_spec_match()
5208 const struct btf_enum *e; in bpf_core_calc_enumval_relo()
5218 e = btf_enum(t) + spec->spec[0].idx; in bpf_core_calc_enumval_relo()
5554 const struct btf_enum *e; in bpf_core_dump_spec()
5570 e = btf_enum(t) + spec->raw_spec[0]; in bpf_core_dump_spec()
/Linux-v5.10/tools/include/uapi/linux/
Dbtf.h98 struct btf_enum { struct
/Linux-v5.10/include/uapi/linux/
Dbtf.h98 struct btf_enum { struct
/Linux-v5.10/tools/bpf/bpftool/
Dbtf_dumper.c141 const struct btf_enum *enums = btf_enum(t); in btf_dumper_enum()
Dbtf.c209 const struct btf_enum *v = (const void *)(t + 1); in dump_btf_type()
/Linux-v5.10/Documentation/bpf/
Dbtf.rst286 ``btf_type`` is followed by ``info.vlen`` number of ``struct btf_enum``.::
288 struct btf_enum {
293 The ``btf_enum`` encoding:
/Linux-v5.10/kernel/bpf/
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()