| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | btf_dump.c | 26 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 D | libbpf_str.c | 23 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 D | ctx_rewrite.c | 252 static int find_field_offset_aux(struct btf *btf, int btf_id, char *field_name, int off) in find_field_offset_aux() argument 291 find_field_offset(struct btf * btf,char * pattern,regmatch_t * matches) find_field_offset() argument 492 match_pattern(struct btf * btf,char * pattern,char * text,char * reg_map[][2]) match_pattern() argument 642 match_program(struct btf * btf,struct prog_info * pinfo,char * pattern,char * reg_map[][2],bool skip_first_insn) match_program() argument 707 run_one_testcase(struct btf * btf,struct test_case * test) run_one_testcase() argument 802 struct btf *btf; test_ctx_rewrite() local [all...] |
| H A D | btf_write.c | 7 static void gen_btf(struct btf *btf) in gen_btf() argument 357 struct btf *btf; test_btf_add() local [all...] |
| H A D | test_global_funcs.c | 26 check_ctx_arg_type(const struct btf * btf,const struct btf_param * p) check_ctx_arg_type() argument 47 struct btf *btf = NULL; subtest_ctx_arg_rewrite() local [all...] |
| H A D | linked_list.c | 253 struct btf *btf; init_btf() local 279 struct btf *btf; list_and_rb_node_same_struct() local 331 struct btf *btf = NULL; test_btf() local [all...] |
| H A D | libbpf_probes.c | 9 struct btf *btf; in test_libbpf_probe_prog_types() local 49 struct btf *btf; in test_libbpf_probe_map_types() local
|
| H A D | test_bpf_ma.c | 16 struct btf *btf; in do_bpf_ma_test() local
|
| H A D | btf_endian.c | 18 struct btf *btf = NULL, *swap_btf = NULL; in test_btf_endian() local
|
| H A D | btf_field_iter.c | 43 struct btf *btf = NULL; in test_btf_field_iter() local
|
| H A D | btf_dedup_split.c | 332 btf_add_dup_struct_in_cu(struct btf * btf,int start_id) btf_add_dup_struct_in_cu() argument [all...] |
| H A D | resolve_btfids.c | 100 struct btf *btf; in resolve_symbols() local [all...] |
| H A D | ksyms_btf.c | 158 struct btf *btf; in test_ksyms_btf() local
|
| /linux/kernel/bpf/preload/iterators/ |
| H A D | iterators.bpf.c | 34 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 D | btf_helpers.c | 81 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 D | btf_helpers.h | 13 #define VALIDATE_RAW_BTF(btf, raw_types...) \ argument
|
| /linux/tools/bpf/bpftool/ |
| H A D | btf.c | 107 btf_str(const struct btf * btf,__u32 off) btf_str() argument 119 dump_btf_type(const struct btf * btf,__u32 id,const struct btf_type * t) dump_btf_type() argument 435 dump_btf_raw(const struct btf * btf,__u32 * root_type_ids,int root_type_cnt) dump_btf_raw() argument 504 struct btf *btf = ctx; cmp_kfuncs() local 512 dump_btf_kfuncs(struct btf_dump * d,const struct btf * btf) dump_btf_kfuncs() argument 589 btf_type_rank(const struct btf * btf,__u32 index,bool has_name) btf_type_rank() argument 629 btf_type_sort_name(const struct btf * btf,__u32 index,bool from_ref) btf_type_sort_name() argument 666 btf_name_hasher(__u64 hash,const struct btf * btf,__u32 name_off) btf_name_hasher() argument 674 btf_type_disambig_hash(const struct btf * btf,__u32 id,bool include_members) btf_type_disambig_hash() argument 745 sort_btf_c(const struct btf * btf) sort_btf_c() argument 771 dump_btf_c(const struct btf * btf,__u32 * root_type_ids,int root_type_cnt,bool sort_dump) dump_btf_c() argument 884 struct btf *btf = NULL, *base = NULL; do_dump() local [all...] |
| H A D | xlated_dumper.c | 230 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...] |
| H A D | map.c | 133 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...] |
| /linux/tools/bpf/resolve_btfids/ |
| H A D | main.c | 127 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() 1119 struct btf *btf = ctx->btf; in process_kfunc_with_implicit_args() local [all …]
|
| /linux/tools/perf/util/ |
| H A D | bpf-event.c | 106 perf_env__fetch_btf(struct perf_env * env,u32 btf_id,struct btf * btf) perf_env__fetch_btf() argument 132 synthesize_bpf_prog_name(char * buf,int size,struct bpf_prog_info * info,struct btf * btf,u32 sub_id) synthesize_bpf_prog_name() argument 176 struct btf *btf; global() member 189 struct btf *btf; bpf_metadata_read_map_data() local 279 format_btf_variable(struct btf * btf,char * buf,size_t buf_size,const struct btf_type * t,const void * btf_data) format_btf_variable() argument 542 struct btf *btf = NULL; perf_event__synthesize_one_bpf_prog() local 838 struct btf *btf = NULL; perf_env__add_bpf_info() local 953 struct btf *btf = NULL; __bpf_event__print_bpf_prog_info() local [all...] |
| /linux/tools/lib/bpf/ |
| H A D | relo_core.h | 10 const struct btf *btf; member 30 const struct btf *btf; member
|
| H A D | btf_relocate.c | 39 struct btf *btf; member 444 int btf_relocate(struct btf *btf, const struct btf *base_btf, __u32 **id_map) in btf_relocate()
|
| /linux/kernel/trace/ |
| H A D | trace_btf.c | 70 const struct btf_member *btf_find_struct_member(struct btf *btf, in btf_find_struct_member()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | bpf_mod_race.c | 94 int BPF_PROG(fexit_module_get, const struct btf *btf, struct module *mod) in BPF_PROG()
|