/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | libbpf_str.c | 25 const struct btf_enum *e; in test_libbpf_bpf_attach_type_str() 37 e = btf_enum(t); in test_libbpf_bpf_attach_type_str() 70 const struct btf_enum *e; in test_libbpf_bpf_link_type_str() 82 e = btf_enum(t); in test_libbpf_bpf_link_type_str() 115 const struct btf_enum *e; in test_libbpf_bpf_map_type_str() 127 e = btf_enum(t); in test_libbpf_bpf_map_type_str() 165 const struct btf_enum *e; in test_libbpf_bpf_prog_type_str() 177 e = btf_enum(t); in test_libbpf_bpf_prog_type_str()
|
H A 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()
|
H A 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() 589 "(struct btf_enum){\n" 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() 604 "(struct btf_enum){}", 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, in test_btf_dump_struct_data() [all...] |
H A D | btf_write.c | 13 const struct btf_enum *v; in gen_btf() 168 v = btf_enum(t) + 0; in gen_btf() 171 v = btf_enum(t) + 1; in gen_btf()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A 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() 203 "(struct btf_enum){.name_off = (__u32)0,.val = (__s32)0,}", in BPF_PROG()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | netif_receive_skb.c | 188 TEST_BTF_C(str, struct btf_enum, 0, in BPF_PROG() 190 TEST_BTF(str, struct btf_enum, BTF_F_NONAME, "{3,-1,}", in BPF_PROG() 192 TEST_BTF(str, struct btf_enum, BTF_F_NONAME, "{-1,}", in BPF_PROG() 194 TEST_BTF(str, struct btf_enum, BTF_F_NONAME|BTF_F_ZERO, "{0,-1,}", in BPF_PROG() 197 TEST_BTF(str, struct btf_enum, 0, "(struct btf_enum){}", in BPF_PROG() 199 TEST_BTF(str, struct btf_enum, BTF_F_NONAME, "{}", in BPF_PROG() 201 TEST_BTF(str, struct btf_enum, BTF_F_ZERO, in BPF_PROG() 202 "(struct btf_enum){.name_off = (__u32)0,.val = (__s32)0,}", in BPF_PROG()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf_write.c | 12 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()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | btf_helpers.c | 142 const struct btf_enum *v = btf_enum(t); in fprintf_btf_type_raw()
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
H A D | btf.h | 57 struct btf_enum { struct
|
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | relo_core.c | 320 name_off = btf_is_enum(t) ? btf_enum(t)[access_idx].name_off in bpf_core_parse_spec() 599 name_off = btf_enum(targ_type)[i].name_off; in bpf_core_spec_match() 862 *val = btf_enum(t)[spec->spec[0].idx].val; in bpf_core_calc_enumval_relo() 1188 const struct btf_enum *e; in bpf_core_format_spec() 1191 e = btf_enum(t) + spec->raw_spec[0]; in bpf_core_format_spec() 1460 local_n_off = btf_is_enum(local_t) ? btf_enum(local_t)[i].name_off : in bpf_core_enums_match() 1464 targ_n_off = btf_is_enum(targ_t) ? btf_enum(targ_t)[j].name_off : in bpf_core_enums_match()
|
H A D | btf.h | 484 static inline struct btf_enum *btf_enum(const struct btf_type *t) in btf_enum() function 486 return (struct btf_enum *)(t + 1); in btf_enum()
|
H A D | btf.c | 307 return base_size + vlen * sizeof(struct btf_enum); in btf_type_size() 343 struct btf_enum *e; in btf_bswap_type_rest() 362 for (i = 0, e = btf_enum(t); i < vlen; i++, e++) { in btf_bswap_type_rest() 2129 struct btf_enum *v; in btf__add_enum_value() 2149 sz = sizeof(struct btf_enum); in btf__add_enum_value() 3433 const struct btf_enum *m1, *m2; in btf_equal_enum_members() 3438 m1 = btf_enum(t1); in btf_equal_enum_members() 3439 m2 = btf_enum(t2); in btf_equal_enum_members() 4911 struct btf_enum *m = btf_enum( in btf_type_visit_str_offs() [all...] |
H A D | btf_dump.c | 1065 const struct btf_enum *v = btf_enum(t); in btf_dump_emit_enum32_val() 2200 const struct btf_enum *e; in btf_dump_enum_data() 2202 for (i = 0, e = btf_enum(t); i < btf_vlen(t); i++, e++) { in btf_dump_enum_data()
|
/kernel/linux/linux-5.10/tools/include/uapi/linux/ |
H A D | btf.h | 94 /* BTF_KIND_ENUM is followed by multiple "struct btf_enum". 95 * The exact number of btf_enum is stored in the vlen (of the 98 struct btf_enum { struct
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
H A D | btf.h | 94 /* BTF_KIND_ENUM is followed by multiple "struct btf_enum". 95 * The exact number of btf_enum is stored in the vlen (of the 98 struct btf_enum { struct
|
/kernel/linux/linux-6.6/include/uapi/linux/ |
H A D | btf.h | 101 /* BTF_KIND_ENUM is followed by multiple "struct btf_enum". 102 * The exact number of btf_enum is stored in the vlen (of the 105 struct btf_enum { struct
|
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/ |
H A D | btf.h | 72 struct btf_enum { struct
|
/kernel/linux/linux-6.6/tools/include/uapi/linux/ |
H A D | btf.h | 101 /* BTF_KIND_ENUM is followed by multiple "struct btf_enum". 102 * The exact number of btf_enum is stored in the vlen (of the 105 struct btf_enum { struct
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
H A D | btf.h | 72 struct btf_enum { struct
|
/kernel/linux/linux-5.10/tools/lib/bpf/ |
H A D | btf.h | 309 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 D | btf.c | 270 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() 1933 struct btf_enum *v; in btf__add_enum_value() 1953 sz = sizeof(struct btf_enum); in btf__add_enum_value() 3053 struct btf_enum *m = btf_enum(t); in btf_for_each_str_off() 3357 const struct btf_enum *m1, *m2; in btf_equal_enum() 3365 m1 = btf_enum(t1); in btf_equal_enum() 3366 m2 = btf_enum(t in btf_equal_enum() [all...] |
H A D | btf_dump.c | 1022 const struct btf_enum *v = btf_enum(t); in btf_dump_emit_enum_def()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | btf.h | 447 static inline struct btf_enum *btf_enum(const struct btf_type *t) in btf_enum() function 449 return (struct btf_enum *)(t + 1); in btf_enum()
|
/kernel/linux/linux-5.10/tools/bpf/bpftool/ |
H A D | btf_dumper.c | 141 const struct btf_enum *enums = btf_enum(t); in btf_dumper_enum()
|
/kernel/linux/linux-6.6/tools/bpf/bpftool/ |
H A D | btf_dumper.c | 151 const struct btf_enum *enums = btf_enum(t); in btf_dumper_enum()
|