Searched refs:btf_decl_tag (Results 1 – 20 of 20) sorted by relevance
| /linux/tools/testing/selftests/bpf/progs/ |
| A D | bpf_misc.h | 113 #define __failure __attribute__((btf_decl_tag("comment:test_expect_failure"))) 114 #define __success __attribute__((btf_decl_tag("comment:test_expect_success"))) 115 #define __description(desc) __attribute__((btf_decl_tag("comment:test_description=" desc))) 119 #define __failure_unpriv __attribute__((btf_decl_tag("comment:test_expect_failure_unpriv"))) 121 #define __log_level(lvl) __attribute__((btf_decl_tag("comment:test_log_level="#lvl))) 122 #define __flag(flag) __attribute__((btf_decl_tag("comment:test_prog_flags="#flag))) 123 #define __retval(val) __attribute__((btf_decl_tag("comment:test_retval="#val))) 125 #define __auxiliary __attribute__((btf_decl_tag("comment:test_auxiliary"))) 126 #define __auxiliary_unpriv __attribute__((btf_decl_tag("comment:test_auxiliary_unpriv"))) 127 #define __btf_path(path) __attribute__((btf_decl_tag("comment:test_btf_path=" path))) [all …]
|
| 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")))
|
| /linux/tools/lib/bpf/ |
| A D | bpf_helpers.h | 205 #define __arg_ctx __attribute__((btf_decl_tag("arg:ctx"))) 206 #define __arg_nonnull __attribute((btf_decl_tag("arg:nonnull"))) 207 #define __arg_nullable __attribute((btf_decl_tag("arg:nullable"))) 208 #define __arg_trusted __attribute((btf_decl_tag("arg:trusted"))) 209 #define __arg_arena __attribute((btf_decl_tag("arg:arena")))
|
| A D | btf.h | 601 struct btf_decl_tag; 602 static inline struct btf_decl_tag *btf_decl_tag(const struct btf_type *t) in btf_decl_tag() function 604 return (struct btf_decl_tag *)(t + 1); in btf_decl_tag()
|
| A D | btf.c | 325 return base_size + sizeof(struct btf_decl_tag); in btf_type_size() 408 btf_decl_tag(t)->component_idx = bswap_32(btf_decl_tag(t)->component_idx); in btf_bswap_type_rest() 2871 sz = sizeof(struct btf_type) + sizeof(struct btf_decl_tag); in btf__add_decl_tag() 2883 btf_decl_tag(t)->component_idx = component_idx; in btf__add_decl_tag()
|
| A D | libbpf.c | 6617 if (!btf_is_decl_tag(t) || btf_decl_tag(t)->component_idx != -1) in bpf_prog_assign_exc_cb() 6942 arg_idx = btf_decl_tag(t)->component_idx; in bpf_program_fixup_func_info()
|
| /linux/tools/include/uapi/linux/ |
| A D | btf.h | 186 struct btf_decl_tag { struct
|
| /linux/include/uapi/linux/ |
| A D | btf.h | 186 struct btf_decl_tag { struct
|
| /linux/include/linux/ |
| A D | btf.h | 489 static inline struct btf_decl_tag *btf_decl_tag(const struct btf_type *t) in btf_decl_tag() function 491 return (struct btf_decl_tag *)(t + 1); in btf_decl_tag()
|
| /linux/tools/testing/selftests/bpf/ |
| A D | bpf_experimental.h | 9 #define __contains(name, node) __attribute__((btf_decl_tag("contains:" #name ":" #node))) 242 #define __exception_cb(name) __attribute__((btf_decl_tag("exception_callback:" #name)))
|
| A D | btf_helpers.c | 204 t->type, btf_decl_tag(t)->component_idx); in fprintf_btf_type_raw()
|
| A D | README.rst | 286 The btf_tag selftest requires LLVM support to recognize the btf_decl_tag and
|
| A D | test_loader.c | 406 if (t->type != func_id || btf_decl_tag(t)->component_idx != -1) in parse_test_spec()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| 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()
|
| A D | btf.c | 8047 return base_size + sizeof(struct btf_decl_tag); in btf_type_size()
|
| /linux/Documentation/bpf/ |
| A D | btf.rst | 486 ``btf_type`` is followed by ``struct btf_decl_tag``.:: 488 struct btf_decl_tag { 492 The ``name_off`` encodes btf_decl_tag attribute string. 494 For ``var`` or ``typedef`` type, ``btf_decl_tag.component_idx`` must be ``-1``. 495 For the other three types, if the btf_decl_tag attribute is 497 ``btf_decl_tag.component_idx`` must be ``-1``. Otherwise, 499 a ``func`` argument, and ``btf_decl_tag.component_idx`` should be a
|
| /linux/tools/sched_ext/include/scx/ |
| A D | common.bpf.h | 245 #define __contains(name, node) __attribute__((btf_decl_tag("contains:" #name ":" #node)))
|
| /linux/tools/bpf/bpftool/ |
| A D | btf.c | 406 const struct btf_decl_tag *tag = (const void *)(t + 1); in dump_btf_type() 484 if (btf_decl_tag(t)->component_idx != -1) in dump_btf_kfuncs()
|
| /linux/kernel/bpf/ |
| A D | btf.c | 744 static const struct btf_decl_tag *btf_type_decl_tag(const struct btf_type *t) in btf_type_decl_tag() 746 return (const struct btf_decl_tag *)(t + 1); in btf_type_decl_tag() 4905 const struct btf_decl_tag *tag; in btf_decl_tag_check_meta()
|
| /linux/lib/ |
| A D | Kconfig.debug | 400 btf_decl_tag) or not. Currently only clang compiler implements
|
Completed in 117 milliseconds