Home
last modified time | relevance | path

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

/openbmc/linux/tools/lib/bpf/
H A Dbtf.h489 struct btf_enum64;
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()
496 static inline __u64 btf_enum64_value(const struct btf_enum64 *e) in btf_enum64_value()
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()
864 *val = btf_enum64_value(btf_enum64(t) + spec->spec[0].idx); in bpf_core_calc_enumval_relo()
1196 const struct btf_enum64 *e; in bpf_core_format_spec()
1199 e = btf_enum64(t) + spec->raw_spec[0]; in bpf_core_format_spec()
1461 btf_enum64(local_t)[i].name_off; in bpf_core_enums_match()
1465 btf_enum64(targ_t)[j].name_off; in bpf_core_enums_match()
H A Dbtf.c309 return base_size + vlen * sizeof(struct btf_enum64); in btf_type_size()
339 struct btf_enum64 *e64; in btf_bswap_type_rest()
368 for (i = 0, e64 = btf_enum64(t); i < vlen; i++, e64++) { in btf_bswap_type_rest()
2205 struct btf_enum64 *v; in btf__add_enum64_value()
2224 sz = sizeof(struct btf_enum64); in btf__add_enum64_value()
3451 const struct btf_enum64 *m1, *m2; in btf_equal_enum64_members()
3456 m1 = btf_enum64(t1); in btf_equal_enum64_members()
3457 m2 = btf_enum64(t2); in btf_equal_enum64_members()
4921 struct btf_enum64 *m = btf_enum64(t); in btf_type_visit_str_offs()
H A Dbtf_dump.c1090 const struct btf_enum64 *v = btf_enum64(t); in btf_dump_emit_enum64_val()
1163 if (btf_enum64(t)[i].val_hi32 != 0) { in btf_dump_emit_enum_def()
2213 const struct btf_enum64 *e; in btf_dump_enum_data()
2215 for (i = 0, e = btf_enum64(t); i < btf_vlen(t); i++, e++) { in btf_dump_enum_data()
/openbmc/linux/include/linux/
H A Dbtf.h297 static inline u64 btf_enum64_value(const struct btf_enum64 *e) in btf_enum64_value()
452 static inline struct btf_enum64 *btf_enum64(const struct btf_type *t) in btf_enum64() function
454 return (struct btf_enum64 *)(t + 1); in btf_enum64()
/openbmc/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.c7971 return base_size + vlen * sizeof(struct btf_enum64); in btf_type_size()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dbtf_helpers.c155 const struct btf_enum64 *v = btf_enum64(t); in fprintf_btf_type_raw()
/openbmc/linux/include/uapi/linux/
H A Dbtf.h194 struct btf_enum64 { struct
/openbmc/linux/tools/include/uapi/linux/
H A Dbtf.h194 struct btf_enum64 { struct
/openbmc/linux/tools/bpf/bpftool/
H A Dbtf_dumper.c189 const struct btf_enum64 *enums = btf_enum64(t); in btf_dumper_enum64()
H A Dbtf.c247 const struct btf_enum64 *v = btf_enum64(t); in dump_btf_type()
/openbmc/linux/Documentation/bpf/
H A Dbtf.rst538 ``btf_type`` is followed by ``info.vlen`` number of ``struct btf_enum64``.::
540 struct btf_enum64 {
546 The ``btf_enum64`` encoding:
/openbmc/linux/kernel/bpf/
H A Dbtf.c734 static const struct btf_enum64 *btf_type_enum64(const struct btf_type *t) in btf_type_enum64()
736 return (const struct btf_enum64 *)(t + 1); in btf_type_enum64()
4170 const struct btf_enum64 *enums = btf_type_enum64(t); in btf_enum64_check_meta()
4230 const struct btf_enum64 *enums = btf_type_enum64(t); in btf_enum64_show()