Home
last modified time | relevance | path

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

/linux-6.15/tools/lib/bpf/
H A Dbtf.h531 struct btf_enum64;
533 static inline struct btf_enum64 *btf_enum64(const struct btf_type *t) in btf_enum64() function
535 return (struct btf_enum64 *)(t + 1); in btf_enum64()
538 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.c321 : btf_enum64(t)[access_idx].name_off; in bpf_core_parse_spec()
601 name_off = btf_enum64(targ_type)[i].name_off; in bpf_core_spec_match()
880 *val = btf_enum64_value(btf_enum64(t) + spec->spec[0].idx); in bpf_core_calc_enumval_relo()
1212 const struct btf_enum64 *e; in bpf_core_format_spec()
1215 e = btf_enum64(t) + spec->raw_spec[0]; in bpf_core_format_spec()
1477 btf_enum64(local_t)[i].name_off; in bpf_core_enums_match()
1481 btf_enum64(targ_t)[j].name_off; in bpf_core_enums_match()
H A Dbtf_dump.c1091 const struct btf_enum64 *v = btf_enum64(t); in btf_dump_emit_enum64_val()
1164 if (btf_enum64(t)[i].val_hi32 != 0) { in btf_dump_emit_enum_def()
2222 const struct btf_enum64 *e; in btf_dump_enum_data()
2224 for (i = 0, e = btf_enum64(t); i < btf_vlen(t); i++, e++) { in btf_dump_enum_data()
H A Dbtf.c313 return base_size + vlen * sizeof(struct btf_enum64); in btf_type_size()
343 struct btf_enum64 *e64; in btf_bswap_type_rest()
372 for (i = 0, e64 = btf_enum64(t); i < vlen; i++, e64++) { in btf_bswap_type_rest()
542 const struct btf_enum64 *m = btf_enum64(t); in btf_validate_type()
2459 struct btf_enum64 *v; in btf__add_enum64_value()
2478 sz = sizeof(struct btf_enum64); in btf__add_enum64_value()
3919 const struct btf_enum64 *m1, *m2; in btf_equal_enum64_members()
3924 m1 = btf_enum64(t1); in btf_equal_enum64_members()
3925 m2 = btf_enum64(t2); in btf_equal_enum64_members()
H A Dlibbpf.c2507 const struct btf_enum64 *e = btf_enum64(t); in get_map_field_long()
/linux-6.15/tools/sched_ext/include/scx/
H A Dcompat.h53 struct btf_enum64 *e = btf_enum64(t); in __COMPAT_read_enum()
/linux-6.15/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.c8049 return base_size + vlen * sizeof(struct btf_enum64); in btf_type_size()
/linux-6.15/include/linux/
H A Dbtf.h317 static inline u64 btf_enum64_value(const struct btf_enum64 *e) in btf_enum64_value()
482 static inline struct btf_enum64 *btf_enum64(const struct btf_type *t) in btf_enum64() function
484 return (struct btf_enum64 *)(t + 1); in btf_enum64()
/linux-6.15/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.c1468 struct btf_enum64 *e = btf_enum64(t); in enum_value_from_name()
/linux-6.15/tools/include/uapi/linux/
H A Dbtf.h195 struct btf_enum64 { struct
/linux-6.15/include/uapi/linux/
H A Dbtf.h195 struct btf_enum64 { struct
/linux-6.15/tools/bpf/bpftool/
H A Dbtf.c264 const struct btf_enum64 *v = btf_enum64(t); in dump_btf_type()
640 btf_enum64(t)->name_off : in btf_type_sort_name()
688 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-6.15/Documentation/bpf/
H A Dbtf.rst552 ``btf_type`` is followed by ``info.vlen`` number of ``struct btf_enum64``.::
554 struct btf_enum64 {
560 The ``btf_enum64`` encoding:
/linux-6.15/kernel/bpf/
H A Dbtf.c745 static const struct btf_enum64 *btf_type_enum64(const struct btf_type *t) in btf_type_enum64()
747 return (const struct btf_enum64 *)(t + 1); in btf_type_enum64()
4420 const struct btf_enum64 *enums = btf_type_enum64(t); in btf_enum64_check_meta()
4480 const struct btf_enum64 *enums = btf_type_enum64(t); in btf_enum64_show()