Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/prog_tests/
Dlibbpf_str.c25 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()
172 const struct btf_enum *e; in test_libbpf_bpf_prog_type_str()
184 e = btf_enum(t); in test_libbpf_bpf_prog_type_str()
Dlibbpf_probes.c11 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()
51 const struct btf_enum *e; in test_libbpf_probe_map_types()
66 for (e = btf_enum(t), i = 0, n = btf_vlen(t); i < n; e++, i++) { in test_libbpf_probe_map_types()
Dbtf_dump.c582 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()
Dbtf_write.c13 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()
Dcore_reloc.c462 (name = btf__name_by_offset(local_btf, btf_enum(t)[0].name_off)) && in setup_type_id_case_local()
Dbtf.c8032 return base_size + vlen * sizeof(struct btf_enum); in btf_type_size()
/tools/testing/selftests/bpf/progs/
Dnetif_receive_skb.c185 TEST_BTF_C(str, struct btf_enum, 0, in BPF_PROG()
187 TEST_BTF(str, struct btf_enum, BTF_F_NONAME, "{3,-1,}", in BPF_PROG()
189 TEST_BTF(str, struct btf_enum, BTF_F_NONAME, "{-1,}", in BPF_PROG()
191 TEST_BTF(str, struct btf_enum, BTF_F_NONAME|BTF_F_ZERO, "{0,-1,}", in BPF_PROG()
194 TEST_BTF(str, struct btf_enum, 0, "(struct btf_enum){}", in BPF_PROG()
196 TEST_BTF(str, struct btf_enum, BTF_F_NONAME, "{}", in BPF_PROG()
198 TEST_BTF(str, struct btf_enum, BTF_F_ZERO, in BPF_PROG()
/tools/lib/bpf/
Dbtf_iter.c104 sizeof(struct btf_enum), in btf_field_iter_init()
105 1, {offsetof(struct btf_enum, name_off)} in btf_field_iter_init()
Dbtf.h520 static inline struct btf_enum *btf_enum(const struct btf_type *t) in btf_enum() function
522 return (struct btf_enum *)(t + 1); in btf_enum()
Drelo_core.c320 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()
Dbtf.c310 return base_size + vlen * sizeof(struct btf_enum); in btf_type_size()
346 struct btf_enum *e; in btf_bswap_type_rest()
365 for (i = 0, e = btf_enum(t); i < vlen; i++, e++) { in btf_bswap_type_rest()
530 const struct btf_enum *m = btf_enum(t); in btf_validate_type()
2371 struct btf_enum *v; in btf__add_enum_value()
2391 sz = sizeof(struct btf_enum); in btf__add_enum_value()
3687 const struct btf_enum *m1, *m2; in btf_equal_enum_members()
3692 m1 = btf_enum(t1); in btf_equal_enum_members()
3693 m2 = btf_enum(t2); in btf_equal_enum_members()
Dbtf_dump.c1068 const struct btf_enum *v = btf_enum(t); in btf_dump_emit_enum32_val()
2210 const struct btf_enum *e; in btf_dump_enum_data()
2212 for (i = 0, e = btf_enum(t); i < btf_vlen(t); i++, e++) { in btf_dump_enum_data()
Dlibbpf.c2468 const struct btf_enum *e = btf_enum(t); in get_map_field_long()
/tools/sched_ext/include/scx/
Dcompat.h42 struct btf_enum *e = btf_enum(t); in __COMPAT_read_enum()
/tools/include/uapi/linux/
Dbtf.h105 struct btf_enum { struct
/tools/testing/selftests/bpf/
Dbtf_helpers.c142 const struct btf_enum *v = btf_enum(t); in fprintf_btf_type_raw()
Dtest_progs.c1132 const struct btf_enum *e; in get_bpf_max_tramp_links_from()
1142 e = btf_enum(t); in get_bpf_max_tramp_links_from()
/tools/bpf/bpftool/
Dbtf.c219 const struct btf_enum *v = (const void *)(t + 1); in dump_btf_type()
568 btf_enum(t)->name_off; in btf_type_sort_name()
614 btf_enum(t)[i].name_off : in btf_type_disambig_hash()
Dbtf_dumper.c151 const struct btf_enum *enums = btf_enum(t); in btf_dumper_enum()
/tools/perf/
Dbuiltin-trace.c952 struct btf_enum *be = btf_enum(bt); in syscall_arg__strtoul_btf_enum()
998 struct btf_enum *be = btf_enum(type); in btf_enum_scnprintf()