Lines Matching refs:LIBBPF_API
15 #ifndef LIBBPF_API
16 #define LIBBPF_API __attribute__((visibility("default"))) macro
67 LIBBPF_API void btf__free(struct btf *btf);
68 LIBBPF_API struct btf *btf__new(__u8 *data, __u32 size);
69 LIBBPF_API struct btf *btf__parse_elf(const char *path,
71 LIBBPF_API int btf__finalize_data(struct bpf_object *obj, struct btf *btf);
72 LIBBPF_API int btf__load(struct btf *btf);
73 LIBBPF_API __s32 btf__find_by_name(const struct btf *btf,
75 LIBBPF_API __u32 btf__get_nr_types(const struct btf *btf);
76 LIBBPF_API const struct btf_type *btf__type_by_id(const struct btf *btf,
78 LIBBPF_API __s64 btf__resolve_size(const struct btf *btf, __u32 type_id);
79 LIBBPF_API int btf__resolve_type(const struct btf *btf, __u32 type_id);
80 LIBBPF_API int btf__fd(const struct btf *btf);
81 LIBBPF_API const void *btf__get_raw_data(const struct btf *btf, __u32 *size);
82 LIBBPF_API const char *btf__name_by_offset(const struct btf *btf, __u32 offset);
83 LIBBPF_API int btf__get_from_id(__u32 id, struct btf **btf);
84 LIBBPF_API int btf__get_map_kv_tids(const struct btf *btf, const char *map_name,
89 LIBBPF_API struct btf_ext *btf_ext__new(__u8 *data, __u32 size);
90 LIBBPF_API void btf_ext__free(struct btf_ext *btf_ext);
91 LIBBPF_API const void *btf_ext__get_raw_data(const struct btf_ext *btf_ext,
93 LIBBPF_API int btf_ext__reloc_func_info(const struct btf *btf,
97 LIBBPF_API int btf_ext__reloc_line_info(const struct btf *btf,
101 LIBBPF_API __u32 btf_ext__func_info_rec_size(const struct btf_ext *btf_ext);
102 LIBBPF_API __u32 btf_ext__line_info_rec_size(const struct btf_ext *btf_ext);
109 LIBBPF_API int btf__dedup(struct btf *btf, struct btf_ext *btf_ext,
120 LIBBPF_API struct btf_dump *btf_dump__new(const struct btf *btf,
124 LIBBPF_API void btf_dump__free(struct btf_dump *d);
126 LIBBPF_API int btf_dump__dump_type(struct btf_dump *d, __u32 id);