Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A 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()
H A 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()
H A Dbtf_dump.c652 TEST_BTF_DUMP_DATA_C(btf, d, "struct", str, struct btf_enum, BTF_F_COMPACT, in test_btf_dump_struct_data()
654 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, in test_btf_dump_struct_data()
658 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, 0, in test_btf_dump_struct_data()
659 "(struct btf_enum){\n" in test_btf_dump_struct_data()
664 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, in test_btf_dump_struct_data()
668 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, in test_btf_dump_struct_data()
673 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, BTF_F_COMPACT, in test_btf_dump_struct_data()
674 "(struct btf_enum){}", in test_btf_dump_struct_data()
676 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, in test_btf_dump_struct_data()
680 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, in test_btf_dump_struct_data()
[all...]
H A 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()
H A Dcore_reloc.c463 (name = btf__name_by_offset(local_btf, btf_enum(t)[0].name_off)) && in setup_type_id_case_local()
H A Dbtf.c8047 return base_size + vlen * sizeof(struct btf_enum); in btf_type_size()
/linux/tools/lib/bpf/
H A 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()
H A Dbtf.h527 static inline struct btf_enum *btf_enum(const struct btf_type *t) in btf_enum() function
529 return (struct btf_enum *)(t + 1); in btf_enum()
H A 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()
878 *val = btf_enum(t)[spec->spec[0].idx].val; in bpf_core_calc_enumval_relo()
1204 const struct btf_enum *e; in bpf_core_format_spec()
1207 e = btf_enum(t) + spec->raw_spec[0]; in bpf_core_format_spec()
1476 local_n_off = btf_is_enum(local_t) ? btf_enum(local_t)[i].name_off : in bpf_core_enums_match()
1480 targ_n_off = btf_is_enum(targ_t) ? btf_enum(targ_t)[j].name_off : in bpf_core_enums_match()
H A Dbtf.c315 return base_size + vlen * sizeof(struct btf_enum); in btf_type_size()
351 struct btf_enum *e; in btf_bswap_type_rest()
370 for (i = 0, e = btf_enum(t); i < vlen; i++, e++) { in btf_bswap_type_rest()
535 const struct btf_enum *m = btf_enum(t); in btf_validate_type()
2439 struct btf_enum *v; in btf__add_enum_value()
2459 sz = sizeof(struct btf_enum); in btf__add_enum_value()
3957 const struct btf_enum *m1, *m2; in btf_equal_enum_members()
3962 m1 = btf_enum(t1); in btf_equal_enum_members()
3963 m2 = btf_enum(t in btf_equal_enum_members()
[all...]
H A Dbtf_dump.c1070 const struct btf_enum *v = btf_enum(t); in btf_dump_emit_enum32_val()
2266 const struct btf_enum *e; in btf_dump_enum_data()
2268 for (i = 0, e = btf_enum(t); i < btf_vlen(t); i++, e++) { in btf_dump_enum_data()
H A Dlibbpf.c2497 const struct btf_enum *e = btf_enum(t); in get_map_field_long()
/linux/tools/sched_ext/include/scx/
H A Dcompat.h42 struct btf_enum *e = btf_enum(t); in __COMPAT_read_enum()
/linux/tools/testing/selftests/bpf/
H A Dbtf_helpers.c142 const struct btf_enum *v = btf_enum(t); in fprintf_btf_type_raw()
H A Dveristat.c1789 struct btf_enum *e = btf_enum(t); in enum_value_from_name()
/linux/include/uapi/linux/
H A Dbtf.h102 /* BTF_KIND_ENUM is followed by multiple "struct btf_enum".
103 * The exact number of btf_enum is stored in the vlen (of the
106 struct btf_enum { struct
107 name_offbtf_enum global() argument
108 valbtf_enum global() argument
/linux/tools/include/uapi/linux/
H A Dbtf.h102 /* BTF_KIND_ENUM is followed by multiple "struct btf_enum".
103 * The exact number of btf_enum is stored in the vlen (of the
106 struct btf_enum { struct
107 name_offbtf_enum global() argument
108 valbtf_enum global() argument
/linux/include/linux/
H A Dbtf.h480 static inline struct btf_enum *btf_enum(const struct btf_type *t) in btf_enum() function
482 return (struct btf_enum *)(t + 1); in btf_enum()
/linux/kernel/bpf/
H A Dinode.c653 const struct btf_enum *e; in find_btf_enum_const()
663 e = &btf_enum(enum_t)[i]; in find_btf_enum_const()
686 const struct btf_enum *e; in seq_print_delegate_opts()
705 e = &btf_enum(enum_t)[i]; in seq_print_delegate_opts()
H A Dbtf.c731 static const struct btf_enum *btf_type_enum(const struct btf_type *t) in btf_type_enum()
733 return (const struct btf_enum *)(t + 1); in btf_type_enum()
4331 const struct btf_enum *enums = btf_type_enum(t); in btf_enum_check_meta()
4396 const struct btf_enum *enums = btf_type_enum(t); in btf_enum_show()
/linux/tools/bpf/bpftool/
H A Dbtf.c226 const struct btf_enum *v = (const void *)(t + 1); in dump_btf_type()
641 btf_enum(t)->name_off; in btf_type_sort_name()
687 btf_enum(t)[i].name_off : in btf_type_disambig_hash()
/linux/Documentation/bpf/
H A Dbtf.rst289 ``btf_type`` is followed by ``info.vlen`` number of ``struct btf_enum``.::
291 struct btf_enum {
296 The ``btf_enum`` encoding:
/linux/tools/perf/
H A Dbuiltin-trace.c970 struct btf_enum *be = btf_enum(bt); in syscall_arg__strtoul_btf_enum()
1016 struct btf_enum *be = btf_enum(type); in btf_enum_scnprintf()