Home
last modified time | relevance | path

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

12

/linux/tools/lib/bpf/
A Dbtf.c31 struct btf { struct
33 void *raw_data;
36 __u32 raw_size;
97 struct btf *base_btf; argument
102 int start_id;
107 int start_str_off;
113 void *strs_data;
117 bool strs_deduped;
120 int fd;
123 int ptr_sz;
[all …]
A Drelo_core.c26 const struct btf *btf; member
43 static bool is_flex_arr(const struct btf *btf, in is_flex_arr()
153 static int bpf_core_parse_spec(const struct btf *btf, in bpf_core_parse_spec()
A Drelo_core.h79 const struct btf *btf; member
A Dlibbpf.c458 struct btf *btf; member
530 struct btf *btf; member
904 const struct btf *btf, in bpf_map__init_kern_struct_ops()
1061 const struct btf *btf; in bpf_object__init_struct_ops_maps() local
3504 static int add_dummy_ksym_var(struct btf *btf) in add_dummy_ksym_var()
5147 struct btf *btf; in load_module_btfs() local
6987 struct btf *btf; in find_ksym_btf_id() local
7023 struct btf *btf = NULL; in bpf_object__resolve_ksym_var_btf_id() local
8512 const struct btf *btf; in bpf_object__collect_st_ops_relos() local
8679 struct btf *btf; in libbpf_find_vmlinux_btf_id() local
[all …]
/linux/kernel/bpf/
A Dbtf.c200 struct btf { struct
216 struct btf *base_btf; argument
220 bool kernel_btf; argument
256 struct btf *btf; member
4371 struct btf *btf; in btf_parse_hdr() local
5979 struct btf *btf; in btf_new_fd() local
6010 struct btf *btf; in btf_get_by_fd() local
6092 struct btf *btf; in btf_get_fd_by_id() local
6142 struct btf *btf; member
6165 struct btf *btf; in btf_module_notify() local
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
A Dbtf_dump.c27 static int btf_dump_all_types(const struct btf *btf, in btf_dump_all_types()
53 struct btf *btf = NULL; in test_btf_dump_case() local
138 struct btf *btf = NULL; in test_btf_dump_incremental() local
246 static int btf_dump_data(struct btf *btf, struct btf_dump *d, in btf_dump_data()
327 static void test_btf_dump_int_data(struct btf *btf, struct btf_dump *d, in test_btf_dump_int_data()
385 static void test_btf_dump_float_data(struct btf *btf, struct btf_dump *d, in test_btf_dump_float_data()
430 static void test_btf_dump_char_data(struct btf *btf, struct btf_dump *d, in test_btf_dump_char_data()
507 static void test_btf_dump_enum_data(struct btf *btf, struct btf_dump *d, in test_btf_dump_enum_data()
778 static void test_btf_dump_var_data(struct btf *btf, struct btf_dump *d, in test_btf_dump_var_data()
817 struct btf *btf = btf__parse("xdping_kern.o", NULL); in test_btf_dump_datasec_data() local
[all …]
A Dbtf_write.c7 static void gen_btf(struct btf *btf) in gen_btf()
304 struct btf *btf; in test_btf_add() local
A Dbtf_endian.c18 struct btf *btf = NULL, *swap_btf = NULL; in test_btf_endian() local
A Dksyms_btf.c143 struct btf *btf; in test_ksyms_btf() local
A Dresolve_btfids.c100 struct btf *btf; in resolve_symbols() local
/linux/tools/testing/selftests/bpf/
A Dbtf_helpers.c79 static const char *btf_str(const struct btf *btf, __u32 off) in btf_str()
86 int fprintf_btf_type_raw(FILE *out, const struct btf *btf, __u32 id) in fprintf_btf_type_raw()
195 const char *btf_type_raw_dump(const struct btf *btf, int type_id) in btf_type_raw_dump()
213 int btf_validate_raw(struct btf *btf, int nr_types, const char *exp_types[]) in btf_validate_raw()
236 const char *btf_type_c_dump(const struct btf *btf) in btf_type_c_dump()
A Dbtf_helpers.h13 #define VALIDATE_RAW_BTF(btf, raw_types...) \ argument
/linux/kernel/bpf/preload/iterators/
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/perf/util/
A Dbpf-event.c27 struct btf *btf; in btf__load_from_kernel_by_id() local
133 struct btf *btf) in perf_env__fetch_btf()
159 struct btf *btf, in synthesize_bpf_prog_name()
212 struct btf *btf = NULL; in perf_event__synthesize_one_bpf_prog() local
487 struct btf *btf = NULL; in perf_env__add_bpf_info() local
588 struct btf *btf = NULL; in bpf_event__print_bpf_prog_info() local
/linux/tools/bpf/bpftool/
A Dbtf_dumper.c177 static bool is_str_array(const struct btf *btf, const struct btf_array *arr, in is_str_array()
583 static int __btf_dumper_type_only(const struct btf *btf, __u32 type_id, in __btf_dumper_type_only()
673 static int btf_dump_func(const struct btf *btf, char *func_sig, in btf_dump_func()
710 void btf_dumper_type_only(const struct btf *btf, __u32 type_id, char *func_sig, in btf_dumper_type_only()
732 void btf_dump_linfo_plain(const struct btf *btf, in btf_dump_linfo_plain()
764 void btf_dump_linfo_json(const struct btf *btf, in btf_dump_linfo_json()
A Dbtf.c93 static const char *btf_str(const struct btf *btf, __u32 off) in btf_str()
105 static int dump_btf_type(const struct btf *btf, __u32 id, in dump_btf_type()
370 static int dump_btf_raw(const struct btf *btf, in dump_btf_raw()
415 static int dump_btf_c(const struct btf *btf, in dump_btf_c()
461 struct btf *btf = NULL, *base = NULL; in do_dump() local
A Dmap.c163 unsigned char *value, struct btf *btf) in print_entry_json()
760 struct bpf_map_info *map_info, struct btf *btf, in dump_map_elem()
809 struct btf *btf = NULL; in get_map_kv_btf() local
832 static void free_map_kv_btf(struct btf *btf) in free_map_kv_btf()
850 struct btf *btf = NULL; in map_dump() local
1054 struct btf *btf; in print_key_value() local
A Dmain.h188 const struct btf *btf, in disasm_print_insn()
210 const struct btf *btf; member
A Dgen.c124 struct btf *btf, in codegen_datasec_def()
213 struct btf *btf = bpf_object__btf(obj); in codegen_datasecs() local
665 struct btf *btf; in do_skeleton() local
A Dxlated_dumper.c223 struct btf *btf = dd->btf; in dump_xlated_json() local
308 struct btf *btf = dd->btf; in dump_xlated_plain() local
A Dxlated_dumper.h22 struct btf *btf; member
A Djit_disasm.c78 const struct btf *btf, in disasm_print_insn()
/linux/net/bpf/
A Dbpf_dummy_struct_ops.c131 static int bpf_dummy_init(struct btf *btf) in bpf_dummy_init()
145 const struct btf *btf, in bpf_dummy_ops_btf_struct_access()
/linux/net/ipv4/
A Dbpf_tcp_ca.c35 static int bpf_tcp_ca_init(struct btf *btf) in bpf_tcp_ca_init()
95 const struct btf *btf, in bpf_tcp_ca_btf_struct_access()
/linux/include/linux/
A Dbtf.h230 static inline const struct btf_type *btf_type_by_id(const struct btf *btf, in btf_type_by_id()
235 static inline const char *btf_name_by_offset(const struct btf *btf, in btf_name_by_offset()

Completed in 84 milliseconds

12