Lines Matching defs:btf

31 struct btf {  struct
33 void *raw_data;
35 void *raw_data_swapped;
36 __u32 raw_size;
60 * and cached again if user calls btf__raw_data(), at which point argument
77 struct btf_header *hdr; argument
97 struct btf *base_btf; argument
102 int start_id;
107 int start_str_off;
113 void *strs_data;
115 struct strset *strs_set;
117 bool strs_deduped;
120 int fd;
123 int ptr_sz;
192 static void *btf_add_type_offs_mem(struct btf *btf, size_t add_cnt) in btf_add_type_offs_mem()
198 static int btf_add_type_idx_entry(struct btf *btf, __u32 type_off) in btf_add_type_idx_entry()
220 static int btf_parse_hdr(struct btf *btf) in btf_parse_hdr()
269 static int btf_parse_str_sec(struct btf *btf) in btf_parse_str_sec()
413 static int btf_parse_type_sec(struct btf *btf) in btf_parse_type_sec()
451 static int btf_validate_str(const struct btf *btf, __u32 str_off, const char *what, __u32 type_id) in btf_validate_str()
464 static int btf_validate_id(const struct btf *btf, __u32 id, __u32 ctx_id) in btf_validate_id()
477 static int btf_validate_type(const struct btf *btf, const struct btf_type *t, __u32 id) in btf_validate_type()
595 static int btf_sanity_check(const struct btf *btf) in btf_sanity_check()
610 __u32 btf__type_cnt(const struct btf *btf) in btf__type_cnt()
615 const struct btf *btf__base_btf(const struct btf *btf) in btf__base_btf()
621 struct btf_type *btf_type_by_id(const struct btf *btf, __u32 type_id) in btf_type_by_id()
630 const struct btf_type *btf__type_by_id(const struct btf *btf, __u32 type_id) in btf__type_by_id()
637 static int determine_ptr_size(const struct btf *btf) in determine_ptr_size()
681 static size_t btf_ptr_sz(const struct btf *btf) in btf_ptr_sz()
696 size_t btf__pointer_size(const struct btf *btf) in btf__pointer_size()
711 int btf__set_pointer_size(struct btf *btf, size_t ptr_sz) in btf__set_pointer_size()
730 enum btf_endianness btf__endianness(const struct btf *btf) in btf__endianness()
738 int btf__set_endianness(struct btf *btf, enum btf_endianness endian) in btf__set_endianness()
763 __s64 btf__resolve_size(const struct btf *btf, __u32 type_id) in btf__resolve_size()
818 int btf__align_of(const struct btf *btf, __u32 id) in btf__align_of()
873 int btf__resolve_type(const struct btf *btf, __u32 type_id) in btf__resolve_type()
893 __s32 btf__find_by_name(const struct btf *btf, const char *type_name) in btf__find_by_name()
911 static __s32 btf_find_by_name_kind(const struct btf *btf, int start_id, in btf_find_by_name_kind()
933 __s32 btf__find_by_name_kind_own(const struct btf *btf, const char *type_name, in btf__find_by_name_kind_own()
939 __s32 btf__find_by_name_kind(const struct btf *btf, const char *type_name, in btf__find_by_name_kind()
945 static bool btf_is_modifiable(const struct btf *btf) in btf_is_modifiable()
950 void btf__free(struct btf *btf) in btf__free()
977 struct btf *btf; in btf_new_empty() local
1028 struct btf *btf; in btf_new() local
1092 struct btf *btf = NULL; in btf_parse_elf() local
1225 struct btf *btf = NULL; in btf_parse_raw() local
1298 struct btf *btf; in btf_parse() local
1325 int btf_load_into_kernel(struct btf *btf, in btf_load_into_kernel()
1406 int btf__load_into_kernel(struct btf *btf) in btf__load_into_kernel()
1411 int btf__fd(const struct btf *btf) in btf__fd()
1416 void btf__set_fd(struct btf *btf, int fd) in btf__set_fd()
1421 static const void *btf_strs_data(const struct btf *btf) in btf_strs_data()
1426 static void *btf_get_raw_data(const struct btf *btf, __u32 *size, bool swap_endian) in btf_get_raw_data()
1478 struct btf *btf = (struct btf *)btf_ro; in btf__raw_data() local
1498 const char *btf__str_by_offset(const struct btf *btf, __u32 offset) in btf__str_by_offset()
1508 const char *btf__name_by_offset(const struct btf *btf, __u32 offset) in btf__name_by_offset()
1518 struct btf *btf; in btf_get_from_fd() local
1569 struct btf *btf; in btf__load_from_kernel_by_id_split() local
1587 static void btf_invalidate_raw_data(struct btf *btf) in btf_invalidate_raw_data()
1603 static int btf_ensure_modifiable(struct btf *btf) in btf_ensure_modifiable()
1663 int btf__find_str(struct btf *btf, const char *s) in btf__find_str()
1689 int btf__add_str(struct btf *btf, const char *s) in btf__add_str()
1711 static void *btf_add_type_mem(struct btf *btf, size_t add_sz) in btf_add_type_mem()
1722 static int btf_commit_type(struct btf *btf, int data_sz) in btf_commit_type()
1774 int btf__add_type(struct btf *btf, const struct btf *src_btf, const struct btf_type *src_type) in btf__add_type()
1803 struct btf *btf = ctx; in btf_rewrite_type_ids() local
1819 int btf__add_btf(struct btf *btf, const struct btf *src_btf) in btf__add_btf()
1928 int btf__add_int(struct btf *btf, const char *name, size_t byte_sz, int encoding) in btf__add_int()
1976 int btf__add_float(struct btf *btf, const char *name, size_t byte_sz) in btf__add_float()
2021 static int btf_add_ref_kind(struct btf *btf, int kind, const char *name, int ref_type_id) in btf_add_ref_kind()
2057 int btf__add_ptr(struct btf *btf, int ref_type_id) in btf__add_ptr()
2071 int btf__add_array(struct btf *btf, int index_type_id, int elem_type_id, __u32 nr_elems) in btf__add_array()
2101 static int btf_add_composite(struct btf *btf, int kind, const char *name, __u32 bytes_sz) in btf_add_composite()
2142 int btf__add_struct(struct btf *btf, const char *name, __u32 byte_sz) in btf__add_struct()
2160 int btf__add_union(struct btf *btf, const char *name, __u32 byte_sz) in btf__add_union()
2165 static struct btf_type *btf_last_type(struct btf *btf) in btf_last_type()
2180 int btf__add_field(struct btf *btf, const char *name, int type_id, in btf__add_field()
2235 static int btf_add_enum_common(struct btf *btf, const char *name, __u32 byte_sz, in btf_add_enum_common()
2280 int btf__add_enum(struct btf *btf, const char *name, __u32 byte_sz) in btf__add_enum()
2297 int btf__add_enum_value(struct btf *btf, const char *name, __s64 value) in btf__add_enum_value()
2359 int btf__add_enum64(struct btf *btf, const char *name, __u32 byte_sz, in btf__add_enum64()
2374 int btf__add_enum64_value(struct btf *btf, const char *name, __u64 value) in btf__add_enum64_value()
2426 int btf__add_fwd(struct btf *btf, const char *name, enum btf_fwd_kind fwd_kind) in btf__add_fwd()
2462 int btf__add_typedef(struct btf *btf, const char *name, int ref_type_id) in btf__add_typedef()
2477 int btf__add_volatile(struct btf *btf, int ref_type_id) in btf__add_volatile()
2489 int btf__add_const(struct btf *btf, int ref_type_id) in btf__add_const()
2501 int btf__add_restrict(struct btf *btf, int ref_type_id) in btf__add_restrict()
2514 int btf__add_type_tag(struct btf *btf, const char *value, int ref_type_id) in btf__add_type_tag()
2530 int btf__add_func(struct btf *btf, const char *name, in btf__add_func()
2562 int btf__add_func_proto(struct btf *btf, int ret_type_id) in btf__add_func_proto()
2596 int btf__add_func_param(struct btf *btf, const char *name, int type_id) in btf__add_func_param()
2649 int btf__add_var(struct btf *btf, const char *name, int linkage, int type_id) in btf__add_var()
2699 int btf__add_datasec(struct btf *btf, const char *name, __u32 byte_sz) in btf__add_datasec()
2738 int btf__add_datasec_var_info(struct btf *btf, int var_type_id, __u32 offset, __u32 byte_sz) in btf__add_datasec_var_info()
2786 int btf__add_decl_tag(struct btf *btf, const char *value, int ref_type_id, in btf__add_decl_tag()
3214 int btf__dedup(struct btf *btf, const struct btf_dedup_opts *opts) in btf__dedup()
3284 struct btf *btf; member
3390 static struct btf_dedup *btf_dedup_new(struct btf *btf, const struct btf_dedup_opts *opts) in btf_dedup_new()
4957 struct btf *btf; in btf__load_vmlinux_btf() local