Searched refs:btf_decl_tag (Results 1 – 12 of 12) sorted by relevance
11 #if __has_attribute(btf_decl_tag)12 #define __tag1 __attribute__((btf_decl_tag("tag1")))13 #define __tag2 __attribute__((btf_decl_tag("tag2")))
507 struct btf_decl_tag;508 static inline struct btf_decl_tag *btf_decl_tag(const struct btf_type *t) in btf_decl_tag() function510 return (struct btf_decl_tag *)(t + 1); in btf_decl_tag()
319 return base_size + sizeof(struct btf_decl_tag); in btf_type_size()393 btf_decl_tag(t)->component_idx = bswap_32(btf_decl_tag(t)->component_idx); in btf_bswap_type_rest()2517 sz = sizeof(struct btf_type) + sizeof(struct btf_decl_tag); in btf__add_decl_tag()2529 btf_decl_tag(t)->component_idx = component_idx; in btf__add_decl_tag()
184 struct btf_decl_tag { struct
287 ASSERT_EQ(btf_decl_tag(t)->component_idx, -1, "tag_component_idx"); in gen_btf()297 ASSERT_EQ(btf_decl_tag(t)->component_idx, 1, "tag_component_idx"); in gen_btf()
7277 return base_size + sizeof(struct btf_decl_tag); in btf_type_size()
479 ``btf_type`` is followed by ``struct btf_decl_tag``.::481 struct btf_decl_tag {485 The ``name_off`` encodes btf_decl_tag attribute string.487 For ``var`` or ``typedef`` type, ``btf_decl_tag.component_idx`` must be ``-1``.488 For the other three types, if the btf_decl_tag attribute is490 ``btf_decl_tag.component_idx`` must be ``-1``. Otherwise,492 a ``func`` argument, and ``btf_decl_tag.component_idx`` should be a
183 t->type, btf_decl_tag(t)->component_idx); in fprintf_btf_type_raw()
207 The btf_tag selftest require LLVM support to recognize the btf_decl_tag attribute.
348 const struct btf_decl_tag *tag = (const void *)(t + 1); in dump_btf_type()
633 static const struct btf_decl_tag *btf_type_decl_tag(const struct btf_type *t) in btf_type_decl_tag()635 return (const struct btf_decl_tag *)(t + 1); in btf_type_decl_tag()3827 const struct btf_decl_tag *tag; in btf_decl_tag_check_meta()
Completed in 40 milliseconds