LIBBPF_API 35 tools/lib/bpf/bpf.h #ifndef LIBBPF_API LIBBPF_API 54 tools/lib/bpf/bpf.h LIBBPF_API int LIBBPF_API 56 tools/lib/bpf/bpf.h LIBBPF_API int bpf_create_map_node(enum bpf_map_type map_type, const char *name, LIBBPF_API 59 tools/lib/bpf/bpf.h LIBBPF_API int bpf_create_map_name(enum bpf_map_type map_type, const char *name, LIBBPF_API 62 tools/lib/bpf/bpf.h LIBBPF_API int bpf_create_map(enum bpf_map_type map_type, int key_size, LIBBPF_API 64 tools/lib/bpf/bpf.h LIBBPF_API int bpf_create_map_in_map_node(enum bpf_map_type map_type, LIBBPF_API 68 tools/lib/bpf/bpf.h LIBBPF_API int bpf_create_map_in_map(enum bpf_map_type map_type, LIBBPF_API 98 tools/lib/bpf/bpf.h LIBBPF_API int LIBBPF_API 101 tools/lib/bpf/bpf.h LIBBPF_API int bpf_load_program(enum bpf_prog_type type, LIBBPF_API 105 tools/lib/bpf/bpf.h LIBBPF_API int bpf_verify_program(enum bpf_prog_type type, LIBBPF_API 112 tools/lib/bpf/bpf.h LIBBPF_API int bpf_map_update_elem(int fd, const void *key, const void *value, LIBBPF_API 115 tools/lib/bpf/bpf.h LIBBPF_API int bpf_map_lookup_elem(int fd, const void *key, void *value); LIBBPF_API 116 tools/lib/bpf/bpf.h LIBBPF_API int bpf_map_lookup_elem_flags(int fd, const void *key, void *value, LIBBPF_API 118 tools/lib/bpf/bpf.h LIBBPF_API int bpf_map_lookup_and_delete_elem(int fd, const void *key, LIBBPF_API 120 tools/lib/bpf/bpf.h LIBBPF_API int bpf_map_delete_elem(int fd, const void *key); LIBBPF_API 121 tools/lib/bpf/bpf.h LIBBPF_API int bpf_map_get_next_key(int fd, const void *key, void *next_key); LIBBPF_API 122 tools/lib/bpf/bpf.h LIBBPF_API int bpf_map_freeze(int fd); LIBBPF_API 123 tools/lib/bpf/bpf.h LIBBPF_API int bpf_obj_pin(int fd, const char *pathname); LIBBPF_API 124 tools/lib/bpf/bpf.h LIBBPF_API int bpf_obj_get(const char *pathname); LIBBPF_API 125 tools/lib/bpf/bpf.h LIBBPF_API int bpf_prog_attach(int prog_fd, int attachable_fd, LIBBPF_API 127 tools/lib/bpf/bpf.h LIBBPF_API int bpf_prog_detach(int attachable_fd, enum bpf_attach_type type); LIBBPF_API 128 tools/lib/bpf/bpf.h LIBBPF_API int bpf_prog_detach2(int prog_fd, int attachable_fd, LIBBPF_API 148 tools/lib/bpf/bpf.h LIBBPF_API int bpf_prog_test_run_xattr(struct bpf_prog_test_run_attr *test_attr); LIBBPF_API 154 tools/lib/bpf/bpf.h LIBBPF_API int bpf_prog_test_run(int prog_fd, int repeat, void *data, LIBBPF_API 157 tools/lib/bpf/bpf.h LIBBPF_API int bpf_prog_get_next_id(__u32 start_id, __u32 *next_id); LIBBPF_API 158 tools/lib/bpf/bpf.h LIBBPF_API int bpf_map_get_next_id(__u32 start_id, __u32 *next_id); LIBBPF_API 159 tools/lib/bpf/bpf.h LIBBPF_API int bpf_btf_get_next_id(__u32 start_id, __u32 *next_id); LIBBPF_API 160 tools/lib/bpf/bpf.h LIBBPF_API int bpf_prog_get_fd_by_id(__u32 id); LIBBPF_API 161 tools/lib/bpf/bpf.h LIBBPF_API int bpf_map_get_fd_by_id(__u32 id); LIBBPF_API 162 tools/lib/bpf/bpf.h LIBBPF_API int bpf_btf_get_fd_by_id(__u32 id); LIBBPF_API 163 tools/lib/bpf/bpf.h LIBBPF_API int bpf_obj_get_info_by_fd(int prog_fd, void *info, __u32 *info_len); LIBBPF_API 164 tools/lib/bpf/bpf.h LIBBPF_API int bpf_prog_query(int target_fd, enum bpf_attach_type type, LIBBPF_API 167 tools/lib/bpf/bpf.h LIBBPF_API int bpf_raw_tracepoint_open(const char *name, int prog_fd); LIBBPF_API 168 tools/lib/bpf/bpf.h LIBBPF_API int bpf_load_btf(void *btf, __u32 btf_size, char *log_buf, LIBBPF_API 170 tools/lib/bpf/bpf.h LIBBPF_API int bpf_task_fd_query(int pid, int fd, __u32 flags, char *buf, LIBBPF_API 15 tools/lib/bpf/btf.h #ifndef LIBBPF_API LIBBPF_API 67 tools/lib/bpf/btf.h LIBBPF_API void btf__free(struct btf *btf); LIBBPF_API 68 tools/lib/bpf/btf.h LIBBPF_API struct btf *btf__new(__u8 *data, __u32 size); LIBBPF_API 69 tools/lib/bpf/btf.h LIBBPF_API struct btf *btf__parse_elf(const char *path, LIBBPF_API 71 tools/lib/bpf/btf.h LIBBPF_API int btf__finalize_data(struct bpf_object *obj, struct btf *btf); LIBBPF_API 72 tools/lib/bpf/btf.h LIBBPF_API int btf__load(struct btf *btf); LIBBPF_API 73 tools/lib/bpf/btf.h LIBBPF_API __s32 btf__find_by_name(const struct btf *btf, LIBBPF_API 75 tools/lib/bpf/btf.h LIBBPF_API __u32 btf__get_nr_types(const struct btf *btf); LIBBPF_API 76 tools/lib/bpf/btf.h LIBBPF_API const struct btf_type *btf__type_by_id(const struct btf *btf, LIBBPF_API 78 tools/lib/bpf/btf.h LIBBPF_API __s64 btf__resolve_size(const struct btf *btf, __u32 type_id); LIBBPF_API 79 tools/lib/bpf/btf.h LIBBPF_API int btf__resolve_type(const struct btf *btf, __u32 type_id); LIBBPF_API 80 tools/lib/bpf/btf.h LIBBPF_API int btf__fd(const struct btf *btf); LIBBPF_API 81 tools/lib/bpf/btf.h LIBBPF_API const void *btf__get_raw_data(const struct btf *btf, __u32 *size); LIBBPF_API 82 tools/lib/bpf/btf.h LIBBPF_API const char *btf__name_by_offset(const struct btf *btf, __u32 offset); LIBBPF_API 83 tools/lib/bpf/btf.h LIBBPF_API int btf__get_from_id(__u32 id, struct btf **btf); LIBBPF_API 84 tools/lib/bpf/btf.h LIBBPF_API int btf__get_map_kv_tids(const struct btf *btf, const char *map_name, LIBBPF_API 89 tools/lib/bpf/btf.h LIBBPF_API struct btf_ext *btf_ext__new(__u8 *data, __u32 size); LIBBPF_API 90 tools/lib/bpf/btf.h LIBBPF_API void btf_ext__free(struct btf_ext *btf_ext); LIBBPF_API 91 tools/lib/bpf/btf.h LIBBPF_API const void *btf_ext__get_raw_data(const struct btf_ext *btf_ext, LIBBPF_API 93 tools/lib/bpf/btf.h LIBBPF_API int btf_ext__reloc_func_info(const struct btf *btf, LIBBPF_API 97 tools/lib/bpf/btf.h LIBBPF_API int btf_ext__reloc_line_info(const struct btf *btf, LIBBPF_API 101 tools/lib/bpf/btf.h LIBBPF_API __u32 btf_ext__func_info_rec_size(const struct btf_ext *btf_ext); LIBBPF_API 102 tools/lib/bpf/btf.h LIBBPF_API __u32 btf_ext__line_info_rec_size(const struct btf_ext *btf_ext); LIBBPF_API 109 tools/lib/bpf/btf.h LIBBPF_API int btf__dedup(struct btf *btf, struct btf_ext *btf_ext, LIBBPF_API 120 tools/lib/bpf/btf.h LIBBPF_API struct btf_dump *btf_dump__new(const struct btf *btf, LIBBPF_API 124 tools/lib/bpf/btf.h LIBBPF_API void btf_dump__free(struct btf_dump *d); LIBBPF_API 126 tools/lib/bpf/btf.h LIBBPF_API int btf_dump__dump_type(struct btf_dump *d, __u32 id); LIBBPF_API 24 tools/lib/bpf/libbpf.h #ifndef LIBBPF_API LIBBPF_API 49 tools/lib/bpf/libbpf.h LIBBPF_API int libbpf_strerror(int err, char *buf, size_t size); LIBBPF_API 60 tools/lib/bpf/libbpf.h LIBBPF_API libbpf_print_fn_t libbpf_set_print(libbpf_print_fn_t fn); LIBBPF_API 70 tools/lib/bpf/libbpf.h LIBBPF_API struct bpf_object *bpf_object__open(const char *path); LIBBPF_API 71 tools/lib/bpf/libbpf.h LIBBPF_API struct bpf_object * LIBBPF_API 75 tools/lib/bpf/libbpf.h LIBBPF_API struct bpf_object *bpf_object__open_buffer(void *obj_buf, LIBBPF_API 82 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_object__pin_maps(struct bpf_object *obj, const char *path); LIBBPF_API 83 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_object__unpin_maps(struct bpf_object *obj, LIBBPF_API 85 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_object__pin_programs(struct bpf_object *obj, LIBBPF_API 87 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_object__unpin_programs(struct bpf_object *obj, LIBBPF_API 89 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_object__pin(struct bpf_object *object, const char *path); LIBBPF_API 90 tools/lib/bpf/libbpf.h LIBBPF_API void bpf_object__close(struct bpf_object *object); LIBBPF_API 99 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_object__load(struct bpf_object *obj); LIBBPF_API 100 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_object__load_xattr(struct bpf_object_load_attr *attr); LIBBPF_API 101 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_object__unload(struct bpf_object *obj); LIBBPF_API 102 tools/lib/bpf/libbpf.h LIBBPF_API const char *bpf_object__name(const struct bpf_object *obj); LIBBPF_API 103 tools/lib/bpf/libbpf.h LIBBPF_API unsigned int bpf_object__kversion(const struct bpf_object *obj); LIBBPF_API 106 tools/lib/bpf/libbpf.h LIBBPF_API struct btf *bpf_object__btf(const struct bpf_object *obj); LIBBPF_API 107 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_object__btf_fd(const struct bpf_object *obj); LIBBPF_API 109 tools/lib/bpf/libbpf.h LIBBPF_API struct bpf_program * LIBBPF_API 113 tools/lib/bpf/libbpf.h LIBBPF_API struct bpf_object *bpf_object__next(struct bpf_object *prev); LIBBPF_API 121 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_object__set_priv(struct bpf_object *obj, void *priv, LIBBPF_API 123 tools/lib/bpf/libbpf.h LIBBPF_API void *bpf_object__priv(const struct bpf_object *prog); LIBBPF_API 125 tools/lib/bpf/libbpf.h LIBBPF_API int LIBBPF_API 128 tools/lib/bpf/libbpf.h LIBBPF_API int libbpf_attach_type_by_name(const char *name, LIBBPF_API 133 tools/lib/bpf/libbpf.h LIBBPF_API struct bpf_program *bpf_program__next(struct bpf_program *prog, LIBBPF_API 141 tools/lib/bpf/libbpf.h LIBBPF_API struct bpf_program *bpf_program__prev(struct bpf_program *prog, LIBBPF_API 146 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__set_priv(struct bpf_program *prog, void *priv, LIBBPF_API 149 tools/lib/bpf/libbpf.h LIBBPF_API void *bpf_program__priv(const struct bpf_program *prog); LIBBPF_API 150 tools/lib/bpf/libbpf.h LIBBPF_API void bpf_program__set_ifindex(struct bpf_program *prog, LIBBPF_API 153 tools/lib/bpf/libbpf.h LIBBPF_API const char *bpf_program__title(const struct bpf_program *prog, LIBBPF_API 156 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__load(struct bpf_program *prog, char *license, LIBBPF_API 158 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__fd(const struct bpf_program *prog); LIBBPF_API 159 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__pin_instance(struct bpf_program *prog, LIBBPF_API 162 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__unpin_instance(struct bpf_program *prog, LIBBPF_API 165 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__pin(struct bpf_program *prog, const char *path); LIBBPF_API 166 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__unpin(struct bpf_program *prog, const char *path); LIBBPF_API 167 tools/lib/bpf/libbpf.h LIBBPF_API void bpf_program__unload(struct bpf_program *prog); LIBBPF_API 171 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_link__destroy(struct bpf_link *link); LIBBPF_API 173 tools/lib/bpf/libbpf.h LIBBPF_API struct bpf_link * LIBBPF_API 175 tools/lib/bpf/libbpf.h LIBBPF_API struct bpf_link * LIBBPF_API 178 tools/lib/bpf/libbpf.h LIBBPF_API struct bpf_link * LIBBPF_API 182 tools/lib/bpf/libbpf.h LIBBPF_API struct bpf_link * LIBBPF_API 186 tools/lib/bpf/libbpf.h LIBBPF_API struct bpf_link * LIBBPF_API 249 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__set_prep(struct bpf_program *prog, int nr_instance, LIBBPF_API 252 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__nth_fd(const struct bpf_program *prog, int n); LIBBPF_API 257 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__set_socket_filter(struct bpf_program *prog); LIBBPF_API 258 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__set_tracepoint(struct bpf_program *prog); LIBBPF_API 259 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__set_raw_tracepoint(struct bpf_program *prog); LIBBPF_API 260 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__set_kprobe(struct bpf_program *prog); LIBBPF_API 261 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__set_sched_cls(struct bpf_program *prog); LIBBPF_API 262 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__set_sched_act(struct bpf_program *prog); LIBBPF_API 263 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__set_xdp(struct bpf_program *prog); LIBBPF_API 264 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__set_perf_event(struct bpf_program *prog); LIBBPF_API 265 tools/lib/bpf/libbpf.h LIBBPF_API void bpf_program__set_type(struct bpf_program *prog, LIBBPF_API 267 tools/lib/bpf/libbpf.h LIBBPF_API void LIBBPF_API 271 tools/lib/bpf/libbpf.h LIBBPF_API bool bpf_program__is_socket_filter(const struct bpf_program *prog); LIBBPF_API 272 tools/lib/bpf/libbpf.h LIBBPF_API bool bpf_program__is_tracepoint(const struct bpf_program *prog); LIBBPF_API 273 tools/lib/bpf/libbpf.h LIBBPF_API bool bpf_program__is_raw_tracepoint(const struct bpf_program *prog); LIBBPF_API 274 tools/lib/bpf/libbpf.h LIBBPF_API bool bpf_program__is_kprobe(const struct bpf_program *prog); LIBBPF_API 275 tools/lib/bpf/libbpf.h LIBBPF_API bool bpf_program__is_sched_cls(const struct bpf_program *prog); LIBBPF_API 276 tools/lib/bpf/libbpf.h LIBBPF_API bool bpf_program__is_sched_act(const struct bpf_program *prog); LIBBPF_API 277 tools/lib/bpf/libbpf.h LIBBPF_API bool bpf_program__is_xdp(const struct bpf_program *prog); LIBBPF_API 278 tools/lib/bpf/libbpf.h LIBBPF_API bool bpf_program__is_perf_event(const struct bpf_program *prog); LIBBPF_API 299 tools/lib/bpf/libbpf.h LIBBPF_API struct bpf_map * LIBBPF_API 302 tools/lib/bpf/libbpf.h LIBBPF_API int LIBBPF_API 309 tools/lib/bpf/libbpf.h LIBBPF_API struct bpf_map * LIBBPF_API 312 tools/lib/bpf/libbpf.h LIBBPF_API struct bpf_map * LIBBPF_API 320 tools/lib/bpf/libbpf.h LIBBPF_API struct bpf_map * LIBBPF_API 323 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_map__fd(const struct bpf_map *map); LIBBPF_API 324 tools/lib/bpf/libbpf.h LIBBPF_API const struct bpf_map_def *bpf_map__def(const struct bpf_map *map); LIBBPF_API 325 tools/lib/bpf/libbpf.h LIBBPF_API const char *bpf_map__name(const struct bpf_map *map); LIBBPF_API 326 tools/lib/bpf/libbpf.h LIBBPF_API __u32 bpf_map__btf_key_type_id(const struct bpf_map *map); LIBBPF_API 327 tools/lib/bpf/libbpf.h LIBBPF_API __u32 bpf_map__btf_value_type_id(const struct bpf_map *map); LIBBPF_API 330 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_map__set_priv(struct bpf_map *map, void *priv, LIBBPF_API 332 tools/lib/bpf/libbpf.h LIBBPF_API void *bpf_map__priv(const struct bpf_map *map); LIBBPF_API 333 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_map__reuse_fd(struct bpf_map *map, int fd); LIBBPF_API 334 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_map__resize(struct bpf_map *map, __u32 max_entries); LIBBPF_API 335 tools/lib/bpf/libbpf.h LIBBPF_API bool bpf_map__is_offload_neutral(const struct bpf_map *map); LIBBPF_API 336 tools/lib/bpf/libbpf.h LIBBPF_API bool bpf_map__is_internal(const struct bpf_map *map); LIBBPF_API 337 tools/lib/bpf/libbpf.h LIBBPF_API void bpf_map__set_ifindex(struct bpf_map *map, __u32 ifindex); LIBBPF_API 338 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_map__pin(struct bpf_map *map, const char *path); LIBBPF_API 339 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_map__unpin(struct bpf_map *map, const char *path); LIBBPF_API 341 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_map__set_inner_map_fd(struct bpf_map *map, int fd); LIBBPF_API 343 tools/lib/bpf/libbpf.h LIBBPF_API long libbpf_get_error(const void *ptr); LIBBPF_API 354 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_prog_load_xattr(const struct bpf_prog_load_attr *attr, LIBBPF_API 356 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_prog_load(const char *file, enum bpf_prog_type type, LIBBPF_API 359 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_set_link_xdp_fd(int ifindex, int fd, __u32 flags); LIBBPF_API 360 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_get_link_xdp_id(int ifindex, __u32 *prog_id, __u32 flags); LIBBPF_API 378 tools/lib/bpf/libbpf.h LIBBPF_API struct perf_buffer * LIBBPF_API 411 tools/lib/bpf/libbpf.h LIBBPF_API struct perf_buffer * LIBBPF_API 415 tools/lib/bpf/libbpf.h LIBBPF_API void perf_buffer__free(struct perf_buffer *pb); LIBBPF_API 416 tools/lib/bpf/libbpf.h LIBBPF_API int perf_buffer__poll(struct perf_buffer *pb, int timeout_ms); LIBBPF_API 421 tools/lib/bpf/libbpf.h LIBBPF_API enum bpf_perf_event_ret LIBBPF_API 441 tools/lib/bpf/libbpf.h LIBBPF_API void bpf_prog_linfo__free(struct bpf_prog_linfo *prog_linfo); LIBBPF_API 442 tools/lib/bpf/libbpf.h LIBBPF_API struct bpf_prog_linfo * LIBBPF_API 444 tools/lib/bpf/libbpf.h LIBBPF_API const struct bpf_line_info * LIBBPF_API 447 tools/lib/bpf/libbpf.h LIBBPF_API const struct bpf_line_info * LIBBPF_API 459 tools/lib/bpf/libbpf.h LIBBPF_API bool bpf_probe_prog_type(enum bpf_prog_type prog_type, LIBBPF_API 461 tools/lib/bpf/libbpf.h LIBBPF_API bool bpf_probe_map_type(enum bpf_map_type map_type, __u32 ifindex); LIBBPF_API 462 tools/lib/bpf/libbpf.h LIBBPF_API bool bpf_probe_helper(enum bpf_func_id id, LIBBPF_API 519 tools/lib/bpf/libbpf.h LIBBPF_API struct bpf_prog_info_linear * LIBBPF_API 522 tools/lib/bpf/libbpf.h LIBBPF_API void LIBBPF_API 525 tools/lib/bpf/libbpf.h LIBBPF_API void LIBBPF_API 542 tools/lib/bpf/libbpf.h LIBBPF_API int libbpf_num_possible_cpus(void); LIBBPF_API 186 tools/lib/bpf/xsk.h LIBBPF_API int xsk_umem__fd(const struct xsk_umem *umem); LIBBPF_API 187 tools/lib/bpf/xsk.h LIBBPF_API int xsk_socket__fd(const struct xsk_socket *xsk); LIBBPF_API 216 tools/lib/bpf/xsk.h LIBBPF_API int xsk_umem__create(struct xsk_umem **umem, LIBBPF_API 221 tools/lib/bpf/xsk.h LIBBPF_API int xsk_umem__create_v0_0_2(struct xsk_umem **umem, LIBBPF_API 226 tools/lib/bpf/xsk.h LIBBPF_API int xsk_umem__create_v0_0_4(struct xsk_umem **umem, LIBBPF_API 231 tools/lib/bpf/xsk.h LIBBPF_API int xsk_socket__create(struct xsk_socket **xsk, LIBBPF_API 239 tools/lib/bpf/xsk.h LIBBPF_API int xsk_umem__delete(struct xsk_umem *umem); LIBBPF_API 240 tools/lib/bpf/xsk.h LIBBPF_API void xsk_socket__delete(struct xsk_socket *xsk);