/linux-5.19.10/tools/testing/selftests/bpf/progs/ |
D | netif_receive_skb.c | 189 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()
|
/linux-5.19.10/tools/testing/selftests/bpf/prog_tests/ |
D | libbpf_probes.c | 11 const struct btf_enum *e; in test_libbpf_probe_prog_types() 26 for (e = btf_enum(t), i = 0, n = btf_vlen(t); i < n; e++, i++) { in test_libbpf_probe_prog_types() 49 const struct btf_enum *e; in test_libbpf_probe_map_types() 64 for (e = btf_enum(t), i = 0, n = btf_vlen(t); i < n; e++, i++) { in test_libbpf_probe_map_types()
|
D | btf_dump.c | 582 TEST_BTF_DUMP_DATA_C(btf, d, "struct", str, struct btf_enum, BTF_F_COMPACT, in test_btf_dump_struct_data() 584 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, in test_btf_dump_struct_data() 588 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, 0, in test_btf_dump_struct_data() 594 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, in test_btf_dump_struct_data() 598 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, in test_btf_dump_struct_data() 603 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, BTF_F_COMPACT, in test_btf_dump_struct_data() 606 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, in test_btf_dump_struct_data() 610 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, 0, in test_btf_dump_struct_data() 614 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, in test_btf_dump_struct_data() 618 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, in test_btf_dump_struct_data()
|
D | btf_write.c | 12 const struct btf_enum *v; in gen_btf() 167 v = btf_enum(t) + 0; in gen_btf() 170 v = btf_enum(t) + 1; in gen_btf()
|
D | core_reloc.c | 437 (name = btf__name_by_offset(local_btf, btf_enum(t)[0].name_off)) && in setup_type_id_case_local()
|
D | btf.c | 7519 return base_size + vlen * sizeof(struct btf_enum); in btf_type_size()
|
/linux-5.19.10/include/linux/ |
D | btf.h | 330 static inline struct btf_enum *btf_enum(const struct btf_type *t) in btf_enum() function 332 return (struct btf_enum *)(t + 1); in btf_enum()
|
/linux-5.19.10/tools/lib/bpf/ |
D | relo_core.c | 238 acc->name = btf__name_by_offset(btf, btf_enum(t)[access_idx].name_off); in bpf_core_parse_spec() 497 const struct btf_enum *e; in bpf_core_spec_match() 507 for (i = 0, e = btf_enum(targ_type); i < btf_vlen(targ_type); i++, e++) { in bpf_core_spec_match() 757 const struct btf_enum *e; in bpf_core_calc_enumval_relo() 767 e = btf_enum(t) + spec->spec[0].idx; in bpf_core_calc_enumval_relo() 1060 const struct btf_enum *e; in bpf_core_format_spec() 1089 e = btf_enum(t) + spec->raw_spec[0]; in bpf_core_format_spec()
|
D | btf.h | 547 static inline struct btf_enum *btf_enum(const struct btf_type *t) in btf_enum() function 549 return (struct btf_enum *)(t + 1); in btf_enum()
|
D | btf.c | 307 return base_size + vlen * sizeof(struct btf_enum); in btf_type_size() 340 struct btf_enum *e; in btf_bswap_type_rest() 359 for (i = 0, e = btf_enum(t); i < vlen; i++, e++) { in btf_bswap_type_rest() 2173 struct btf_enum *v; in btf__add_enum_value() 2193 sz = sizeof(struct btf_enum); in btf__add_enum_value() 3488 const struct btf_enum *m1, *m2; in btf_equal_enum() 3496 m1 = btf_enum(t1); in btf_equal_enum() 3497 m2 = btf_enum(t2); in btf_equal_enum() 4805 struct btf_enum *m = btf_enum(t); in btf_type_visit_str_offs()
|
D | btf_dump.c | 996 const struct btf_enum *v = btf_enum(t); in btf_dump_emit_enum_def() 2027 const struct btf_enum *e; in btf_dump_enum_data() 2035 for (i = 0, e = btf_enum(t); i < btf_vlen(t); i++, e++) { in btf_dump_enum_data()
|
/linux-5.19.10/tools/testing/selftests/bpf/ |
D | btf_helpers.c | 141 const struct btf_enum *v = btf_enum(t); in fprintf_btf_type_raw()
|
/linux-5.19.10/tools/include/uapi/linux/ |
D | btf.h | 104 struct btf_enum { struct
|
/linux-5.19.10/include/uapi/linux/ |
D | btf.h | 104 struct btf_enum { struct
|
/linux-5.19.10/tools/bpf/bpftool/ |
D | btf_dumper.c | 151 const struct btf_enum *enums = btf_enum(t); in btf_dumper_enum()
|
D | btf.c | 213 const struct btf_enum *v = (const void *)(t + 1); in dump_btf_type()
|
/linux-5.19.10/Documentation/bpf/ |
D | btf.rst | 289 ``btf_type`` is followed by ``info.vlen`` number of ``struct btf_enum``.:: 291 struct btf_enum { 296 The ``btf_enum`` encoding:
|
/linux-5.19.10/kernel/bpf/ |
D | btf.c | 699 static const struct btf_enum *btf_type_enum(const struct btf_type *t) in btf_type_enum() 701 return (const struct btf_enum *)(t + 1); in btf_type_enum() 3671 const struct btf_enum *enums = btf_type_enum(t); in btf_enum_check_meta() 3739 const struct btf_enum *enums = btf_type_enum(t); in btf_enum_show()
|