Lines Matching defs:btf
35 struct btf { struct
37 void *raw_data;
39 void *raw_data_swapped;
40 __u32 raw_size;
64 * and cached again if user calls btf__raw_data(), at which point argument
81 struct btf_header *hdr; argument
101 struct btf *base_btf; argument
106 int start_id;
111 int start_str_off;
117 void *strs_data;
119 struct strset *strs_set;
121 bool strs_deduped;
124 int fd;
127 int ptr_sz;
196 static void *btf_add_type_offs_mem(struct btf *btf, size_t add_cnt) in btf_add_type_offs_mem()
202 static int btf_add_type_idx_entry(struct btf *btf, __u32 type_off) in btf_add_type_idx_entry()
224 static int btf_parse_hdr(struct btf *btf) in btf_parse_hdr()
273 static int btf_parse_str_sec(struct btf *btf) in btf_parse_str_sec()
417 static int btf_parse_type_sec(struct btf *btf) in btf_parse_type_sec()
455 static int btf_validate_str(const struct btf *btf, __u32 str_off, const char *what, __u32 type_id) in btf_validate_str()
468 static int btf_validate_id(const struct btf *btf, __u32 id, __u32 ctx_id) in btf_validate_id()
481 static int btf_validate_type(const struct btf *btf, const struct btf_type *t, __u32 id) in btf_validate_type()
599 static int btf_sanity_check(const struct btf *btf) in btf_sanity_check()
614 __u32 btf__type_cnt(const struct btf *btf) in btf__type_cnt()
619 const struct btf *btf__base_btf(const struct btf *btf) in btf__base_btf()
625 struct btf_type *btf_type_by_id(const struct btf *btf, __u32 type_id) in btf_type_by_id()
634 const struct btf_type *btf__type_by_id(const struct btf *btf, __u32 type_id) in btf__type_by_id()
641 static int determine_ptr_size(const struct btf *btf) in determine_ptr_size()
685 static size_t btf_ptr_sz(const struct btf *btf) in btf_ptr_sz()
700 size_t btf__pointer_size(const struct btf *btf) in btf__pointer_size()
715 int btf__set_pointer_size(struct btf *btf, size_t ptr_sz) in btf__set_pointer_size()
734 enum btf_endianness btf__endianness(const struct btf *btf) in btf__endianness()
742 int btf__set_endianness(struct btf *btf, enum btf_endianness endian) in btf__set_endianness()
767 __s64 btf__resolve_size(const struct btf *btf, __u32 type_id) in btf__resolve_size()
822 int btf__align_of(const struct btf *btf, __u32 id) in btf__align_of()
877 int btf__resolve_type(const struct btf *btf, __u32 type_id) in btf__resolve_type()
897 __s32 btf__find_by_name(const struct btf *btf, const char *type_name) in btf__find_by_name()
915 static __s32 btf_find_by_name_kind(const struct btf *btf, int start_id, in btf_find_by_name_kind()
937 __s32 btf__find_by_name_kind_own(const struct btf *btf, const char *type_name, in btf__find_by_name_kind_own()
943 __s32 btf__find_by_name_kind(const struct btf *btf, const char *type_name, in btf__find_by_name_kind()
949 static bool btf_is_modifiable(const struct btf *btf) in btf_is_modifiable()
954 void btf__free(struct btf *btf) in btf__free()
981 struct btf *btf; in btf_new_empty() local
1032 struct btf *btf; in btf_new() local
1111 struct btf *btf = NULL; local
1322 struct btf *btf = NULL; local
1395 struct btf *btf; local
1422 int btf_load_into_kernel(struct btf *btf, char *log_buf, size_t log_sz, __u32 log_level)
1497 int btf__load_into_kernel(struct btf *btf)
1502 int btf__fd(const struct btf *btf)
1507 void btf__set_fd(struct btf *btf, int fd)
1512 static const void *btf_strs_data(const struct btf *btf)
1517 static void *btf_get_raw_data(const struct btf *btf, __u32 *size, bool swap_endian)
1569 struct btf *btf = (struct btf *)btf_ro; local
1589 const char *btf__str_by_offset(const struct btf *btf, __u32 offset)
1599 const char *btf__name_by_offset(const struct btf *btf, __u32 offset)
1609 struct btf *btf; local
1660 struct btf *btf; local
1678 static void btf_invalidate_raw_data(struct btf *btf)
1694 static int btf_ensure_modifiable(struct btf *btf)
1754 int btf__find_str(struct btf *btf, const char *s)
1780 int btf__add_str(struct btf *btf, const char *s)
1802 static void *btf_add_type_mem(struct btf *btf, size_t add_sz)
1813 static int btf_commit_type(struct btf *btf, int data_sz)
1865 int btf__add_type(struct btf *btf, const struct btf *src_btf, const struct btf_type *src_type)
1894 struct btf *btf = ctx; local
1910 int btf__add_btf(struct btf *btf, const struct btf *src_btf)
2019 int btf__add_int(struct btf *btf, const char *name, size_t byte_sz, int encoding)
2067 int btf__add_float(struct btf *btf, const char *name, size_t byte_sz)
2112 static int btf_add_ref_kind(struct btf *btf, int kind, const char *name, int ref_type_id)
2148 int btf__add_ptr(struct btf *btf, int ref_type_id)
2162 int btf__add_array(struct btf *btf, int index_type_id, int elem_type_id, __u32 nr_elems)
2192 static int btf_add_composite(struct btf *btf, int kind, const char *name, __u32 bytes_sz)
2233 int btf__add_struct(struct btf *btf, const char *name, __u32 byte_sz)
2251 int btf__add_union(struct btf *btf, const char *name, __u32 byte_sz)
2256 static struct btf_type *btf_last_type(struct btf *btf)
2271 int btf__add_field(struct btf *btf, const char *name, int type_id,
2326 static int btf_add_enum_common(struct btf *btf, const char *name, __u32 byte_sz,
2371 int btf__add_enum(struct btf *btf, const char *name, __u32 byte_sz)
2388 int btf__add_enum_value(struct btf *btf, const char *name, __s64 value)
2450 int btf__add_enum64(struct btf *btf, const char *name, __u32 byte_sz,
2465 int btf__add_enum64_value(struct btf *btf, const char *name, __u64 value)
2517 int btf__add_fwd(struct btf *btf, const char *name, enum btf_fwd_kind fwd_kind)
2553 int btf__add_typedef(struct btf *btf, const char *name, int ref_type_id)
2568 int btf__add_volatile(struct btf *btf, int ref_type_id)
2580 int btf__add_const(struct btf *btf, int ref_type_id)
2592 int btf__add_restrict(struct btf *btf, int ref_type_id)
2605 int btf__add_type_tag(struct btf *btf, const char *value, int ref_type_id)
2621 int btf__add_func(struct btf *btf, const char *name,
2653 int btf__add_func_proto(struct btf *btf, int ret_type_id)
2687 int btf__add_func_param(struct btf *btf, const char *name, int type_id)
2740 int btf__add_var(struct btf *btf, const char *name, int linkage, int type_id)
2790 int btf__add_datasec(struct btf *btf, const char *name, __u32 byte_sz)
2829 int btf__add_datasec_var_info(struct btf *btf, int var_type_id, __u32 offset, __u32 byte_sz)
2877 int btf__add_decl_tag(struct btf *btf, const char *value, int ref_type_id,
3301 int btf__dedup(struct btf *btf, const struct btf_dedup_opts *opts)
3371 struct btf *btf; member
3477 static struct btf_dedup *btf_dedup_new(struct btf *btf, const struct btf_dedup_opts *opts)
5045 struct btf *btf; local