Home
last modified time | relevance | path

Searched refs:component_idx (Results 1 – 14 of 14) 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.c358 if (!btf_is_decl_tag(t) || t->type != id || btf_decl_tag(t)->component_idx != -1) in collect_decl_tags()
/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.h196 * If component_idx == -1, the tag is applied to a struct, union,
198 * member or a func argument, and component_idx indicates which member
202 __s32 component_idx;
187 __s32 component_idx; global() member
/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...]
H A Dresolve_btfids.c208 if (btf_decl_tag(t)->component_idx != -1) in btf_has_decl_tag()
/linux/tools/lib/bpf/
H A Dbtf.h273 int component_idx);
275 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 Dbtf.c570 btf_decl_tag(t)->component_idx = bswap_32(btf_decl_tag(t)->component_idx); in btf_bswap_type_rest()
3281 int component_idx, int kflag) in btf_add_decl_tag() argument
3287 if (str_is_empty(value) || component_idx < -1) in btf_add_decl_tag()
3309 btf_decl_tag(t)->component_idx = component_idx; in btf_add_decl_tag()
3325 int component_idx) in btf__add_decl_tag() argument
3327 return btf_add_decl_tag(btf, value, ref_type_id, component_idx, 0); in btf__add_decl_tag()
3342 int component_idx) in btf__add_decl_attr() argument
3344 return btf_add_decl_tag(btf, value, ref_type_id, component_idx, 1); in btf__add_decl_attr()
H A Dlibbpf.c7090 if (!btf_is_decl_tag(t) || btf_decl_tag(t)->component_idx != -1) in bpf_prog_assign_exc_cb()
7415 arg_idx = btf_decl_tag(t)->component_idx; in bpf_program_fixup_func_info()
/linux/tools/bpf/bpftool/
H A Dbtf.c412 jsonw_int_field(w, "component_idx", tag->component_idx); in dump_btf_type()
414 printf(" type_id=%u component_idx=%d", t->type, tag->component_idx); in dump_btf_type()
526 if (btf_decl_tag(t)->component_idx != -1) in dump_btf_kfuncs()
/linux/tools/bpf/resolve_btfids/
H A Dmain.c1272 idx = btf_decl_tag(t)->component_idx; in process_kfunc_with_implicit_args()
1457 u32 target_btf_id, int component_idx) in add_decl_tag() argument
1461 new_id = btf__add_decl_tag(ctx->btf, tag_name, target_btf_id, component_idx); in add_decl_tag()
/linux/kernel/bpf/
H A Dbtf.c3583 if (btf_type_decl_tag(t)->component_idx != comp_idx) in btf_find_next_decl_tag()
5134 s32 component_idx; in btf_decl_tag_check_meta() local
5155 component_idx = btf_type_decl_tag(t)->component_idx; in btf_decl_tag_check_meta()
5156 if (component_idx < -1) { in btf_decl_tag_check_meta()
5173 s32 component_idx; in btf_decl_tag_resolve() local
5186 component_idx = btf_type_decl_tag(t)->component_idx; in btf_decl_tag_resolve()
5187 if (component_idx != -1) { in btf_decl_tag_resolve()
5201 if ((u32)component_idx >= vlen) { in btf_decl_tag_resolve()
5215 btf_type_decl_tag(t)->component_idx); in btf_decl_tag_log()