Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/
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) \ argument
79 BTF_TYPE_ENC(value, BTF_INFO_ENC(BTF_KIND_DECL_TAG, 0, 0), type), (component_idx)
A Dbtf_helpers.c204 t->type, btf_decl_tag(t)->component_idx); in fprintf_btf_type_raw()
A Dtest_loader.c441 if (t->type != func_id || btf_decl_tag(t)->component_idx != -1) in parse_test_spec()
/tools/include/uapi/linux/
A Dbtf.h188 __s32 component_idx; member
/tools/lib/bpf/
A Dbtf.h246 int component_idx);
248 int component_idx);
A Dlibbpf_internal.h90 #define BTF_TYPE_DECL_TAG_ENC(value, type, component_idx) \ argument
91 BTF_TYPE_ENC(value, BTF_INFO_ENC(BTF_KIND_DECL_TAG, 0, 0), type), (component_idx)
A Dbtf.c413 btf_decl_tag(t)->component_idx = bswap_32(btf_decl_tag(t)->component_idx); in btf_bswap_type_rest()
2933 int component_idx, int kflag) in btf_add_decl_tag() argument
2938 if (!value || !value[0] || component_idx < -1) in btf_add_decl_tag()
2959 btf_decl_tag(t)->component_idx = component_idx; in btf_add_decl_tag()
2975 int component_idx) in btf__add_decl_tag() argument
2977 return btf_add_decl_tag(btf, value, ref_type_id, component_idx, 0); in btf__add_decl_tag()
2992 int component_idx) in btf__add_decl_attr() argument
2994 return btf_add_decl_tag(btf, value, ref_type_id, component_idx, 1); in btf__add_decl_attr()
A Dlibbpf.c6686 if (!btf_is_decl_tag(t) || btf_decl_tag(t)->component_idx != -1) in bpf_prog_assign_exc_cb()
7011 arg_idx = btf_decl_tag(t)->component_idx; in bpf_program_fixup_func_info()
/tools/testing/selftests/bpf/prog_tests/
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()
/tools/bpf/bpftool/
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()

Completed in 47 milliseconds