Home
last modified time | relevance | path

Searched refs:component_idx (Results 1 – 12 of 12) 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 if (!btf_is_decl_tag(t) || t->type != id || btf_decl_tag(t)->component_idx != -1)
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfw.c780 u16 identifier, component_idx = 0; in mlx5_get_boot_img_component_index() local
785 err = mlx5_reg_mcqs_query(dev, out, component_idx); in mlx5_get_boot_img_component_index()
792 } while (!quit && ++component_idx); in mlx5_get_boot_img_component_index()
796 component_idx); in mlx5_get_boot_img_component_index()
800 return component_idx; in mlx5_get_boot_img_component_index()
/linux/tools/include/uapi/linux/
H A Dbtf.h194 * If component_idx == -1, the tag is applied to a struct, union,
196 * member or a func argument, and component_idx indicates which member
200 __s32 component_idx;
187 __s32 component_idx; global() member
/linux/tools/lib/bpf/
H A Dbtf.h271 int component_idx);
273 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.c7041 if (!btf_is_decl_tag(t) || btf_decl_tag(t)->component_idx != -1) in bpf_prog_assign_exc_cb()
7366 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()
290 "[18] DECL_TAG 'tag1' type_id=16 component_idx=-1", "raw_dump"); in gen_btf()
298 ASSERT_EQ(btf_decl_tag(t)->component_idx, 1, "tag_component_idx"); in gen_btf()
300 "[19] DECL_TAG 'tag2' type_id=14 component_idx=1", "raw_dump"); in gen_btf()
392 "[18] DECL_TAG 'tag1' type_id=16 component_idx=-1", in test_btf_add()
393 "[19] DECL_TAG 'tag2' type_id=14 component_idx=1", in test_btf_add()
451 "[18] DECL_TAG 'tag1' type_id=16 component_idx=-1", in test_btf_add_btf()
452 "[19] DECL_TAG 'tag2' type_id=14 component_idx=1", in test_btf_add_btf()
486 "[40] DECL_TAG 'tag1' type_id=38 component_idx=-1", in test_btf_add_btf()
487 "[41] DECL_TAG 'tag2' type_id=36 component_idx in test_btf_add_btf()
[all...]
/linux/tools/bpf/bpftool/
H A Dbtf.c418 jsonw_int_field(w, "component_idx", tag->component_idx); in dump_btf_type()
420 printf(" type_id=%u component_idx=%d", t->type, tag->component_idx); in dump_btf_type()
532 if (btf_decl_tag(t)->component_idx != -1) in dump_btf_kfuncs()
/linux/tools/bpf/resolve_btfids/
H A Dmain.c1007 if (btf_kflag(t) || btf_decl_tag(t)->component_idx != -1) in collect_kfuncs()
1166 idx = btf_decl_tag(t)->component_idx; in process_kfunc_with_implicit_args()
/linux/kernel/bpf/
H A Dbtf.c3537 if (btf_type_decl_tag(t)->component_idx != comp_idx) in btf_find_next_decl_tag()
5087 s32 component_idx; in btf_decl_tag_check_meta() local
5108 component_idx = btf_type_decl_tag(t)->component_idx; in btf_decl_tag_check_meta()
5109 if (component_idx < -1) { in btf_decl_tag_check_meta()
5126 s32 component_idx; in btf_decl_tag_resolve() local
5139 component_idx = btf_type_decl_tag(t)->component_idx; in btf_decl_tag_resolve()
5140 if (component_idx != -1) { in btf_decl_tag_resolve()
5154 if ((u32)component_idx >= vlen) { in btf_decl_tag_resolve()
5168 btf_type_decl_tag(t)->component_idx); in btf_decl_tag_log()