Home
last modified time | relevance | path

Searched refs:btf_decl_tag (Results 1 – 12 of 12) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
A Dtag.c11 #if __has_attribute(btf_decl_tag)
12 #define __tag1 __attribute__((btf_decl_tag("tag1")))
13 #define __tag2 __attribute__((btf_decl_tag("tag2")))
/linux/tools/lib/bpf/
A Dbtf.h507 struct btf_decl_tag;
508 static inline struct btf_decl_tag *btf_decl_tag(const struct btf_type *t) in btf_decl_tag() function
510 return (struct btf_decl_tag *)(t + 1); in btf_decl_tag()
A Dbtf.c319 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()
/linux/tools/include/uapi/linux/
A Dbtf.h184 struct btf_decl_tag { struct
/linux/include/uapi/linux/
A Dbtf.h184 struct btf_decl_tag { struct
/linux/tools/testing/selftests/bpf/prog_tests/
A Dbtf_write.c287 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()
A Dbtf.c7277 return base_size + sizeof(struct btf_decl_tag); in btf_type_size()
/linux/Documentation/bpf/
A Dbtf.rst479 ``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 is
490 ``btf_decl_tag.component_idx`` must be ``-1``. Otherwise,
492 a ``func`` argument, and ``btf_decl_tag.component_idx`` should be a
/linux/tools/testing/selftests/bpf/
A Dbtf_helpers.c183 t->type, btf_decl_tag(t)->component_idx); in fprintf_btf_type_raw()
A DREADME.rst207 The btf_tag selftest require LLVM support to recognize the btf_decl_tag attribute.
/linux/tools/bpf/bpftool/
A Dbtf.c348 const struct btf_decl_tag *tag = (const void *)(t + 1); in dump_btf_type()
/linux/kernel/bpf/
A Dbtf.c633 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