/linux-master/tools/testing/selftests/bpf/bpf_testmod/ |
H A D | bpf_testmod.c | 528 static int bpf_testmod_ops_init(struct btf *btf) argument
|
/linux-master/kernel/bpf/ |
H A D | verifier.c | 283 struct btf *btf; member in struct:bpf_call_arg_meta 293 struct btf *btf; member in struct:bpf_kfunc_call_arg_meta 344 btf_type_name(const struct btf *btf, u32 id) argument 1001 mark_stack_slots_iter(struct bpf_verifier_env *env, struct bpf_kfunc_call_arg_meta *meta, struct bpf_reg_state *reg, int insn_idx, struct btf *btf, u32 btf_id, int nr_slots) argument 1103 is_iter_reg_valid_init(struct bpf_verifier_env *env, struct bpf_reg_state *reg, struct btf *btf, u32 btf_id, int nr_slots) argument 2348 mark_btf_ld_reg(struct bpf_verifier_env *env, struct bpf_reg_state *regs, u32 regno, enum bpf_reg_type reg_type, struct btf *btf, u32 btf_id, enum bpf_type_flag flag) argument 2500 struct btf *btf = aux->btf; local 2571 struct btf *btf; member in struct:bpf_kfunc_btf 2642 struct btf *btf; local 5302 rcu_protected_object(const struct btf *btf, u32 btf_id) argument 5558 check_ctx_access(struct bpf_verifier_env *env, int insn_idx, int off, int size, enum bpf_access_type t, enum bpf_reg_type *reg_type, struct btf **btf, u32 *btf_id) argument 6835 struct btf *btf = NULL; local 7487 struct btf *btf = NULL; local 9348 btf_check_func_arg_match(struct bpf_verifier_env *env, int subprog, const struct btf *btf, struct bpf_reg_state *regs) argument 9444 struct btf *btf = prog->aux->btf; local 10746 is_kfunc_arg_mem_size(const struct btf *btf, const struct btf_param *arg, const struct bpf_reg_state *reg) argument 10759 is_kfunc_arg_const_mem_size(const struct btf *btf, const struct btf_param *arg, const struct bpf_reg_state *reg) argument 10772 is_kfunc_arg_optional(const struct btf *btf, const struct btf_param *arg) argument 10777 is_kfunc_arg_constant(const struct btf *btf, const struct btf_param *arg) argument 10782 is_kfunc_arg_ignore(const struct btf *btf, const struct btf_param *arg) argument 10787 is_kfunc_arg_map(const struct btf *btf, const struct btf_param *arg) argument 10792 is_kfunc_arg_alloc_obj(const struct btf *btf, const struct btf_param *arg) argument 10797 is_kfunc_arg_uninit(const struct btf *btf, const struct btf_param *arg) argument 10802 is_kfunc_arg_refcounted_kptr(const struct btf *btf, const struct btf_param *arg) argument 10807 is_kfunc_arg_nullable(const struct btf *btf, const struct btf_param *arg) argument 10812 is_kfunc_arg_const_str(const struct btf *btf, const struct btf_param *arg) argument 10817 is_kfunc_arg_scalar_with_name(const struct btf *btf, const struct btf_param *arg, const char *name) argument 10851 __is_kfunc_ptr_arg_type(const struct btf *btf, const struct btf_param *arg, int type) argument 10868 is_kfunc_arg_dynptr(const struct btf *btf, const struct btf_param *arg) argument 10873 is_kfunc_arg_list_head(const struct btf *btf, const struct btf_param *arg) argument 10878 is_kfunc_arg_list_node(const struct btf *btf, const struct btf_param *arg) argument 10883 is_kfunc_arg_rbtree_root(const struct btf *btf, const struct btf_param *arg) argument 10888 is_kfunc_arg_rbtree_node(const struct btf *btf, const struct btf_param *arg) argument 10893 is_kfunc_arg_callback(struct bpf_verifier_env *env, const struct btf *btf, const struct btf_param *arg) argument 10906 __btf_type_is_scalar_struct(struct bpf_verifier_env *env, const struct btf *btf, const struct btf_type *t, int rec) argument 11608 const struct btf *btf = meta->btf; local 15909 const struct btf *btf; local 16011 const struct btf *btf; local 16101 const struct btf *btf; local 16228 const struct btf *btf = prog->aux->btf; local 16294 struct btf *btf; local 17938 find_btf_percpu_datasec(struct btf *btf) argument 17980 struct btf *btf; local 20675 struct btf *btf; local 20787 struct btf *btf; local [all...] |
H A D | syscall.c | 729 struct btf *btf local 1056 map_check_no_btf(const struct bpf_map *map, const struct btf *btf, const struct btf_type *key_type, const struct btf_type *value_type) argument 1064 map_check_btf(struct bpf_map *map, struct bpf_token *token, const struct btf *btf, u32 btf_key_id, u32 btf_value_id) argument 1346 struct btf *btf; local 4874 bpf_btf_get_info_by_fd(struct file *file, struct btf *btf, const union bpf_attr *attr, union bpf_attr __user *uattr) argument [all...] |
H A D | bloom_filter.c | 183 bloom_map_check_btf(const struct bpf_map *map, const struct btf *btf, const struct btf_type *key_type, const struct btf_type *value_type) argument
|
H A D | arena.c | 201 static int arena_map_check_btf(const struct bpf_map *map, const struct btf *btf, argument
|
/linux-master/tools/perf/util/ |
H A D | annotate.c | 1940 struct btf *btf = NULL; local
|
H A D | bpf-event.c | 96 perf_env__fetch_btf(struct perf_env *env, u32 btf_id, struct btf *btf) argument 122 synthesize_bpf_prog_name(char *buf, int size, struct bpf_prog_info *info, struct btf *btf, u32 sub_id) argument 177 struct btf *btf = NULL; local 455 struct btf *btf = NULL; local 556 struct btf *btf = NULL; local [all...] |
/linux-master/kernel/trace/ |
H A D | bpf_trace.c | 526 const struct btf *btf; local 982 bpf_btf_printf_prepare(struct btf_ptr *ptr, u32 btf_ptr_size, u64 flags, const struct btf **btf, s32 *btf_id) argument 1015 const struct btf *btf; local [all...] |
H A D | trace_probe.c | 313 static bool btf_type_is_char_ptr(struct btf *btf, const struct btf_type *type) argument 331 static bool btf_type_is_char_array(struct btf *btf, const struct btf_type *type) argument 354 struct btf *btf = ctx->btf; local 384 fetch_type_from_btf_type(struct btf *btf, const struct btf_type *type, struct traceprobe_parse_context *ctx) argument 442 struct btf *btf; local 697 struct btf *btf = ctx->btf; local [all...] |
H A D | trace_probe.h | 416 struct btf *btf; /* The BTF to be used */ member in struct:traceprobe_parse_context
|
/linux-master/include/linux/ |
H A D | bpf.h | 210 struct btf *btf; member in struct:btf_field_kptr 220 struct btf *btf; member in struct:btf_field_graph_root 275 struct btf *bt member in struct:bpf_map 915 struct btf *btf; member in struct:bpf_insn_access_aux::__anon211::__anon212 1418 struct btf *btf; member in struct:bpf_ctx_arg_aux 1423 struct btf *btf; member in struct:btf_mod_pair 1494 struct btf *btf; member in struct:bpf_prog_aux 2609 const struct btf *btf; member in struct:bpf_core_ctx [all...] |
/linux-master/tools/lib/bpf/ |
H A D | libbpf.c | 604 struct btf *btf; member in struct:module_btf 673 struct btf *btf; member in struct:bpf_object 934 find_member_by_name(const struct btf *bt argument 965 struct btf *btf; local 1089 const struct btf *btf = obj->btf; local 1282 const struct btf *btf; local 2266 skip_mods_and_typedefs(const struct btf *btf, __u32 id, __u32 *res_id) argument 2283 resolve_func_ptr(const struct btf *btf, __u32 id, __u32 *res_id) argument 2335 get_map_field_int(const char *map_name, const struct btf *btf, const struct btf_member *m, __u32 *res) argument 2365 get_map_field_long(const char *map_name, const struct btf *btf, const struct btf_member *m, __u64 *res) argument 2440 parse_btf_map_def(const char *map_name, struct btf *btf, const struct btf_type *def_t, bool strict, struct btf_map_def *map_def, struct btf_map_def *inner_def) argument 3012 bpf_object__sanitize_btf(struct bpf_object *obj, struct btf *btf) argument 3221 btf_fixup_datasec(struct bpf_object *obj, struct btf *btf, struct btf_type *t) argument 3920 find_extern_btf_id(const struct btf *btf, const char *ext_name) argument 3953 find_extern_sec_btf_id(struct btf *btf, int ext_btf_id) argument 3978 find_kcfg_type(const struct btf *btf, int id, bool *is_signed) argument 4045 find_int_btf_id(const struct btf *btf) argument 4061 add_dummy_ksym_var(struct btf *btf) argument 5496 struct btf *btf; local 6639 need_func_arg_type_fixup(const struct btf *btf, const struct bpf_program *prog, const char *subprog_name, int arg_idx, int arg_type_id, const char *ctx_name) argument 6710 clone_func_btf_info(struct btf *btf, int orig_fn_id, struct bpf_program *prog) argument 6784 struct btf *btf = obj->btf; local 8048 struct btf *btf; local 8084 struct btf *btf = NULL; local 9605 const struct btf *btf; local 9731 find_btf_by_prefix_kind(const struct btf *btf, const char *prefix, const char *name, __u32 kind) argument 9748 find_attach_btf_id(struct btf *btf, const char *name, enum bpf_attach_type attach_type) argument 9761 struct btf *btf; local 9783 struct btf *btf; local 10031 struct btf *btf; local 13580 struct btf *btf; local [all...] |
H A D | linker.c | 58 struct btf *btf; member in struct:src_obj 147 struct btf *btf; member in struct:bpf_linker 936 struct btf *btf = ctx; local 946 struct btf *btf = ctx; local 2679 struct btf *btf = linker->btf; local [all...] |
H A D | btf.c | 31 struct btf { struct 192 static void *btf_add_type_offs_mem(struct btf *btf, size_t add_cnt) argument 198 static int btf_add_type_idx_entry(struct btf *bt argument 220 btf_parse_hdr(struct btf *btf) argument 269 btf_parse_str_sec(struct btf *btf) argument 413 btf_parse_type_sec(struct btf *btf) argument 451 btf_validate_str(const struct btf *btf, __u32 str_off, const char *what, __u32 type_id) argument 464 btf_validate_id(const struct btf *btf, __u32 id, __u32 ctx_id) argument 477 btf_validate_type(const struct btf *btf, const struct btf_type *t, __u32 id) argument 595 btf_sanity_check(const struct btf *btf) argument 610 btf__type_cnt(const struct btf *btf) argument 615 btf__base_btf(const struct btf *btf) argument 621 btf_type_by_id(const struct btf *btf, __u32 type_id) argument 630 btf__type_by_id(const struct btf *btf, __u32 type_id) argument 637 determine_ptr_size(const struct btf *btf) argument 681 btf_ptr_sz(const struct btf *btf) argument 696 btf__pointer_size(const struct btf *btf) argument 711 btf__set_pointer_size(struct btf *btf, size_t ptr_sz) argument 730 btf__endianness(const struct btf *btf) argument 738 btf__set_endianness(struct btf *btf, enum btf_endianness endian) argument 763 btf__resolve_size(const struct btf *btf, __u32 type_id) argument 818 btf__align_of(const struct btf *btf, __u32 id) argument 873 btf__resolve_type(const struct btf *btf, __u32 type_id) argument 893 btf__find_by_name(const struct btf *btf, const char *type_name) argument 911 btf_find_by_name_kind(const struct btf *btf, int start_id, const char *type_name, __u32 kind) argument 933 btf__find_by_name_kind_own(const struct btf *btf, const char *type_name, __u32 kind) argument 939 btf__find_by_name_kind(const struct btf *btf, const char *type_name, __u32 kind) argument 945 btf_is_modifiable(const struct btf *btf) argument 950 btf__free(struct btf *btf) argument 977 struct btf *btf; local 1028 struct btf *btf; local 1092 struct btf *btf = NULL; local 1225 struct btf *btf = NULL; local 1298 struct btf *btf; local 1325 btf_load_into_kernel(struct btf *btf, char *log_buf, size_t log_sz, __u32 log_level, int token_fd) argument 1406 btf__load_into_kernel(struct btf *btf) argument 1411 btf__fd(const struct btf *btf) argument 1416 btf__set_fd(struct btf *btf, int fd) argument 1421 btf_strs_data(const struct btf *btf) argument 1426 btf_get_raw_data(const struct btf *btf, __u32 *size, bool swap_endian) argument 1478 struct btf *btf = (struct btf *)btf_ro; local 1498 btf__str_by_offset(const struct btf *btf, __u32 offset) argument 1508 btf__name_by_offset(const struct btf *btf, __u32 offset) argument 1518 struct btf *btf; local 1569 struct btf *btf; local 1587 btf_invalidate_raw_data(struct btf *btf) argument 1603 btf_ensure_modifiable(struct btf *btf) argument 1663 btf__find_str(struct btf *btf, const char *s) argument 1689 btf__add_str(struct btf *btf, const char *s) argument 1711 btf_add_type_mem(struct btf *btf, size_t add_sz) argument 1722 btf_commit_type(struct btf *btf, int data_sz) argument 1774 btf__add_type(struct btf *btf, const struct btf *src_btf, const struct btf_type *src_type) argument 1803 struct btf *btf = ctx; local 1819 btf__add_btf(struct btf *btf, const struct btf *src_btf) argument 1928 btf__add_int(struct btf *btf, const char *name, size_t byte_sz, int encoding) argument 1976 btf__add_float(struct btf *btf, const char *name, size_t byte_sz) argument 2021 btf_add_ref_kind(struct btf *btf, int kind, const char *name, int ref_type_id) argument 2057 btf__add_ptr(struct btf *btf, int ref_type_id) argument 2071 btf__add_array(struct btf *btf, int index_type_id, int elem_type_id, __u32 nr_elems) argument 2101 btf_add_composite(struct btf *btf, int kind, const char *name, __u32 bytes_sz) argument 2142 btf__add_struct(struct btf *btf, const char *name, __u32 byte_sz) argument 2160 btf__add_union(struct btf *btf, const char *name, __u32 byte_sz) argument 2165 btf_last_type(struct btf *btf) argument 2180 btf__add_field(struct btf *btf, const char *name, int type_id, __u32 bit_offset, __u32 bit_size) argument 2235 btf_add_enum_common(struct btf *btf, const char *name, __u32 byte_sz, bool is_signed, __u8 kind) argument 2280 btf__add_enum(struct btf *btf, const char *name, __u32 byte_sz) argument 2297 btf__add_enum_value(struct btf *btf, const char *name, __s64 value) argument 2359 btf__add_enum64(struct btf *btf, const char *name, __u32 byte_sz, bool is_signed) argument 2374 btf__add_enum64_value(struct btf *btf, const char *name, __u64 value) argument 2426 btf__add_fwd(struct btf *btf, const char *name, enum btf_fwd_kind fwd_kind) argument 2462 btf__add_typedef(struct btf *btf, const char *name, int ref_type_id) argument 2477 btf__add_volatile(struct btf *btf, int ref_type_id) argument 2489 btf__add_const(struct btf *btf, int ref_type_id) argument 2501 btf__add_restrict(struct btf *btf, int ref_type_id) argument 2514 btf__add_type_tag(struct btf *btf, const char *value, int ref_type_id) argument 2530 btf__add_func(struct btf *btf, const char *name, enum btf_func_linkage linkage, int proto_type_id) argument 2562 btf__add_func_proto(struct btf *btf, int ret_type_id) argument 2596 btf__add_func_param(struct btf *btf, const char *name, int type_id) argument 2649 btf__add_var(struct btf *btf, const char *name, int linkage, int type_id) argument 2699 btf__add_datasec(struct btf *btf, const char *name, __u32 byte_sz) argument 2738 btf__add_datasec_var_info(struct btf *btf, int var_type_id, __u32 offset, __u32 byte_sz) argument 2786 btf__add_decl_tag(struct btf *btf, const char *value, int ref_type_id, int component_idx) argument 3214 btf__dedup(struct btf *btf, const struct btf_dedup_opts *opts) argument 3284 struct btf *btf; member in struct:btf_dedup 3390 btf_dedup_new(struct btf *btf, const struct btf_dedup_opts *opts) argument 4957 struct btf *btf; local [all...] |
/linux-master/tools/bpf/bpftool/ |
H A D | gen.c | 59 resolve_func_ptr(const struct btf *btf, __u32 id, __u32 *res_id) argument 147 codegen_datasec_def(struct bpf_object *obj, struct btf *btf, struct btf_dump *d, const struct btf_type *sec, const char *obj_name) argument 235 find_type_for_map(struct btf *btf, const char *map_ident) argument 277 struct btf *btf = bpf_object__btf(obj); local 318 btf_is_ptr_to_func_proto(const struct btf *btf, const struct btf_type *v) argument 326 struct btf *btf = bpf_object__btf(obj); local 499 struct btf *btf = bpf_object__btf(obj); local 939 walk_st_ops_shadow_vars(struct btf *btf, const char *ident, const struct btf_type *map_type, __u32 map_type_id) argument 1054 gen_st_ops_shadow_type(const char *obj_name, struct btf *btf, const char *ident, const struct bpf_map *map) argument 1082 gen_st_ops_shadow(const char *obj_name, struct btf *btf, struct bpf_object *obj) argument 1116 gen_st_ops_shadow_init(struct btf *btf, struct bpf_object *obj) argument 1152 struct btf *btf; local 1534 struct btf *btf; local 1891 btf_save_raw(const struct btf *btf, const char *path) argument 2058 struct btf *btf = info->src_btf; local 2121 struct btf *btf = info->src_btf; local 2304 struct btf *btf = NULL; local [all...] |
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_verifier.c | 901 struct btf *btf = NULL; local [all...] |
H A D | test_progs.c | 987 int get_bpf_max_tramp_links_from(struct btf *btf) argument
|
H A D | test_loader.c | 179 struct btf *btf; local
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | token.c | 571 struct btf *btf = NULL; local
|
H A D | libbpf_str.c | 23 struct btf *btf; local 68 struct btf *btf; local 113 struct btf *btf; local 170 struct btf *btf; local [all...] |
H A D | libbpf_probes.c | 9 struct btf *btf; local 49 struct btf *btf; local [all...] |
H A D | ctx_rewrite.c | 249 static int find_field_offset_aux(struct btf *btf, int btf_id, char *field_name, int off) argument 288 static int find_field_offset(struct btf *btf, char *pattern, regmatch_t *matches) argument 487 match_pattern(struct btf *btf, char *pattern, char *text, char *reg_map[][2]) argument 694 match_program(struct btf *btf, struct prog_info *pinfo, char *pattern, char *reg_map[][2], bool skip_first_insn) argument 757 run_one_testcase(struct btf *btf, struct test_case *test) argument 852 struct btf *btf; local [all...] |
H A D | btf.c | 4790 struct btf *btf = NULL; local [all...] |
/linux-master/tools/testing/selftests/bpf/bpf_test_no_cfi/ |
H A D | bpf_test_no_cfi.c | 13 static int dummy_init(struct btf *btf) argument
|
/linux-master/tools/include/uapi/linux/ |
H A D | bpf.h | 1670 __aligned_u64 btf; member in struct:bpf_attr::__anon3148 6598 __aligned_u64 btf; member in struct:bpf_btf_info
|