Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_btf_decl_tag.c7 #if __has_attribute(btf_decl_tag)
8 #define __tag1 __attribute__((btf_decl_tag("tag1")))
9 #define __tag2 __attribute__((btf_decl_tag("tag2")))
H A Dbpf_misc.h133 #define __test_tag(tag) __attribute__((btf_decl_tag("comment:" XSTR(__COUNTER__) ":" tag)))
/linux/tools/lib/bpf/
H A Dbpf_helpers.h214 #define __arg_ctx __attribute__((btf_decl_tag("arg:ctx")))
215 #define __arg_nonnull __attribute((btf_decl_tag("arg:nonnull")))
216 #define __arg_nullable __attribute((btf_decl_tag("arg:nullable")))
217 #define __arg_trusted __attribute((btf_decl_tag("arg:trusted")))
218 #define __arg_untrusted __attribute((btf_decl_tag("arg:untrusted")))
219 #define __arg_arena __attribute((btf_decl_tag("arg:arena")))
H A Dbtf.h680 struct btf_decl_tag;
681 static inline struct btf_decl_tag *btf_decl_tag(const struct btf_type *t) in btf_decl_tag() function
683 return (struct btf_decl_tag *)(t + 1); in btf_decl_tag()
H A Dbtf.c57 [BTF_KIND_DECL_TAG] = { sizeof(struct btf_decl_tag), 0, 0 },
488 return base_size + sizeof(struct btf_decl_tag); in btf_type_size()
570 btf_decl_tag(t)->component_idx = bswap_32(btf_decl_tag(t)->component_idx); in btf_bswap_type_rest()
3297 sz = sizeof(struct btf_type) + sizeof(struct btf_decl_tag); in btf_add_decl_tag()
3309 btf_decl_tag(t)->component_idx = component_idx; in btf_add_decl_tag()
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/include/uapi/linux/
H A Dbtf.h194 /* BTF_KIND_DECL_TAG is followed by a single "struct btf_decl_tag" to describe
201 struct btf_decl_tag {
186 struct btf_decl_tag { global() struct
187 component_idxbtf_decl_tag global() argument
/linux/include/linux/
H A Dbtf.h507 static inline struct btf_decl_tag *btf_decl_tag(const struct btf_type *t) in btf_decl_tag() function
509 return (struct btf_decl_tag *)(t + 1); in btf_decl_tag()
/linux/tools/testing/selftests/bpf/
H A Dbpf_experimental.h10 #define __contains(name, node) __attribute__((btf_decl_tag("contains:" #name ":" #node)))
95 #define __exception_cb(name) __attribute__((btf_decl_tag("exception_callback:" #name)))
H A Dbtf_helpers.c204 t->type, btf_decl_tag(t)->component_idx); in fprintf_btf_type_raw()
H A DREADME.rst286 The btf_tag selftest requires LLVM support to recognize the btf_decl_tag and
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/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()
298 ASSERT_EQ(btf_decl_tag(t)->component_idx, 1, "tag_component_idx"); in gen_btf()
H A Dresolve_btfids.c208 if (btf_decl_tag(t)->component_idx != -1) in btf_has_decl_tag()
H A Dbtf.c8204 return base_size + sizeof(struct btf_decl_tag); in btf_type_size()
/linux/tools/bpf/bpftool/
H A Dbtf.c408 const struct btf_decl_tag *tag = (const void *)(t + 1); in dump_btf_type()
526 if (btf_decl_tag(t)->component_idx != -1) in dump_btf_kfuncs()
/linux/tools/sched_ext/include/scx/
H A Dcommon.bpf.h380 #define __contains(name, node) __attribute__((btf_decl_tag("contains:" #name ":" #node)))
/linux/tools/bpf/resolve_btfids/
H A Dmain.c1272 idx = btf_decl_tag(t)->component_idx; in process_kfunc_with_implicit_args()
/linux/kernel/bpf/
H A Dbtf.c853 static const struct btf_decl_tag *btf_type_decl_tag(const struct btf_type *t) in btf_type_decl_tag()
855 return (const struct btf_decl_tag *)(t + 1); in btf_type_decl_tag()
5132 const struct btf_decl_tag *tag; in btf_decl_tag_check_meta()