Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
A Dnetif_receive_skb.c189 TEST_BTF_C(str, struct btf_enum, 0, in BPF_PROG()
191 TEST_BTF(str, struct btf_enum, BTF_F_NONAME, "{3,-1,}", in BPF_PROG()
193 TEST_BTF(str, struct btf_enum, BTF_F_NONAME, "{-1,}", in BPF_PROG()
195 TEST_BTF(str, struct btf_enum, BTF_F_NONAME|BTF_F_ZERO, "{0,-1,}", in BPF_PROG()
198 TEST_BTF(str, struct btf_enum, 0, "(struct btf_enum){}", in BPF_PROG()
200 TEST_BTF(str, struct btf_enum, BTF_F_NONAME, "{}", in BPF_PROG()
202 TEST_BTF(str, struct btf_enum, BTF_F_ZERO, in BPF_PROG()
/linux/tools/testing/selftests/bpf/prog_tests/
A Dbtf_dump.c559 TEST_BTF_DUMP_DATA_C(btf, d, "struct", str, struct btf_enum, BTF_F_COMPACT, in test_btf_dump_struct_data()
561 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, in test_btf_dump_struct_data()
565 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, 0, in test_btf_dump_struct_data()
571 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, in test_btf_dump_struct_data()
575 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, in test_btf_dump_struct_data()
580 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, BTF_F_COMPACT, in test_btf_dump_struct_data()
583 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, in test_btf_dump_struct_data()
587 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, 0, in test_btf_dump_struct_data()
591 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, in test_btf_dump_struct_data()
595 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, in test_btf_dump_struct_data()
A Dbtf_write.c12 const struct btf_enum *v; in gen_btf()
167 v = btf_enum(t) + 0; in gen_btf()
170 v = btf_enum(t) + 1; in gen_btf()
A Dcore_reloc.c400 (name = btf__name_by_offset(local_btf, btf_enum(t)[0].name_off)) && in setup_type_id_case_local()
A Dbtf.c7264 return base_size + vlen * sizeof(struct btf_enum); in btf_type_size()
/linux/tools/lib/bpf/
A Drelo_core.c211 acc->name = btf__name_by_offset(btf, btf_enum(t)[access_idx].name_off); in bpf_core_parse_spec()
472 const struct btf_enum *e; in bpf_core_spec_match()
482 for (i = 0, e = btf_enum(targ_type); i < btf_vlen(targ_type); i++, e++) { in bpf_core_spec_match()
723 const struct btf_enum *e; in bpf_core_calc_enumval_relo()
733 e = btf_enum(t) + spec->spec[0].idx; in bpf_core_calc_enumval_relo()
1051 const struct btf_enum *e; in bpf_core_dump_spec()
1067 e = btf_enum(t) + spec->raw_spec[0]; in bpf_core_dump_spec()
A Dbtf.h459 static inline struct btf_enum *btf_enum(const struct btf_type *t) in btf_enum() function
461 return (struct btf_enum *)(t + 1); in btf_enum()
A Dbtf.c306 return base_size + vlen * sizeof(struct btf_enum); in btf_type_size()
339 struct btf_enum *e; in btf_bswap_type_rest()
357 for (i = 0, e = btf_enum(t); i < vlen; i++, e++) { in btf_bswap_type_rest()
2108 struct btf_enum *v; in btf__add_enum_value()
2128 sz = sizeof(struct btf_enum); in btf__add_enum_value()
3390 const struct btf_enum *m1, *m2; in btf_equal_enum()
3398 m1 = btf_enum(t1); in btf_equal_enum()
3399 m2 = btf_enum(t2); in btf_equal_enum()
4671 struct btf_enum *m = btf_enum(t); in btf_type_visit_str_offs()
A Dbtf_dump.c980 const struct btf_enum *v = btf_enum(t); in btf_dump_emit_enum_def()
1998 const struct btf_enum *e; in btf_dump_enum_data()
2006 for (i = 0, e = btf_enum(t); i < btf_vlen(t); i++, e++) { in btf_dump_enum_data()
/linux/tools/testing/selftests/bpf/
A Dbtf_helpers.c139 const struct btf_enum *v = btf_enum(t); in fprintf_btf_type_raw()
/linux/tools/include/uapi/linux/
A Dbtf.h103 struct btf_enum { struct
/linux/include/uapi/linux/
A Dbtf.h103 struct btf_enum { struct
/linux/tools/bpf/bpftool/
A Dbtf_dumper.c143 const struct btf_enum *enums = btf_enum(t); in btf_dumper_enum()
A Dbtf.c211 const struct btf_enum *v = (const void *)(t + 1); in dump_btf_type()
/linux/Documentation/bpf/
A Dbtf.rst288 ``btf_type`` is followed by ``info.vlen`` number of ``struct btf_enum``.::
290 struct btf_enum {
295 The ``btf_enum`` encoding:
/linux/kernel/bpf/
A Dbtf.c623 static const struct btf_enum *btf_type_enum(const struct btf_type *t) in btf_type_enum()
625 return (const struct btf_enum *)(t + 1); in btf_type_enum()
3308 const struct btf_enum *enums = btf_type_enum(t); in btf_enum_check_meta()
3376 const struct btf_enum *enums = btf_type_enum(t); in btf_enum_show()

Completed in 51 milliseconds