Home
last modified time | relevance | path

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

12

/Linux-v5.4/kernel/bpf/
Dbtf.c201 struct btf { struct
203 struct btf_type **types; argument
208 struct btf_header hdr; argument
223 const struct btf_type *t; argument
250 struct btf *btf; member
523 static bool btf_name_offset_valid(const struct btf *btf, u32 offset) in btf_name_offset_valid()
540 static bool __btf_name_valid(const struct btf *btf, u32 offset, bool dot_ok) in __btf_name_valid()
564 static bool btf_name_valid_identifier(const struct btf *btf, u32 offset) in btf_name_valid_identifier()
569 static bool btf_name_valid_section(const struct btf *btf, u32 offset) in btf_name_valid_section()
574 static const char *__btf_name_by_offset(const struct btf *btf, u32 offset) in __btf_name_by_offset()
[all …]
Dsyscall.c494 const struct btf *btf, in map_check_no_btf()
501 static int map_check_btf(struct bpf_map *map, const struct btf *btf, in map_check_btf()
584 struct btf *btf; in map_create() local
2639 static int bpf_btf_get_info_by_fd(struct btf *btf, in bpf_btf_get_info_by_fd()
Dlpm_trie.c729 const struct btf *btf, in trie_check_btf()
Dlocal_storage.c334 const struct btf *btf, in cgroup_storage_check_btf()
Darraymap.c416 const struct btf *btf, in array_map_check_btf()
Dverifier.c6411 const struct btf *btf; in check_btf_func() local
6530 const struct btf *btf; in check_btf_line() local
6648 struct btf *btf; in check_btf_info() local
/Linux-v5.4/tools/lib/bpf/
Dbtf.c25 struct btf { struct
30 struct btf_type **types; argument
44 static int btf_add_type(struct btf *btf, struct btf_type *t) in btf_add_type()
72 static int btf_parse_hdr(struct btf *btf) in btf_parse_hdr()
128 static int btf_parse_str_sec(struct btf *btf) in btf_parse_str_sec()
180 static int btf_parse_type_sec(struct btf *btf) in btf_parse_type_sec()
204 __u32 btf__get_nr_types(const struct btf *btf) in btf__get_nr_types()
209 const struct btf_type *btf__type_by_id(const struct btf *btf, __u32 type_id) in btf__type_by_id()
229 __s64 btf__resolve_size(const struct btf *btf, __u32 type_id) in btf__resolve_size()
282 int btf__resolve_type(const struct btf *btf, __u32 type_id) in btf__resolve_type()
[all …]
Dbtf_dump.c56 const struct btf *btf; member
119 struct btf_dump *btf_dump__new(const struct btf *btf, in btf_dump__new()
755 static int btf_align_of(const struct btf *btf, __u32 id) in btf_align_of()
790 static bool btf_is_struct_packed(const struct btf *btf, __u32 id, in btf_is_struct_packed()
Dlibbpf.c286 struct btf *btf; member
1019 skip_mods_and_typedefs(const struct btf *btf, __u32 id, __u32 *res_id) in skip_mods_and_typedefs()
1042 static bool get_map_field_int(const char *map_name, const struct btf *btf, in get_map_field_int()
1366 struct btf *btf = obj->btf; in bpf_object__sanitize_btf() local
2309 const struct btf *btf; member
2358 static int bpf_core_spec_parse(const struct btf *btf, in bpf_core_spec_parse()
2818 struct btf *btf; in btf_load_raw() local
2874 struct btf *btf; in bpf_core_find_kernel_btf() local
Dbpf.c659 int bpf_load_btf(void *btf, __u32 btf_size, char *log_buf, __u32 log_buf_size, in bpf_load_btf()
/Linux-v5.4/include/linux/
Dbtf.h60 static inline const struct btf_type *btf_type_by_id(const struct btf *btf, in btf_type_by_id()
65 static inline const char *btf_name_by_offset(const struct btf *btf, in btf_name_by_offset()
Dbpf.h93 struct btf *btf; member
395 struct btf *btf; member
/Linux-v5.4/tools/perf/util/
Dbpf-event.c95 struct btf *btf) in perf_env__fetch_btf()
117 struct btf *btf, in synthesize_bpf_prog_name()
170 struct btf *btf = NULL; in perf_event__synthesize_one_bpf_prog() local
348 struct btf *btf = NULL; in perf_env__add_bpf_info() local
449 struct btf *btf = NULL; in bpf_event__print_bpf_prog_info() local
/Linux-v5.4/tools/bpf/bpftool/
Dbtf.c77 static const char *btf_str(const struct btf *btf, __u32 off) in btf_str()
84 static int dump_btf_type(const struct btf *btf, __u32 id, in dump_btf_type()
321 static int dump_btf_raw(const struct btf *btf, in dump_btf_raw()
360 static int dump_btf_c(const struct btf *btf, in dump_btf_c()
393 struct btf *btf = NULL; in do_dump() local
Dbtf_dumper.c421 static int __btf_dumper_type_only(const struct btf *btf, __u32 type_id, in __btf_dumper_type_only()
510 static int btf_dump_func(const struct btf *btf, char *func_sig, in btf_dump_func()
540 void btf_dumper_type_only(const struct btf *btf, __u32 type_id, char *func_sig, in btf_dumper_type_only()
562 void btf_dump_linfo_plain(const struct btf *btf, in btf_dump_linfo_plain()
594 void btf_dump_linfo_json(const struct btf *btf, in btf_dump_linfo_json()
Dmain.h177 const struct btf *btf, in disasm_print_insn()
199 const struct btf *btf; member
Dmap.c208 unsigned char *value, struct btf *btf) in print_entry_json()
710 struct bpf_map_info *map_info, struct btf *btf, in dump_map_elem()
775 struct btf *btf = NULL; in do_dump() local
923 struct btf *btf = NULL; in print_key_value() local
Dxlated_dumper.c217 struct btf *btf = dd->btf; in dump_xlated_json() local
302 struct btf *btf = dd->btf; in dump_xlated_plain() local
Dxlated_dumper.h22 struct btf *btf; member
Djit_disasm.c77 const struct btf *btf, in disasm_print_insn()
Dprog.c420 struct btf *btf = NULL; in do_dump() local
/Linux-v5.4/tools/testing/selftests/bpf/
Dtest_btf_dump.c36 static int btf_dump_all_types(const struct btf *btf, in btf_dump_all_types()
61 struct btf *btf = NULL; in test_btf_dump_case() local
/Linux-v5.4/net/core/
Dbpf_sk_storage.c684 const struct btf *btf, in bpf_sk_storage_map_check_btf()
/Linux-v5.4/include/uapi/linux/
Dbpf.h491 __aligned_u64 btf; member
3275 __aligned_u64 btf; member
/Linux-v5.4/tools/include/uapi/linux/
Dbpf.h491 __aligned_u64 btf; member
3275 __aligned_u64 btf; member

12