Searched refs:btf_decl_tag (Results 1 – 19 of 19) sorted by relevance
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_btf_decl_tag.c | 7 #if __has_attribute(btf_decl_tag) 8 #define __tag1 __attribute__((btf_decl_tag("tag1"))) 9 #define __tag2 __attribute__((btf_decl_tag("tag2")))
|
| H A D | bpf_misc.h | 133 #define __test_tag(tag) __attribute__((btf_decl_tag("comment:" XSTR(__COUNTER__) ":" tag)))
|
| /linux/tools/lib/bpf/ |
| H A D | bpf_helpers.h | 214 #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 D | btf.h | 680 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 D | btf.c | 57 [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 D | libbpf.c | 7090 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 D | btf.h | 194 /* 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 D | btf.h | 507 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 D | bpf_experimental.h | 10 #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 D | btf_helpers.c | 204 t->type, btf_decl_tag(t)->component_idx); in fprintf_btf_type_raw()
|
| H A D | README.rst | 286 The btf_tag selftest requires LLVM support to recognize the btf_decl_tag and
|
| H A D | test_loader.c | 358 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 D | btf_write.c | 288 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 D | resolve_btfids.c | 208 if (btf_decl_tag(t)->component_idx != -1) in btf_has_decl_tag()
|
| H A D | btf.c | 8204 return base_size + sizeof(struct btf_decl_tag); in btf_type_size()
|
| /linux/tools/bpf/bpftool/ |
| H A D | btf.c | 408 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 D | common.bpf.h | 380 #define __contains(name, node) __attribute__((btf_decl_tag("contains:" #name ":" #node)))
|
| /linux/tools/bpf/resolve_btfids/ |
| H A D | main.c | 1272 idx = btf_decl_tag(t)->component_idx; in process_kfunc_with_implicit_args()
|
| /linux/kernel/bpf/ |
| H A D | btf.c | 853 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()
|