Home
last modified time | relevance | path

Searched refs:btf_enum64 (Results 1 – 16 of 16) sorted by relevance

/linux/tools/lib/bpf/
H A Dbtf.h604 struct btf_enum64;
606 static inline struct btf_enum64 *btf_enum64(const struct btf_type *t) in btf_enum64() function
608 return (struct btf_enum64 *)(t + 1); in btf_enum64()
611 static inline __u64 btf_enum64_value(const struct btf_enum64 *e) in btf_enum64_value()
H A Dbtf_iter.c111 sizeof(struct btf_enum64), in btf_field_iter_init()
112 1, {offsetof(struct btf_enum64, name_off)} in btf_field_iter_init()
H A Drelo_core.c322 : btf_enum64(t)[access_idx].name_off; in bpf_core_parse_spec()
602 name_off = btf_enum64(targ_type)[i].name_off; in bpf_core_spec_match()
881 *val = btf_enum64_value(btf_enum64(t) + spec->spec[0].idx); in bpf_core_calc_enumval_relo()
1213 const struct btf_enum64 *e; in bpf_core_format_spec()
1216 e = btf_enum64(t) + spec->raw_spec[0]; in bpf_core_format_spec()
1478 btf_enum64(local_t)[i].name_off; in bpf_core_enums_match()
1482 btf_enum64(targ_t)[j].name_off; in bpf_core_enums_match()
H A Dbtf_dump.c1094 const struct btf_enum64 *v = btf_enum64(t); in btf_dump_emit_enum64_val()
1167 if (btf_enum64(t)[i].val_hi32 != 0) { in btf_dump_emit_enum_def()
2285 const struct btf_enum64 *e; in btf_dump_enum_data()
2287 for (i = 0, e = btf_enum64(t); i < btf_vlen(t); i++, e++) { in btf_dump_enum_data()
H A Dbtf.c59 [BTF_KIND_ENUM64] = { 0, sizeof(struct btf_enum64), 0 },
475 return base_size + vlen * sizeof(struct btf_enum64); in btf_type_size()
504 struct btf_enum64 *e64; in btf_bswap_type_rest()
533 for (i = 0, e64 = btf_enum64(t); i < vlen; i++, e64++) { in btf_bswap_type_rest()
702 const struct btf_enum64 *m = btf_enum64(t); in btf_validate_type()
2848 struct btf_enum64 *v; in btf__add_enum64_value()
2869 sz = sizeof(struct btf_enum64); in btf__add_enum64_value()
4345 const struct btf_enum64 *m1, *m2; in btf_equal_enum64_members()
4350 m1 = btf_enum64(t1); in btf_equal_enum64_members()
4351 m2 = btf_enum64(t2); in btf_equal_enum64_members()
H A Dlibbpf.c2560 const struct btf_enum64 *e = btf_enum64(t); in get_map_field_long()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_write.c12 const struct btf_enum64 *v64; in gen_btf()
324 v64 = btf_enum64(t) + 0; in gen_btf()
328 v64 = btf_enum64(t) + 1; in gen_btf()
346 v64 = btf_enum64(t) + 0; in gen_btf()
H A Dbtf.c8191 return base_size + vlen * sizeof(struct btf_enum64); in btf_type_size()
/linux/include/linux/
H A Dbtf.h326 static inline u64 btf_enum64_value(const struct btf_enum64 *e) in btf_enum64_value()
491 static inline struct btf_enum64 *btf_enum64(const struct btf_type *t) in btf_enum64() function
493 return (struct btf_enum64 *)(t + 1); in btf_enum64()
/linux/tools/testing/selftests/bpf/
H A Dbtf_helpers.c155 const struct btf_enum64 *v = btf_enum64(t); in fprintf_btf_type_raw()
H A Dveristat.c1930 struct btf_enum64 *e = btf_enum64(t); in enum_value_from_name()
/linux/tools/sched_ext/include/scx/
H A Dcompat.h54 struct btf_enum64 *e = btf_enum64(t); in __COMPAT_read_enum()
/linux/tools/include/uapi/linux/
H A Dbtf.h205 /* BTF_KIND_ENUM64 is followed by multiple "struct btf_enum64".
206 * The exact number of btf_enum64 is stored in the vlen (of the
209 struct btf_enum64 {
194 struct btf_enum64 { global() struct
195 name_offbtf_enum64 global() argument
196 val_lo32btf_enum64 global() argument
197 val_hi32btf_enum64 global() argument
/linux/tools/bpf/bpftool/
H A Dbtf.c263 const struct btf_enum64 *v = btf_enum64(t); in dump_btf_type()
635 btf_enum64(t)->name_off : in btf_type_sort_name()
683 btf_enum64(t)[i].name_off; in btf_type_disambig_hash()
H A Dbtf_dumper.c189 const struct btf_enum64 *enums = btf_enum64(t); in btf_dumper_enum64()
/linux/kernel/bpf/
H A Dbtf.c858 static const struct btf_enum64 *btf_type_enum64(const struct btf_type *t) in btf_type_enum64()
860 return (const struct btf_enum64 *)(t + 1); in btf_type_enum64()
4602 const struct btf_enum64 *enums = btf_type_enum64(t); in btf_enum64_check_meta()
4662 const struct btf_enum64 *enums = btf_type_enum64(t); in btf_enum64_show()