Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/progs/
A Dbpf_misc.h120 #define __failure __attribute__((btf_decl_tag("comment:test_expect_failure")))
121 #define __success __attribute__((btf_decl_tag("comment:test_expect_success")))
128 #define __log_level(lvl) __attribute__((btf_decl_tag("comment:test_log_level="#lvl)))
129 #define __flag(flag) __attribute__((btf_decl_tag("comment:test_prog_flags="#flag)))
130 #define __retval(val) __attribute__((btf_decl_tag("comment:test_retval="XSTR(val))))
132 #define __auxiliary __attribute__((btf_decl_tag("comment:test_auxiliary")))
133 #define __auxiliary_unpriv __attribute__((btf_decl_tag("comment:test_auxiliary_unpriv")))
134 #define __btf_path(path) __attribute__((btf_decl_tag("comment:test_btf_path=" path)))
135 #define __arch(arch) __attribute__((btf_decl_tag("comment:test_arch=" arch)))
140 #define __load_if_JITed() __attribute__((btf_decl_tag("comment:load_mode=jited")))
[all …]
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")))
/tools/lib/bpf/
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")))
A Dbtf.h608 struct btf_decl_tag;
609 static inline struct btf_decl_tag *btf_decl_tag(const struct btf_type *t) in btf_decl_tag() function
611 return (struct btf_decl_tag *)(t + 1); in btf_decl_tag()
A Dbtf.c330 return base_size + sizeof(struct btf_decl_tag); in btf_type_size()
413 btf_decl_tag(t)->component_idx = bswap_32(btf_decl_tag(t)->component_idx); in btf_bswap_type_rest()
2947 sz = sizeof(struct btf_type) + sizeof(struct btf_decl_tag); in btf_add_decl_tag()
2959 btf_decl_tag(t)->component_idx = component_idx; in btf_add_decl_tag()
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/include/uapi/linux/
A Dbtf.h187 struct btf_decl_tag { struct
/tools/testing/selftests/bpf/
A Dbpf_experimental.h9 #define __contains(name, node) __attribute__((btf_decl_tag("contains:" #name ":" #node)))
242 #define __exception_cb(name) __attribute__((btf_decl_tag("exception_callback:" #name)))
A Dbtf_helpers.c204 t->type, btf_decl_tag(t)->component_idx); in fprintf_btf_type_raw()
A DREADME.rst286 The btf_tag selftest requires LLVM support to recognize the btf_decl_tag and
A Dtest_loader.c441 if (t->type != func_id || btf_decl_tag(t)->component_idx != -1) in parse_test_spec()
/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()
A Dbtf.c8062 return base_size + sizeof(struct btf_decl_tag); in btf_type_size()
/tools/bpf/bpftool/
A Dbtf.c413 const struct btf_decl_tag *tag = (const void *)(t + 1); in dump_btf_type()
531 if (btf_decl_tag(t)->component_idx != -1) in dump_btf_kfuncs()
/tools/sched_ext/include/scx/
A Dcommon.bpf.h284 #define __contains(name, node) __attribute__((btf_decl_tag("contains:" #name ":" #node)))

Completed in 61 milliseconds