Home
last modified time | relevance | path

Searched refs:component_idx (Results 1 – 11 of 11) sorted by relevance

/linux/tools/testing/selftests/bpf/
H A Dtest_btf.h75 #define BTF_DECL_ATTR_ENC(value, type, component_idx) \ argument
76 BTF_TYPE_ENC(value, BTF_INFO_ENC(BTF_KIND_DECL_TAG, 1, 0), type), (component_idx)
78 #define BTF_DECL_TAG_ENC(value, type, component_idx) \
79 BTF_TYPE_ENC(value, BTF_INFO_ENC(BTF_KIND_DECL_TAG, 0, 0), type), (component_idx)
H A Dbtf_helpers.c204 t->type, btf_decl_tag(t)->component_idx); in fprintf_btf_type_raw()
H A Dtest_loader.c357 * [18] DECL_TAG 'comment:test_expect_msg=0=foo' type_id=15 component_idx=-1
358 * [19] DECL_TAG 'comment:test_expect_msg=1=foo' type_id=15 component_idx=-1
451 if (t->type != func_id || btf_decl_tag(t)->component_idx != -1) in parse_test_spec()
/linux/include/uapi/linux/
H A Dbtf.h182 * If component_idx == -1, the tag is applied to a struct, union,
184 * member or a func argument, and component_idx indicates which member
188 __s32 component_idx;
187 __s32 component_idx; global() member
/linux/tools/include/uapi/linux/
H A Dbtf.h182 * If component_idx == -1, the tag is applied to a struct, union,
184 * member or a func argument, and component_idx indicates which member
188 __s32 component_idx;
187 __s32 component_idx; global() member
/linux/tools/lib/bpf/
H A Dbtf.h251 int component_idx);
253 int component_idx);
H A Dlibbpf_internal.h92 #define BTF_TYPE_DECL_TAG_ENC(value, type, component_idx) \ argument
93 BTF_TYPE_ENC(value, BTF_INFO_ENC(BTF_KIND_DECL_TAG, 0, 0), type), (component_idx)
H A Dlibbpf.c6986 if (!btf_is_decl_tag(t) || btf_decl_tag(t)->component_idx != -1) in bpf_prog_assign_exc_cb()
7311 arg_idx = btf_decl_tag(t)->component_idx; in bpf_program_fixup_func_info()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_write.c288 ASSERT_EQ(btf_decl_tag(t)->component_idx, -1, "tag_component_idx"); in gen_btf()
298 ASSERT_EQ(btf_decl_tag(t)->component_idx, 1, "tag_component_idx"); in gen_btf()
/linux/tools/bpf/bpftool/
H A Dbtf.c417 jsonw_int_field(w, "component_idx", tag->component_idx); in dump_btf_type()
419 printf(" type_id=%u component_idx=%d", t->type, tag->component_idx); in dump_btf_type()
531 if (btf_decl_tag(t)->component_idx != -1) in dump_btf_kfuncs()
/linux/kernel/bpf/
H A Dbtf.c3522 if (btf_type_decl_tag(t)->component_idx != comp_idx) in btf_find_next_decl_tag()
5072 s32 component_idx; in btf_decl_tag_check_meta() local
5093 component_idx = btf_type_decl_tag(t)->component_idx; in btf_decl_tag_check_meta()
5094 if (component_idx < -1) { in btf_decl_tag_check_meta()
5111 s32 component_idx; in btf_decl_tag_resolve() local
5124 component_idx = btf_type_decl_tag(t)->component_idx; in btf_decl_tag_resolve()
5125 if (component_idx != -1) { in btf_decl_tag_resolve()
5139 if ((u32)component_idx >= vlen) { in btf_decl_tag_resolve()
5153 btf_type_decl_tag(t)->component_idx); in btf_decl_tag_log()