Lines Matching refs:LIBBPF_API
33 LIBBPF_API void btf__free(struct btf *btf);
34 LIBBPF_API struct btf *btf__new(const void *data, __u32 size);
35 LIBBPF_API struct btf *btf__new_empty(void);
36 LIBBPF_API struct btf *btf__parse(const char *path, struct btf_ext **btf_ext);
37 LIBBPF_API struct btf *btf__parse_elf(const char *path, struct btf_ext **btf_ext);
38 LIBBPF_API struct btf *btf__parse_raw(const char *path);
39 LIBBPF_API int btf__finalize_data(struct bpf_object *obj, struct btf *btf);
40 LIBBPF_API int btf__load(struct btf *btf);
41 LIBBPF_API __s32 btf__find_by_name(const struct btf *btf,
43 LIBBPF_API __s32 btf__find_by_name_kind(const struct btf *btf,
45 LIBBPF_API __u32 btf__get_nr_types(const struct btf *btf);
46 LIBBPF_API const struct btf_type *btf__type_by_id(const struct btf *btf,
48 LIBBPF_API size_t btf__pointer_size(const struct btf *btf);
49 LIBBPF_API int btf__set_pointer_size(struct btf *btf, size_t ptr_sz);
50 LIBBPF_API enum btf_endianness btf__endianness(const struct btf *btf);
51 LIBBPF_API int btf__set_endianness(struct btf *btf, enum btf_endianness endian);
52 LIBBPF_API __s64 btf__resolve_size(const struct btf *btf, __u32 type_id);
53 LIBBPF_API int btf__resolve_type(const struct btf *btf, __u32 type_id);
54 LIBBPF_API int btf__align_of(const struct btf *btf, __u32 id);
55 LIBBPF_API int btf__fd(const struct btf *btf);
56 LIBBPF_API void btf__set_fd(struct btf *btf, int fd);
57 LIBBPF_API const void *btf__get_raw_data(const struct btf *btf, __u32 *size);
58 LIBBPF_API const char *btf__name_by_offset(const struct btf *btf, __u32 offset);
59 LIBBPF_API const char *btf__str_by_offset(const struct btf *btf, __u32 offset);
60 LIBBPF_API int btf__get_from_id(__u32 id, struct btf **btf);
61 LIBBPF_API int btf__get_map_kv_tids(const struct btf *btf, const char *map_name,
66 LIBBPF_API struct btf_ext *btf_ext__new(__u8 *data, __u32 size);
67 LIBBPF_API void btf_ext__free(struct btf_ext *btf_ext);
68 LIBBPF_API const void *btf_ext__get_raw_data(const struct btf_ext *btf_ext,
70 LIBBPF_API LIBBPF_DEPRECATED("btf_ext__reloc_func_info was never meant as a public API and has wron…
75 LIBBPF_API LIBBPF_DEPRECATED("btf_ext__reloc_line_info was never meant as a public API and has wron…
80 LIBBPF_API __u32 btf_ext__func_info_rec_size(const struct btf_ext *btf_ext);
81 LIBBPF_API __u32 btf_ext__line_info_rec_size(const struct btf_ext *btf_ext);
83 LIBBPF_API struct btf *libbpf_find_kernel_btf(void);
85 LIBBPF_API int btf__find_str(struct btf *btf, const char *s);
86 LIBBPF_API int btf__add_str(struct btf *btf, const char *s);
88 LIBBPF_API int btf__add_int(struct btf *btf, const char *name, size_t byte_sz, int encoding);
89 LIBBPF_API int btf__add_ptr(struct btf *btf, int ref_type_id);
90 LIBBPF_API int btf__add_array(struct btf *btf,
93 LIBBPF_API int btf__add_struct(struct btf *btf, const char *name, __u32 sz);
94 LIBBPF_API int btf__add_union(struct btf *btf, const char *name, __u32 sz);
95 LIBBPF_API int btf__add_field(struct btf *btf, const char *name, int field_type_id,
99 LIBBPF_API int btf__add_enum(struct btf *btf, const char *name, __u32 bytes_sz);
100 LIBBPF_API int btf__add_enum_value(struct btf *btf, const char *name, __s64 value);
108 LIBBPF_API int btf__add_fwd(struct btf *btf, const char *name, enum btf_fwd_kind fwd_kind);
109 LIBBPF_API int btf__add_typedef(struct btf *btf, const char *name, int ref_type_id);
110 LIBBPF_API int btf__add_volatile(struct btf *btf, int ref_type_id);
111 LIBBPF_API int btf__add_const(struct btf *btf, int ref_type_id);
112 LIBBPF_API int btf__add_restrict(struct btf *btf, int ref_type_id);
115 LIBBPF_API int btf__add_func(struct btf *btf, const char *name,
117 LIBBPF_API int btf__add_func_proto(struct btf *btf, int ret_type_id);
118 LIBBPF_API int btf__add_func_param(struct btf *btf, const char *name, int type_id);
121 LIBBPF_API int btf__add_var(struct btf *btf, const char *name, int linkage, int type_id);
122 LIBBPF_API int btf__add_datasec(struct btf *btf, const char *name, __u32 byte_sz);
123 LIBBPF_API int btf__add_datasec_var_info(struct btf *btf, int var_type_id,
131 LIBBPF_API int btf__dedup(struct btf *btf, struct btf_ext *btf_ext,
142 LIBBPF_API struct btf_dump *btf_dump__new(const struct btf *btf,
146 LIBBPF_API void btf_dump__free(struct btf_dump *d);
148 LIBBPF_API int btf_dump__dump_type(struct btf_dump *d, __u32 id);
170 LIBBPF_API int