Home
last modified time | relevance | path

Searched defs:btf (Results 1 – 25 of 77) sorted by relevance

1234

/linux/kernel/bpf/
H A Dbtf.c254 struct btf { struct
256 struct btf_type **types; argument
261 struct btf_header hdr; argument
269 struct btf_kfunc_set_tab *kfunc_set_tab; argument
270 struct btf_id_dtor_kfunc_tab *dtor_kfunc_tab; argument
271 struct btf_struct_metas *struct_meta_tab; argument
272 struct btf_struct_ops_tab *struct_ops_tab; argument
275 struct btf *base_btf; argument
279 bool kernel_btf; argument
289 const struct btf_type *t; argument
[all …]
H A Dbpf_struct_ops.c43 struct btf *btf; member
89 static bool is_valid_value_type(struct btf *btf, s32 value_id, in is_valid_value_type()
171 static int prepare_arg_info(struct btf *btf, in prepare_arg_info()
310 static bool is_module_member(const struct btf *btf, u32 id) in is_module_member()
332 struct btf *btf, in bpf_struct_ops_desc_init()
555 static int check_zero_holes(const struct btf *btf, const struct btf_type *t, void *data) in check_zero_holes()
1029 static u32 count_func_ptrs(const struct btf *btf, const struct btf_type *t) in count_func_ptrs()
1050 struct btf *btf; in bpf_struct_ops_map_alloc() local
H A Dverifier.c292 struct btf *btf; member
302 struct btf *btf; member
311 struct btf *btf; member
364 btf_type_name(const struct btf * btf,u32 id) btf_type_name() argument
1045 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) mark_stack_slots_iter() argument
1143 is_iter_reg_valid_init(struct bpf_verifier_env * env,struct bpf_reg_state * reg,struct btf * btf,u32 btf_id,int nr_slots) is_iter_reg_valid_init() argument
2936 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) mark_btf_ld_reg() argument
3111 struct btf *btf = aux->btf; bpf_find_exception_callback_insn_off() local
3182 struct btf *btf; global() member
3256 struct btf *btf; __find_kfunc_desc_btf() local
3344 find_kfunc_impl_proto(struct bpf_verifier_env * env,struct btf * btf,const char * func_name) find_kfunc_impl_proto() argument
3377 struct btf *btf; fetch_kfunc_meta() local
8570 struct btf *btf = NULL; process_spin_lock() local
10667 btf_check_func_arg_match(struct bpf_verifier_env * env,int subprog,const struct btf * btf,struct bpf_reg_state * regs) btf_check_func_arg_match() argument
10771 struct btf *btf = prog->aux->btf; btf_check_subprog_call() local
12208 is_kfunc_arg_mem_size(const struct btf * btf,const struct btf_param * arg,const struct bpf_reg_state * reg) is_kfunc_arg_mem_size() argument
12221 is_kfunc_arg_const_mem_size(const struct btf * btf,const struct btf_param * arg,const struct bpf_reg_state * reg) is_kfunc_arg_const_mem_size() argument
12234 is_kfunc_arg_constant(const struct btf * btf,const struct btf_param * arg) is_kfunc_arg_constant() argument
12239 is_kfunc_arg_ignore(const struct btf * btf,const struct btf_param * arg) is_kfunc_arg_ignore() argument
12244 is_kfunc_arg_map(const struct btf * btf,const struct btf_param * arg) is_kfunc_arg_map() argument
12249 is_kfunc_arg_alloc_obj(const struct btf * btf,const struct btf_param * arg) is_kfunc_arg_alloc_obj() argument
12254 is_kfunc_arg_uninit(const struct btf * btf,const struct btf_param * arg) is_kfunc_arg_uninit() argument
12259 is_kfunc_arg_refcounted_kptr(const struct btf * btf,const struct btf_param * arg) is_kfunc_arg_refcounted_kptr() argument
12264 is_kfunc_arg_nullable(const struct btf * btf,const struct btf_param * arg) is_kfunc_arg_nullable() argument
12269 is_kfunc_arg_const_str(const struct btf * btf,const struct btf_param * arg) is_kfunc_arg_const_str() argument
12274 is_kfunc_arg_irq_flag(const struct btf * btf,const struct btf_param * arg) is_kfunc_arg_irq_flag() argument
12279 is_kfunc_arg_scalar_with_name(const struct btf * btf,const struct btf_param * arg,const char * name) is_kfunc_arg_scalar_with_name() argument
12340 is_kfunc_arg_dynptr(const struct btf * btf,const struct btf_param * arg) is_kfunc_arg_dynptr() argument
12345 is_kfunc_arg_list_head(const struct btf * btf,const struct btf_param * arg) is_kfunc_arg_list_head() argument
12350 is_kfunc_arg_list_node(const struct btf * btf,const struct btf_param * arg) is_kfunc_arg_list_node() argument
12355 is_kfunc_arg_rbtree_root(const struct btf * btf,const struct btf_param * arg) is_kfunc_arg_rbtree_root() argument
12360 is_kfunc_arg_rbtree_node(const struct btf * btf,const struct btf_param * arg) is_kfunc_arg_rbtree_node() argument
12365 is_kfunc_arg_timer(const struct btf * btf,const struct btf_param * arg) is_kfunc_arg_timer() argument
12370 is_kfunc_arg_wq(const struct btf * btf,const struct btf_param * arg) is_kfunc_arg_wq() argument
12375 is_kfunc_arg_task_work(const struct btf * btf,const struct btf_param * arg) is_kfunc_arg_task_work() argument
12380 is_kfunc_arg_res_spin_lock(const struct btf * btf,const struct btf_param * arg) is_kfunc_arg_res_spin_lock() argument
12395 is_kfunc_arg_callback(struct bpf_verifier_env * env,const struct btf * btf,const struct btf_param * arg) is_kfunc_arg_callback() argument
12407 is_kfunc_arg_prog_aux(const struct btf * btf,const struct btf_param * arg) is_kfunc_arg_prog_aux() argument
12414 __btf_type_is_scalar_struct(struct bpf_verifier_env * env,const struct btf * btf,const struct btf_type * t,int rec) __btf_type_is_scalar_struct() argument
13337 const struct btf *btf = meta->btf; check_kfunc_args() local
19100 const struct btf *btf; check_btf_func_early() local
19202 const struct btf *btf; check_btf_func() local
19293 const struct btf *btf; check_btf_line() local
19420 const struct btf *btf = prog->aux->btf; check_core_relo() local
19486 struct btf *btf; check_btf_info_early() local
21392 find_btf_percpu_datasec(struct btf * btf) find_btf_percpu_datasec() argument
21423 __add_used_btf(struct bpf_verifier_env * env,struct btf * btf) __add_used_btf() argument
21467 __check_pseudo_btf_id(struct bpf_verifier_env * env,struct bpf_insn * insn,struct bpf_insn_aux_data * aux,struct btf * btf) __check_pseudo_btf_id() argument
21551 struct btf *btf; check_pseudo_btf_id() local
24799 struct btf *btf; check_struct_ops_btf_id() local
24946 struct btf *btf; bpf_check_attach_target() local
25444 struct btf *btf; add_fd_from_fd_array() local
[all...]
H A Dinode.c594 const struct btf *btf; member
612 const struct btf *btf; in find_bpffs_btf_enums() local
637 static bool find_btf_enum_const(const struct btf *btf, const struct btf_type *enum_t, in find_btf_enum_const()
668 const struct btf *btf, in seq_print_delegate_opts()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_dump.c26 static int btf_dump_all_types(const struct btf *btf, void *ctx) in btf_dump_all_types() argument
51 struct btf *btf = NULL; in test_btf_dump_case() local
130 struct btf *btf; global() member
184 struct btf *btf; test_btf_dump_incremental() local
285 struct btf *btf; test_btf_dump_type_tags() local
339 btf_dump_data(struct btf * btf,struct btf_dump * d,char * name,char * prefix,__u64 flags,void * ptr,size_t ptr_sz,char * str,const char * expected_val) btf_dump_data() argument
420 test_btf_dump_int_data(struct btf * btf,struct btf_dump * d,char * str) test_btf_dump_int_data() argument
478 test_btf_dump_float_data(struct btf * btf,struct btf_dump * d,char * str) test_btf_dump_float_data() argument
523 test_btf_dump_char_data(struct btf * btf,struct btf_dump * d,char * str) test_btf_dump_char_data() argument
545 test_btf_dump_typedef_data(struct btf * btf,struct btf_dump * d,char * str) test_btf_dump_typedef_data() argument
600 test_btf_dump_enum_data(struct btf * btf,struct btf_dump * d,char * str) test_btf_dump_enum_data() argument
636 test_btf_dump_struct_data(struct btf * btf,struct btf_dump * d,char * str) test_btf_dump_struct_data() argument
871 test_btf_dump_var_data(struct btf * btf,struct btf_dump * d,char * str) test_btf_dump_var_data() argument
883 struct btf *btf; global() member
998 test_btf_datasec(struct btf * btf,struct btf_dump * d,char * str,const char * name,const char * expected_val,void * data,size_t data_sz) test_btf_datasec() argument
1026 struct btf *btf; test_btf_dump_datasec_data() local
1049 struct btf *btf; test_btf_dump() local
[all...]
H A Dlibbpf_str.c23 struct btf *btf; in test_libbpf_bpf_attach_type_str() local
68 struct btf *btf; in test_libbpf_bpf_link_type_str() local
113 struct btf *btf; in test_libbpf_bpf_map_type_str() local
170 struct btf *btf; in test_libbpf_bpf_prog_type_str() local
H A Dctx_rewrite.c252 static int find_field_offset_aux(struct btf *btf, int btf_id, char *field_name, int off) in find_field_offset_aux()
291 static int find_field_offset(struct btf *btf, char *pattern, regmatch_t *matches) in find_field_offset()
492 static bool match_pattern(struct btf *btf, char *pattern, char *text, char *reg_map[][2]) in match_pattern()
642 static void match_program(struct btf *btf, in match_program()
707 static void run_one_testcase(struct btf *btf, struct test_case *test) in run_one_testcase()
802 struct btf *btf; in test_ctx_rewrite() local
H A Dbtf_write.c7 static void gen_btf(struct btf *btf) in gen_btf()
357 struct btf *btf; in test_btf_add() local
H A Dlinked_list.c253 struct btf *btf; in init_btf() local
279 struct btf *btf; in list_and_rb_node_same_struct() local
331 struct btf *btf = NULL; in test_btf() local
H A Dtest_global_funcs.c26 static void check_ctx_arg_type(const struct btf *btf, const struct btf_param *p) in check_ctx_arg_type()
47 struct btf *btf = NULL; in subtest_ctx_arg_rewrite() local
H A Dlibbpf_probes.c9 struct btf *btf; in test_libbpf_probe_prog_types() local
49 struct btf *btf; in test_libbpf_probe_map_types() local
H A Dtest_bpf_ma.c16 struct btf *btf; in do_bpf_ma_test() local
H A Dbtf_endian.c18 struct btf *btf = NULL, *swap_btf = NULL; in test_btf_endian() local
H A Dbtf_field_iter.c43 struct btf *btf = NULL; in test_btf_field_iter() local
H A Dbtf_dedup_split.c332 static void btf_add_dup_struct_in_cu(struct btf *btf, int start_id) in btf_add_dup_struct_in_cu() argument
[all...]
/linux/kernel/bpf/preload/iterators/
H A Diterators.bpf.c34 struct btf { struct
36 struct btf_type **types; argument
37 struct btf_header hdr; argument
46 struct btf *btf; argument
59 static const char *get_name(struct btf *btf, long btf_id, const char *fallback) in get_name()
/linux/tools/testing/selftests/bpf/
H A Dbtf_helpers.c81 static const char *btf_str(const struct btf *btf, __u32 off) in btf_str()
88 int fprintf_btf_type_raw(FILE *out, const struct btf *btf, __u32 id) in fprintf_btf_type_raw()
216 const char *btf_type_raw_dump(const struct btf *btf, int type_id) in btf_type_raw_dump()
234 int btf_validate_raw(struct btf *btf, int nr_types, const char *exp_types[]) in btf_validate_raw()
257 const char *btf_type_c_dump(const struct btf *btf) in btf_type_c_dump()
H A Dbtf_helpers.h13 #define VALIDATE_RAW_BTF(btf, raw_types...) \ argument
/linux/tools/bpf/bpftool/
H A Dbtf.c107 static const char *btf_str(const struct btf *btf, __u32 off) in btf_str()
119 static int dump_btf_type(const struct btf *btf, __u32 id, in dump_btf_type()
435 static int dump_btf_raw(const struct btf *btf, in dump_btf_raw()
504 struct btf *btf = ctx; in cmp_kfuncs() local
512 static int dump_btf_kfuncs(struct btf_dump *d, const struct btf *btf) in dump_btf_kfuncs()
589 static int btf_type_rank(const struct btf *btf, __u32 index, bool has_name) in btf_type_rank()
629 static const char *btf_type_sort_name(const struct btf *btf, __u32 index, bool from_ref) in btf_type_sort_name()
666 static __u64 btf_name_hasher(__u64 hash, const struct btf *btf, __u32 name_off) in btf_name_hasher()
674 static __u64 btf_type_disambig_hash(const struct btf *btf, __u32 id, bool include_members) in btf_type_disambig_hash()
745 static struct sort_datum *sort_btf_c(const struct btf *btf) in sort_btf_c()
[all …]
H A Dmap.c133 unsigned char *value, struct btf *btf) in print_entry_json() argument
746 struct bpf_map_info *map_info, struct btf *bt in dump_map_elem() argument
793 get_map_kv_btf(const struct bpf_map_info * info,struct btf ** btf) get_map_kv_btf() argument
819 free_map_kv_btf(struct btf * btf) free_map_kv_btf() argument
831 struct btf *btf = NULL; map_dump() local
1038 struct btf *btf; print_key_value() local
[all...]
H A Dxlated_dumper.c230 struct btf *btf = dd->btf; in dump_xlated_json() local
315 struct btf *btf = dd->btf; in dump_xlated_plain() local
383 struct btf *btf = dd->btf; dump_xlated_for_graph() local
[all...]
/linux/tools/bpf/resolve_btfids/
H A Dmain.c127 struct btf *btf; member
165 struct btf *btf; member
583 struct btf *base_btf = NULL, *btf = NULL; in load_btf() local
623 struct btf *btf = obj->btf; in symbols_resolve() local
862 static int dump_raw_btf(struct btf *btf, const char *out_path) in dump_raw_btf()
881 static const struct btf_type *btf_type_skip_qualifiers(const struct btf *btf, s32 type_id) in btf_type_skip_qualifiers()
932 struct btf *btf = ctx->btf; in collect_decl_tags() local
995 struct btf *btf = ctx->btf; in collect_kfuncs() local
1064 static bool is_kf_implicit_arg(const struct btf *btf, const struct btf_param *p) in is_kf_implicit_arg()
1118 struct btf *btf = ctx->btf; in process_kfunc_with_implicit_args() local
[all …]
/linux/tools/perf/util/
H A Dbpf-event.c106 struct btf *btf) in perf_env__fetch_btf()
132 struct btf *btf, in synthesize_bpf_prog_name()
176 struct btf *btf; member
189 struct btf *btf; in bpf_metadata_read_map_data() local
279 static void format_btf_variable(struct btf *btf, char *buf, size_t buf_size, in format_btf_variable()
542 struct btf *btf = NULL; in perf_event__synthesize_one_bpf_prog() local
838 struct btf *btf = NULL; in perf_env__add_bpf_info() local
953 struct btf *btf = NULL; in __bpf_event__print_bpf_prog_info() local
/linux/tools/lib/bpf/
H A Drelo_core.h10 const struct btf *btf; member
30 const struct btf *btf; member
/linux/kernel/trace/
H A Dtrace_probe.c342 static bool btf_type_is_char_ptr(struct btf *btf, const struct btf_type *type) in btf_type_is_char_ptr()
360 static bool btf_type_is_char_array(struct btf *btf, const struct btf_type *type) in btf_type_is_char_array()
383 struct btf *btf = ctx->btf; in check_prepare_btf_string_fetch() local
413 static const char *fetch_type_from_btf_type(struct btf *btf, in fetch_type_from_btf_type()
471 struct btf *btf; in query_btf_context() local
730 struct btf *btf = ctx->btf; in find_fetch_type_from_btf_type() local

1234