tools/lib/bpf/bpf.h
135
LIBBPF_API int bpf_prog_load(enum bpf_prog_type prog_type,
tools/lib/bpf/bpf.h
166
LIBBPF_API int bpf_btf_load(const void *btf_data, size_t btf_size,
tools/lib/bpf/bpf.h
169
LIBBPF_API int bpf_map_update_elem(int fd, const void *key, const void *value,
tools/lib/bpf/bpf.h
172
LIBBPF_API int bpf_map_lookup_elem(int fd, const void *key, void *value);
tools/lib/bpf/bpf.h
173
LIBBPF_API int bpf_map_lookup_elem_flags(int fd, const void *key, void *value,
tools/lib/bpf/bpf.h
175
LIBBPF_API int bpf_map_lookup_and_delete_elem(int fd, const void *key,
tools/lib/bpf/bpf.h
177
LIBBPF_API int bpf_map_lookup_and_delete_elem_flags(int fd, const void *key,
tools/lib/bpf/bpf.h
179
LIBBPF_API int bpf_map_delete_elem(int fd, const void *key);
tools/lib/bpf/bpf.h
180
LIBBPF_API int bpf_map_delete_elem_flags(int fd, const void *key, __u64 flags);
tools/lib/bpf/bpf.h
181
LIBBPF_API int bpf_map_get_next_key(int fd, const void *key, void *next_key);
tools/lib/bpf/bpf.h
182
LIBBPF_API int bpf_map_freeze(int fd);
tools/lib/bpf/bpf.h
207
LIBBPF_API int bpf_map_delete_batch(int fd, const void *keys,
tools/lib/bpf/bpf.h
244
LIBBPF_API int bpf_map_lookup_batch(int fd, void *in_batch, void *out_batch,
tools/lib/bpf/bpf.h
273
LIBBPF_API int bpf_map_lookup_and_delete_batch(int fd, void *in_batch,
tools/lib/bpf/bpf.h
327
LIBBPF_API int bpf_map_update_batch(int fd, const void *keys, const void *values,
tools/lib/bpf/bpf.h
341
LIBBPF_API int bpf_obj_pin(int fd, const char *pathname);
tools/lib/bpf/bpf.h
342
LIBBPF_API int bpf_obj_pin_opts(int fd, const char *pathname,
tools/lib/bpf/bpf.h
355
LIBBPF_API int bpf_obj_get(const char *pathname);
tools/lib/bpf/bpf.h
356
LIBBPF_API int bpf_obj_get_opts(const char *pathname,
tools/lib/bpf/bpf.h
359
LIBBPF_API int bpf_prog_attach(int prog_fd, int attachable_fd,
tools/lib/bpf/bpf.h
361
LIBBPF_API int bpf_prog_detach(int attachable_fd, enum bpf_attach_type type);
tools/lib/bpf/bpf.h
362
LIBBPF_API int bpf_prog_detach2(int prog_fd, int attachable_fd,
tools/lib/bpf/bpf.h
38
LIBBPF_API int libbpf_set_memlock_rlim(size_t memlock_bytes);
tools/lib/bpf/bpf.h
401
LIBBPF_API int bpf_prog_attach_opts(int prog_fd, int target,
tools/lib/bpf/bpf.h
417
LIBBPF_API int bpf_prog_detach_opts(int prog_fd, int target,
tools/lib/bpf/bpf.h
483
LIBBPF_API int bpf_link_create(int prog_fd, int target_fd,
tools/lib/bpf/bpf.h
487
LIBBPF_API int bpf_link_detach(int link_fd);
tools/lib/bpf/bpf.h
497
LIBBPF_API int bpf_link_update(int link_fd, int new_prog_fd,
tools/lib/bpf/bpf.h
500
LIBBPF_API int bpf_iter_create(int link_fd);
tools/lib/bpf/bpf.h
519
LIBBPF_API int bpf_prog_get_next_id(__u32 start_id, __u32 *next_id);
tools/lib/bpf/bpf.h
520
LIBBPF_API int bpf_map_get_next_id(__u32 start_id, __u32 *next_id);
tools/lib/bpf/bpf.h
521
LIBBPF_API int bpf_btf_get_next_id(__u32 start_id, __u32 *next_id);
tools/lib/bpf/bpf.h
522
LIBBPF_API int bpf_link_get_next_id(__u32 start_id, __u32 *next_id);
tools/lib/bpf/bpf.h
532
LIBBPF_API int bpf_prog_get_fd_by_id(__u32 id);
tools/lib/bpf/bpf.h
533
LIBBPF_API int bpf_prog_get_fd_by_id_opts(__u32 id,
tools/lib/bpf/bpf.h
535
LIBBPF_API int bpf_map_get_fd_by_id(__u32 id);
tools/lib/bpf/bpf.h
536
LIBBPF_API int bpf_map_get_fd_by_id_opts(__u32 id,
tools/lib/bpf/bpf.h
538
LIBBPF_API int bpf_btf_get_fd_by_id(__u32 id);
tools/lib/bpf/bpf.h
539
LIBBPF_API int bpf_btf_get_fd_by_id_opts(__u32 id,
tools/lib/bpf/bpf.h
541
LIBBPF_API int bpf_link_get_fd_by_id(__u32 id);
tools/lib/bpf/bpf.h
542
LIBBPF_API int bpf_link_get_fd_by_id_opts(__u32 id,
tools/lib/bpf/bpf.h
544
LIBBPF_API int bpf_obj_get_info_by_fd(int bpf_fd, void *info, __u32 *info_len);
tools/lib/bpf/bpf.h
564
LIBBPF_API int bpf_prog_get_info_by_fd(int prog_fd, struct bpf_prog_info *info, __u32 *info_len);
tools/lib/bpf/bpf.h
584
LIBBPF_API int bpf_map_get_info_by_fd(int map_fd, struct bpf_map_info *info, __u32 *info_len);
tools/lib/bpf/bpf.h
604
LIBBPF_API int bpf_btf_get_info_by_fd(int btf_fd, struct bpf_btf_info *info, __u32 *info_len);
tools/lib/bpf/bpf.h
624
LIBBPF_API int bpf_link_get_info_by_fd(int link_fd, struct bpf_link_info *info, __u32 *info_len);
tools/lib/bpf/bpf.h
655
LIBBPF_API int bpf_prog_query_opts(int target, enum bpf_attach_type type,
tools/lib/bpf/bpf.h
657
LIBBPF_API int bpf_prog_query(int target_fd, enum bpf_attach_type type,
tools/lib/bpf/bpf.h
669
LIBBPF_API int bpf_raw_tracepoint_open_opts(int prog_fd, struct bpf_raw_tp_opts *opts);
tools/lib/bpf/bpf.h
670
LIBBPF_API int bpf_raw_tracepoint_open(const char *name, int prog_fd);
tools/lib/bpf/bpf.h
671
LIBBPF_API int bpf_task_fd_query(int pid, int fd, __u32 flags, char *buf,
tools/lib/bpf/bpf.h
679
LIBBPF_API int bpf_enable_stats(int type);
tools/lib/bpf/bpf.h
682
LIBBPF_API int bpf_enable_stats(enum bpf_stats_type type);
tools/lib/bpf/bpf.h
691
LIBBPF_API int bpf_prog_bind_map(int prog_fd, int map_fd,
tools/lib/bpf/bpf.h
717
LIBBPF_API int bpf_prog_test_run_opts(int prog_fd,
tools/lib/bpf/bpf.h
741
LIBBPF_API int bpf_token_create(int bpffs_fd,
tools/lib/bpf/bpf.h
762
LIBBPF_API int bpf_prog_stream_read(int prog_fd, __u32 stream_id, void *buf, __u32 buf_len,
tools/lib/bpf/bpf.h
783
LIBBPF_API int bpf_prog_assoc_struct_ops(int prog_fd, int map_fd,
tools/lib/bpf/bpf.h
79
LIBBPF_API int bpf_map_create(enum bpf_map_type map_type,
tools/lib/bpf/btf.h
110
LIBBPF_API struct btf *btf__new_empty_split(struct btf *base_btf);
tools/lib/bpf/btf.h
130
LIBBPF_API struct btf *btf__new_empty_opts(struct btf_new_opts *opts);
tools/lib/bpf/btf.h
154
LIBBPF_API int btf__distill_base(const struct btf *src_btf, struct btf **new_base_btf,
tools/lib/bpf/btf.h
157
LIBBPF_API struct btf *btf__parse(const char *path, struct btf_ext **btf_ext);
tools/lib/bpf/btf.h
158
LIBBPF_API struct btf *btf__parse_split(const char *path, struct btf *base_btf);
tools/lib/bpf/btf.h
159
LIBBPF_API struct btf *btf__parse_elf(const char *path, struct btf_ext **btf_ext);
tools/lib/bpf/btf.h
160
LIBBPF_API struct btf *btf__parse_elf_split(const char *path, struct btf *base_btf);
tools/lib/bpf/btf.h
161
LIBBPF_API struct btf *btf__parse_raw(const char *path);
tools/lib/bpf/btf.h
162
LIBBPF_API struct btf *btf__parse_raw_split(const char *path, struct btf *base_btf);
tools/lib/bpf/btf.h
164
LIBBPF_API struct btf *btf__load_vmlinux_btf(void);
tools/lib/bpf/btf.h
165
LIBBPF_API struct btf *btf__load_module_btf(const char *module_name, struct btf *vmlinux_btf);
tools/lib/bpf/btf.h
167
LIBBPF_API struct btf *btf__load_from_kernel_by_id(__u32 id);
tools/lib/bpf/btf.h
168
LIBBPF_API struct btf *btf__load_from_kernel_by_id_split(__u32 id, struct btf *base_btf);
tools/lib/bpf/btf.h
170
LIBBPF_API int btf__load_into_kernel(struct btf *btf);
tools/lib/bpf/btf.h
171
LIBBPF_API __s32 btf__find_by_name(const struct btf *btf,
tools/lib/bpf/btf.h
173
LIBBPF_API __s32 btf__find_by_name_kind(const struct btf *btf,
tools/lib/bpf/btf.h
175
LIBBPF_API __u32 btf__type_cnt(const struct btf *btf);
tools/lib/bpf/btf.h
176
LIBBPF_API const struct btf *btf__base_btf(const struct btf *btf);
tools/lib/bpf/btf.h
177
LIBBPF_API const struct btf_type *btf__type_by_id(const struct btf *btf,
tools/lib/bpf/btf.h
179
LIBBPF_API size_t btf__pointer_size(const struct btf *btf);
tools/lib/bpf/btf.h
180
LIBBPF_API int btf__set_pointer_size(struct btf *btf, size_t ptr_sz);
tools/lib/bpf/btf.h
181
LIBBPF_API enum btf_endianness btf__endianness(const struct btf *btf);
tools/lib/bpf/btf.h
182
LIBBPF_API int btf__set_endianness(struct btf *btf, enum btf_endianness endian);
tools/lib/bpf/btf.h
183
LIBBPF_API __s64 btf__resolve_size(const struct btf *btf, __u32 type_id);
tools/lib/bpf/btf.h
184
LIBBPF_API int btf__resolve_type(const struct btf *btf, __u32 type_id);
tools/lib/bpf/btf.h
185
LIBBPF_API int btf__align_of(const struct btf *btf, __u32 id);
tools/lib/bpf/btf.h
186
LIBBPF_API int btf__fd(const struct btf *btf);
tools/lib/bpf/btf.h
187
LIBBPF_API void btf__set_fd(struct btf *btf, int fd);
tools/lib/bpf/btf.h
188
LIBBPF_API const void *btf__raw_data(const struct btf *btf, __u32 *size);
tools/lib/bpf/btf.h
189
LIBBPF_API const char *btf__name_by_offset(const struct btf *btf, __u32 offset);
tools/lib/bpf/btf.h
190
LIBBPF_API const char *btf__str_by_offset(const struct btf *btf, __u32 offset);
tools/lib/bpf/btf.h
192
LIBBPF_API struct btf_ext *btf_ext__new(const __u8 *data, __u32 size);
tools/lib/bpf/btf.h
193
LIBBPF_API void btf_ext__free(struct btf_ext *btf_ext);
tools/lib/bpf/btf.h
194
LIBBPF_API const void *btf_ext__raw_data(const struct btf_ext *btf_ext, __u32 *size);
tools/lib/bpf/btf.h
195
LIBBPF_API enum btf_endianness btf_ext__endianness(const struct btf_ext *btf_ext);
tools/lib/bpf/btf.h
196
LIBBPF_API int btf_ext__set_endianness(struct btf_ext *btf_ext,
tools/lib/bpf/btf.h
199
LIBBPF_API int btf__find_str(struct btf *btf, const char *s);
tools/lib/bpf/btf.h
200
LIBBPF_API int btf__add_str(struct btf *btf, const char *s);
tools/lib/bpf/btf.h
201
LIBBPF_API int btf__add_type(struct btf *btf, const struct btf *src_btf,
tools/lib/bpf/btf.h
224
LIBBPF_API int btf__add_btf(struct btf *btf, const struct btf *src_btf);
tools/lib/bpf/btf.h
226
LIBBPF_API int btf__add_int(struct btf *btf, const char *name, size_t byte_sz, int encoding);
tools/lib/bpf/btf.h
227
LIBBPF_API int btf__add_float(struct btf *btf, const char *name, size_t byte_sz);
tools/lib/bpf/btf.h
228
LIBBPF_API int btf__add_ptr(struct btf *btf, int ref_type_id);
tools/lib/bpf/btf.h
229
LIBBPF_API int btf__add_array(struct btf *btf,
tools/lib/bpf/btf.h
232
LIBBPF_API int btf__add_struct(struct btf *btf, const char *name, __u32 sz);
tools/lib/bpf/btf.h
233
LIBBPF_API int btf__add_union(struct btf *btf, const char *name, __u32 sz);
tools/lib/bpf/btf.h
234
LIBBPF_API int btf__add_field(struct btf *btf, const char *name, int field_type_id,
tools/lib/bpf/btf.h
238
LIBBPF_API int btf__add_enum(struct btf *btf, const char *name, __u32 bytes_sz);
tools/lib/bpf/btf.h
239
LIBBPF_API int btf__add_enum_value(struct btf *btf, const char *name, __s64 value);
tools/lib/bpf/btf.h
240
LIBBPF_API int btf__add_enum64(struct btf *btf, const char *name, __u32 bytes_sz, bool is_signed);
tools/lib/bpf/btf.h
241
LIBBPF_API int btf__add_enum64_value(struct btf *btf, const char *name, __u64 value);
tools/lib/bpf/btf.h
249
LIBBPF_API int btf__add_fwd(struct btf *btf, const char *name, enum btf_fwd_kind fwd_kind);
tools/lib/bpf/btf.h
250
LIBBPF_API int btf__add_typedef(struct btf *btf, const char *name, int ref_type_id);
tools/lib/bpf/btf.h
251
LIBBPF_API int btf__add_volatile(struct btf *btf, int ref_type_id);
tools/lib/bpf/btf.h
252
LIBBPF_API int btf__add_const(struct btf *btf, int ref_type_id);
tools/lib/bpf/btf.h
253
LIBBPF_API int btf__add_restrict(struct btf *btf, int ref_type_id);
tools/lib/bpf/btf.h
254
LIBBPF_API int btf__add_type_tag(struct btf *btf, const char *value, int ref_type_id);
tools/lib/bpf/btf.h
255
LIBBPF_API int btf__add_type_attr(struct btf *btf, const char *value, int ref_type_id);
tools/lib/bpf/btf.h
258
LIBBPF_API int btf__add_func(struct btf *btf, const char *name,
tools/lib/bpf/btf.h
260
LIBBPF_API int btf__add_func_proto(struct btf *btf, int ret_type_id);
tools/lib/bpf/btf.h
261
LIBBPF_API int btf__add_func_param(struct btf *btf, const char *name, int type_id);
tools/lib/bpf/btf.h
264
LIBBPF_API int btf__add_var(struct btf *btf, const char *name, int linkage, int type_id);
tools/lib/bpf/btf.h
265
LIBBPF_API int btf__add_datasec(struct btf *btf, const char *name, __u32 byte_sz);
tools/lib/bpf/btf.h
266
LIBBPF_API int btf__add_datasec_var_info(struct btf *btf, int var_type_id,
tools/lib/bpf/btf.h
270
LIBBPF_API int btf__add_decl_tag(struct btf *btf, const char *value, int ref_type_id,
tools/lib/bpf/btf.h
272
LIBBPF_API int btf__add_decl_attr(struct btf *btf, const char *value, int ref_type_id,
tools/lib/bpf/btf.h
285
LIBBPF_API int btf__dedup(struct btf *btf, const struct btf_dedup_opts *opts);
tools/lib/bpf/btf.h
302
LIBBPF_API int btf__relocate(struct btf *btf, const struct btf *base_btf);
tools/lib/bpf/btf.h
343
LIBBPF_API int btf__permute(struct btf *btf, __u32 *id_map, __u32 id_map_cnt,
tools/lib/bpf/btf.h
355
LIBBPF_API struct btf_dump *btf_dump__new(const struct btf *btf,
tools/lib/bpf/btf.h
360
LIBBPF_API void btf_dump__free(struct btf_dump *d);
tools/lib/bpf/btf.h
362
LIBBPF_API int btf_dump__dump_type(struct btf_dump *d, __u32 id);
tools/lib/bpf/btf.h
385
LIBBPF_API int
tools/lib/bpf/btf.h
39
LIBBPF_API void btf__free(struct btf *btf);
tools/lib/bpf/btf.h
404
LIBBPF_API int
tools/lib/bpf/btf.h
55
LIBBPF_API struct btf *btf__new(const void *data, __u32 size);
tools/lib/bpf/btf.h
77
LIBBPF_API struct btf *btf__new_split(const void *data, __u32 size, struct btf *base_btf);
tools/lib/bpf/btf.h
91
LIBBPF_API struct btf *btf__new_empty(void);
tools/lib/bpf/libbpf.c
13144
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
1007
LIBBPF_API int
tools/lib/bpf/libbpf.h
1011
LIBBPF_API __u32 bpf_program__flags(const struct bpf_program *prog);
tools/lib/bpf/libbpf.h
1012
LIBBPF_API int bpf_program__set_flags(struct bpf_program *prog, __u32 flags);
tools/lib/bpf/libbpf.h
1018
LIBBPF_API __u32 bpf_program__log_level(const struct bpf_program *prog);
tools/lib/bpf/libbpf.h
1019
LIBBPF_API int bpf_program__set_log_level(struct bpf_program *prog, __u32 log_level);
tools/lib/bpf/libbpf.h
1020
LIBBPF_API const char *bpf_program__log_buf(const struct bpf_program *prog, size_t *log_size);
tools/lib/bpf/libbpf.h
1021
LIBBPF_API int bpf_program__set_log_buf(struct bpf_program *prog, char *log_buf, size_t log_size);
tools/lib/bpf/libbpf.h
1023
LIBBPF_API struct bpf_func_info *bpf_program__func_info(const struct bpf_program *prog);
tools/lib/bpf/libbpf.h
1024
LIBBPF_API __u32 bpf_program__func_info_cnt(const struct bpf_program *prog);
tools/lib/bpf/libbpf.h
1026
LIBBPF_API struct bpf_line_info *bpf_program__line_info(const struct bpf_program *prog);
tools/lib/bpf/libbpf.h
1027
LIBBPF_API __u32 bpf_program__line_info_cnt(const struct bpf_program *prog);
tools/lib/bpf/libbpf.h
104
LIBBPF_API const char *libbpf_bpf_map_type_str(enum bpf_map_type t);
tools/lib/bpf/libbpf.h
1045
LIBBPF_API int
tools/lib/bpf/libbpf.h
1061
LIBBPF_API int
tools/lib/bpf/libbpf.h
1073
LIBBPF_API struct bpf_map *
tools/lib/bpf/libbpf.h
1076
LIBBPF_API int
tools/lib/bpf/libbpf.h
1079
LIBBPF_API struct bpf_map *
tools/lib/bpf/libbpf.h
1088
LIBBPF_API struct bpf_map *
tools/lib/bpf/libbpf.h
1110
LIBBPF_API int bpf_map__set_autocreate(struct bpf_map *map, bool autocreate);
tools/lib/bpf/libbpf.h
1111
LIBBPF_API bool bpf_map__autocreate(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1120
LIBBPF_API int bpf_map__set_autoattach(struct bpf_map *map, bool autoattach);
tools/lib/bpf/libbpf.h
1128
LIBBPF_API bool bpf_map__autoattach(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
113
LIBBPF_API const char *libbpf_bpf_prog_type_str(enum bpf_prog_type t);
tools/lib/bpf/libbpf.h
1136
LIBBPF_API int bpf_map__fd(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1137
LIBBPF_API int bpf_map__reuse_fd(struct bpf_map *map, int fd);
tools/lib/bpf/libbpf.h
1139
LIBBPF_API const char *bpf_map__name(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1141
LIBBPF_API enum bpf_map_type bpf_map__type(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1142
LIBBPF_API int bpf_map__set_type(struct bpf_map *map, enum bpf_map_type type);
tools/lib/bpf/libbpf.h
1144
LIBBPF_API __u32 bpf_map__max_entries(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1145
LIBBPF_API int bpf_map__set_max_entries(struct bpf_map *map, __u32 max_entries);
tools/lib/bpf/libbpf.h
1147
LIBBPF_API __u32 bpf_map__map_flags(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1148
LIBBPF_API int bpf_map__set_map_flags(struct bpf_map *map, __u32 flags);
tools/lib/bpf/libbpf.h
1150
LIBBPF_API __u32 bpf_map__numa_node(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1151
LIBBPF_API int bpf_map__set_numa_node(struct bpf_map *map, __u32 numa_node);
tools/lib/bpf/libbpf.h
1153
LIBBPF_API __u32 bpf_map__key_size(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1154
LIBBPF_API int bpf_map__set_key_size(struct bpf_map *map, __u32 size);
tools/lib/bpf/libbpf.h
1156
LIBBPF_API __u32 bpf_map__value_size(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1172
LIBBPF_API int bpf_map__set_value_size(struct bpf_map *map, __u32 size);
tools/lib/bpf/libbpf.h
1174
LIBBPF_API __u32 bpf_map__btf_key_type_id(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1175
LIBBPF_API __u32 bpf_map__btf_value_type_id(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1177
LIBBPF_API __u32 bpf_map__ifindex(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1178
LIBBPF_API int bpf_map__set_ifindex(struct bpf_map *map, __u32 ifindex);
tools/lib/bpf/libbpf.h
1180
LIBBPF_API __u64 bpf_map__map_extra(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1181
LIBBPF_API int bpf_map__set_map_extra(struct bpf_map *map, __u64 map_extra);
tools/lib/bpf/libbpf.h
1183
LIBBPF_API int bpf_map__set_initial_value(struct bpf_map *map,
tools/lib/bpf/libbpf.h
1185
LIBBPF_API void *bpf_map__initial_value(const struct bpf_map *map, size_t *psize);
tools/lib/bpf/libbpf.h
1194
LIBBPF_API bool bpf_map__is_internal(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1203
LIBBPF_API int bpf_map__set_pin_path(struct bpf_map *map, const char *path);
tools/lib/bpf/libbpf.h
1211
LIBBPF_API const char *bpf_map__pin_path(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1219
LIBBPF_API bool bpf_map__is_pinned(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1233
LIBBPF_API int bpf_map__pin(struct bpf_map *map, const char *path);
tools/lib/bpf/libbpf.h
1246
LIBBPF_API int bpf_map__unpin(struct bpf_map *map, const char *path);
tools/lib/bpf/libbpf.h
1248
LIBBPF_API int bpf_map__set_inner_map_fd(struct bpf_map *map, int fd);
tools/lib/bpf/libbpf.h
1249
LIBBPF_API struct bpf_map *bpf_map__inner_map(struct bpf_map *map);
tools/lib/bpf/libbpf.h
1272
LIBBPF_API int bpf_map__lookup_elem(const struct bpf_map *map,
tools/lib/bpf/libbpf.h
1290
LIBBPF_API int bpf_map__update_elem(const struct bpf_map *map,
tools/lib/bpf/libbpf.h
1306
LIBBPF_API int bpf_map__delete_elem(const struct bpf_map *map,
tools/lib/bpf/libbpf.h
1329
LIBBPF_API int bpf_map__lookup_and_delete_elem(const struct bpf_map *map,
tools/lib/bpf/libbpf.h
1347
LIBBPF_API int bpf_map__get_next_key(const struct bpf_map *map,
tools/lib/bpf/libbpf.h
135
LIBBPF_API libbpf_print_fn_t libbpf_set_print(libbpf_print_fn_t fn);
tools/lib/bpf/libbpf.h
1362
LIBBPF_API int bpf_map__set_exclusive_program(struct bpf_map *map, struct bpf_program *prog);
tools/lib/bpf/libbpf.h
1370
LIBBPF_API struct bpf_program *bpf_map__exclusive_program(struct bpf_map *map);
tools/lib/bpf/libbpf.h
1399
LIBBPF_API int bpf_xdp_attach(int ifindex, int prog_fd, __u32 flags,
tools/lib/bpf/libbpf.h
1401
LIBBPF_API int bpf_xdp_detach(int ifindex, __u32 flags,
tools/lib/bpf/libbpf.h
1403
LIBBPF_API int bpf_xdp_query(int ifindex, int flags, struct bpf_xdp_query_opts *opts);
tools/lib/bpf/libbpf.h
1404
LIBBPF_API int bpf_xdp_query_id(int ifindex, int flags, __u32 *prog_id);
tools/lib/bpf/libbpf.h
1443
LIBBPF_API int bpf_tc_hook_create(struct bpf_tc_hook *hook);
tools/lib/bpf/libbpf.h
1444
LIBBPF_API int bpf_tc_hook_destroy(struct bpf_tc_hook *hook);
tools/lib/bpf/libbpf.h
1445
LIBBPF_API int bpf_tc_attach(const struct bpf_tc_hook *hook,
tools/lib/bpf/libbpf.h
1447
LIBBPF_API int bpf_tc_detach(const struct bpf_tc_hook *hook,
tools/lib/bpf/libbpf.h
1449
LIBBPF_API int bpf_tc_query(const struct bpf_tc_hook *hook,
tools/lib/bpf/libbpf.h
1465
LIBBPF_API struct ring_buffer *
tools/lib/bpf/libbpf.h
1468
LIBBPF_API void ring_buffer__free(struct ring_buffer *rb);
tools/lib/bpf/libbpf.h
1469
LIBBPF_API int ring_buffer__add(struct ring_buffer *rb, int map_fd,
tools/lib/bpf/libbpf.h
1471
LIBBPF_API int ring_buffer__poll(struct ring_buffer *rb, int timeout_ms);
tools/lib/bpf/libbpf.h
1472
LIBBPF_API int ring_buffer__consume(struct ring_buffer *rb);
tools/lib/bpf/libbpf.h
1473
LIBBPF_API int ring_buffer__consume_n(struct ring_buffer *rb, size_t n);
tools/lib/bpf/libbpf.h
1474
LIBBPF_API int ring_buffer__epoll_fd(const struct ring_buffer *rb);
tools/lib/bpf/libbpf.h
1487
LIBBPF_API struct ring *ring_buffer__ring(struct ring_buffer *rb,
tools/lib/bpf/libbpf.h
1497
LIBBPF_API unsigned long ring__consumer_pos(const struct ring *r);
tools/lib/bpf/libbpf.h
1506
LIBBPF_API unsigned long ring__producer_pos(const struct ring *r);
tools/lib/bpf/libbpf.h
1517
LIBBPF_API size_t ring__avail_data_size(const struct ring *r);
tools/lib/bpf/libbpf.h
1527
LIBBPF_API size_t ring__size(const struct ring *r);
tools/lib/bpf/libbpf.h
1536
LIBBPF_API int ring__map_fd(const struct ring *r);
tools/lib/bpf/libbpf.h
1546
LIBBPF_API int ring__consume(struct ring *r);
tools/lib/bpf/libbpf.h
1557
LIBBPF_API int ring__consume_n(struct ring *r, size_t n);
tools/lib/bpf/libbpf.h
1574
LIBBPF_API struct user_ring_buffer *
tools/lib/bpf/libbpf.h
1596
LIBBPF_API void *user_ring_buffer__reserve(struct user_ring_buffer *rb, __u32 size);
tools/lib/bpf/libbpf.h
1639
LIBBPF_API void *user_ring_buffer__reserve_blocking(struct user_ring_buffer *rb,
tools/lib/bpf/libbpf.h
1652
LIBBPF_API void user_ring_buffer__submit(struct user_ring_buffer *rb, void *sample);
tools/lib/bpf/libbpf.h
1662
LIBBPF_API void user_ring_buffer__discard(struct user_ring_buffer *rb, void *sample);
tools/lib/bpf/libbpf.h
1669
LIBBPF_API void user_ring_buffer__free(struct user_ring_buffer *rb);
tools/lib/bpf/libbpf.h
1699
LIBBPF_API struct perf_buffer *
tools/lib/bpf/libbpf.h
1733
LIBBPF_API struct perf_buffer *
tools/lib/bpf/libbpf.h
1738
LIBBPF_API void perf_buffer__free(struct perf_buffer *pb);
tools/lib/bpf/libbpf.h
1739
LIBBPF_API int perf_buffer__epoll_fd(const struct perf_buffer *pb);
tools/lib/bpf/libbpf.h
1740
LIBBPF_API int perf_buffer__poll(struct perf_buffer *pb, int timeout_ms);
tools/lib/bpf/libbpf.h
1741
LIBBPF_API int perf_buffer__consume(struct perf_buffer *pb);
tools/lib/bpf/libbpf.h
1742
LIBBPF_API int perf_buffer__consume_buffer(struct perf_buffer *pb, size_t buf_idx);
tools/lib/bpf/libbpf.h
1743
LIBBPF_API size_t perf_buffer__buffer_cnt(const struct perf_buffer *pb);
tools/lib/bpf/libbpf.h
1744
LIBBPF_API int perf_buffer__buffer_fd(const struct perf_buffer *pb, size_t buf_idx);
tools/lib/bpf/libbpf.h
1759
LIBBPF_API int perf_buffer__buffer(struct perf_buffer *pb, int buf_idx, void **buf,
tools/lib/bpf/libbpf.h
1765
LIBBPF_API void bpf_prog_linfo__free(struct bpf_prog_linfo *prog_linfo);
tools/lib/bpf/libbpf.h
1766
LIBBPF_API struct bpf_prog_linfo *
tools/lib/bpf/libbpf.h
1768
LIBBPF_API const struct bpf_line_info *
tools/lib/bpf/libbpf.h
1771
LIBBPF_API const struct bpf_line_info *
tools/lib/bpf/libbpf.h
1796
LIBBPF_API int libbpf_probe_bpf_prog_type(enum bpf_prog_type prog_type, const void *opts);
tools/lib/bpf/libbpf.h
1809
LIBBPF_API int libbpf_probe_bpf_map_type(enum bpf_map_type map_type, const void *opts);
tools/lib/bpf/libbpf.h
1823
LIBBPF_API int libbpf_probe_bpf_helper(enum bpf_prog_type prog_type,
tools/lib/bpf/libbpf.h
1840
LIBBPF_API int libbpf_num_possible_cpus(void);
tools/lib/bpf/libbpf.h
1873
LIBBPF_API int
tools/lib/bpf/libbpf.h
1876
LIBBPF_API int bpf_object__load_skeleton(struct bpf_object_skeleton *s);
tools/lib/bpf/libbpf.h
1877
LIBBPF_API int bpf_object__attach_skeleton(struct bpf_object_skeleton *s);
tools/lib/bpf/libbpf.h
1878
LIBBPF_API void bpf_object__detach_skeleton(struct bpf_object_skeleton *s);
tools/lib/bpf/libbpf.h
1879
LIBBPF_API void bpf_object__destroy_skeleton(struct bpf_object_skeleton *s);
tools/lib/bpf/libbpf.h
1905
LIBBPF_API int
tools/lib/bpf/libbpf.h
1907
LIBBPF_API void
tools/lib/bpf/libbpf.h
1920
LIBBPF_API int bpf_object__gen_loader(struct bpf_object *obj,
tools/lib/bpf/libbpf.h
1943
LIBBPF_API struct bpf_linker *bpf_linker__new(const char *filename, struct bpf_linker_opts *opts);
tools/lib/bpf/libbpf.h
1944
LIBBPF_API struct bpf_linker *bpf_linker__new_fd(int fd, struct bpf_linker_opts *opts);
tools/lib/bpf/libbpf.h
1945
LIBBPF_API int bpf_linker__add_file(struct bpf_linker *linker,
tools/lib/bpf/libbpf.h
1948
LIBBPF_API int bpf_linker__add_fd(struct bpf_linker *linker, int fd,
tools/lib/bpf/libbpf.h
1950
LIBBPF_API int bpf_linker__add_buf(struct bpf_linker *linker, void *buf, size_t buf_sz,
tools/lib/bpf/libbpf.h
1952
LIBBPF_API int bpf_linker__finalize(struct bpf_linker *linker);
tools/lib/bpf/libbpf.h
1953
LIBBPF_API void bpf_linker__free(struct bpf_linker *linker);
tools/lib/bpf/libbpf.h
2046
LIBBPF_API int libbpf_register_prog_handler(const char *sec,
tools/lib/bpf/libbpf.h
2062
LIBBPF_API int libbpf_unregister_prog_handler(int handler_id);
tools/lib/bpf/libbpf.h
2079
LIBBPF_API int bpf_program__clone(struct bpf_program *prog, const struct bpf_prog_load_opts *opts);
tools/lib/bpf/libbpf.h
240
LIBBPF_API struct bpf_object *bpf_object__open(const char *path);
tools/lib/bpf/libbpf.h
252
LIBBPF_API struct bpf_object *
tools/lib/bpf/libbpf.h
265
LIBBPF_API struct bpf_object *
tools/lib/bpf/libbpf.h
280
LIBBPF_API int bpf_object__prepare(struct bpf_object *obj);
tools/lib/bpf/libbpf.h
289
LIBBPF_API int bpf_object__load(struct bpf_object *obj);
tools/lib/bpf/libbpf.h
296
LIBBPF_API void bpf_object__close(struct bpf_object *obj);
tools/lib/bpf/libbpf.h
309
LIBBPF_API int bpf_object__pin_maps(struct bpf_object *obj, const char *path);
tools/lib/bpf/libbpf.h
31
LIBBPF_API __u32 libbpf_major_version(void);
tools/lib/bpf/libbpf.h
322
LIBBPF_API int bpf_object__unpin_maps(struct bpf_object *obj,
tools/lib/bpf/libbpf.h
324
LIBBPF_API int bpf_object__pin_programs(struct bpf_object *obj,
tools/lib/bpf/libbpf.h
326
LIBBPF_API int bpf_object__unpin_programs(struct bpf_object *obj,
tools/lib/bpf/libbpf.h
328
LIBBPF_API int bpf_object__pin(struct bpf_object *object, const char *path);
tools/lib/bpf/libbpf.h
329
LIBBPF_API int bpf_object__unpin(struct bpf_object *object, const char *path);
tools/lib/bpf/libbpf.h
331
LIBBPF_API const char *bpf_object__name(const struct bpf_object *obj);
tools/lib/bpf/libbpf.h
332
LIBBPF_API unsigned int bpf_object__kversion(const struct bpf_object *obj);
tools/lib/bpf/libbpf.h
333
LIBBPF_API int bpf_object__set_kversion(struct bpf_object *obj, __u32 kern_version);
tools/lib/bpf/libbpf.h
341
LIBBPF_API int bpf_object__token_fd(const struct bpf_object *obj);
tools/lib/bpf/libbpf.h
344
LIBBPF_API struct btf *bpf_object__btf(const struct bpf_object *obj);
tools/lib/bpf/libbpf.h
345
LIBBPF_API int bpf_object__btf_fd(const struct bpf_object *obj);
tools/lib/bpf/libbpf.h
347
LIBBPF_API struct bpf_program *
tools/lib/bpf/libbpf.h
351
LIBBPF_API int
tools/lib/bpf/libbpf.h
354
LIBBPF_API int libbpf_attach_type_by_name(const char *name,
tools/lib/bpf/libbpf.h
356
LIBBPF_API int libbpf_find_vmlinux_btf_id(const char *name,
tools/lib/bpf/libbpf.h
362
LIBBPF_API struct bpf_program *
tools/lib/bpf/libbpf.h
37
LIBBPF_API __u32 libbpf_minor_version(void);
tools/lib/bpf/libbpf.h
370
LIBBPF_API struct bpf_program *
tools/lib/bpf/libbpf.h
373
LIBBPF_API void bpf_program__set_ifindex(struct bpf_program *prog,
tools/lib/bpf/libbpf.h
376
LIBBPF_API const char *bpf_program__name(const struct bpf_program *prog);
tools/lib/bpf/libbpf.h
377
LIBBPF_API const char *bpf_program__section_name(const struct bpf_program *prog);
tools/lib/bpf/libbpf.h
378
LIBBPF_API bool bpf_program__autoload(const struct bpf_program *prog);
tools/lib/bpf/libbpf.h
379
LIBBPF_API int bpf_program__set_autoload(struct bpf_program *prog, bool autoload);
tools/lib/bpf/libbpf.h
380
LIBBPF_API bool bpf_program__autoattach(const struct bpf_program *prog);
tools/lib/bpf/libbpf.h
381
LIBBPF_API void bpf_program__set_autoattach(struct bpf_program *prog, bool autoattach);
tools/lib/bpf/libbpf.h
405
LIBBPF_API const struct bpf_insn *bpf_program__insns(const struct bpf_program *prog);
tools/lib/bpf/libbpf.h
421
LIBBPF_API int bpf_program__set_insns(struct bpf_program *prog,
tools/lib/bpf/libbpf.h
433
LIBBPF_API size_t bpf_program__insn_cnt(const struct bpf_program *prog);
tools/lib/bpf/libbpf.h
435
LIBBPF_API int bpf_program__fd(const struct bpf_program *prog);
tools/lib/bpf/libbpf.h
447
LIBBPF_API int bpf_program__pin(struct bpf_program *prog, const char *path);
tools/lib/bpf/libbpf.h
46
LIBBPF_API const char *libbpf_version_string(void);
tools/lib/bpf/libbpf.h
461
LIBBPF_API int bpf_program__unpin(struct bpf_program *prog, const char *path);
tools/lib/bpf/libbpf.h
462
LIBBPF_API void bpf_program__unload(struct bpf_program *prog);
tools/lib/bpf/libbpf.h
466
LIBBPF_API struct bpf_link *bpf_link__open(const char *path);
tools/lib/bpf/libbpf.h
467
LIBBPF_API int bpf_link__fd(const struct bpf_link *link);
tools/lib/bpf/libbpf.h
468
LIBBPF_API const char *bpf_link__pin_path(const struct bpf_link *link);
tools/lib/bpf/libbpf.h
480
LIBBPF_API int bpf_link__pin(struct bpf_link *link, const char *path);
tools/lib/bpf/libbpf.h
492
LIBBPF_API int bpf_link__unpin(struct bpf_link *link);
tools/lib/bpf/libbpf.h
493
LIBBPF_API int bpf_link__update_program(struct bpf_link *link,
tools/lib/bpf/libbpf.h
495
LIBBPF_API void bpf_link__disconnect(struct bpf_link *link);
tools/lib/bpf/libbpf.h
496
LIBBPF_API int bpf_link__detach(struct bpf_link *link);
tools/lib/bpf/libbpf.h
497
LIBBPF_API int bpf_link__destroy(struct bpf_link *link);
tools/lib/bpf/libbpf.h
515
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
531
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
534
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
581
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
598
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
625
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
676
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
724
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
740
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
77
LIBBPF_API int libbpf_strerror(int err, char *buf, size_t size);
tools/lib/bpf/libbpf.h
785
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
804
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
834
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
848
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
852
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
86
LIBBPF_API const char *libbpf_bpf_attach_type_str(enum bpf_attach_type t);
tools/lib/bpf/libbpf.h
865
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
868
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
881
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
883
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
886
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
888
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
890
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
892
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
894
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
896
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
911
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
926
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
941
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
95
LIBBPF_API const char *libbpf_bpf_link_type_str(enum bpf_link_type t);
tools/lib/bpf/libbpf.h
956
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
962
LIBBPF_API struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
963
LIBBPF_API int bpf_link__update_map(struct bpf_link *link, const struct bpf_map *map);
tools/lib/bpf/libbpf.h
972
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
976
LIBBPF_API enum bpf_prog_type bpf_program__type(const struct bpf_program *prog);
tools/lib/bpf/libbpf.h
989
LIBBPF_API int bpf_program__set_type(struct bpf_program *prog,
tools/lib/bpf/libbpf.h
992
LIBBPF_API enum bpf_attach_type
tools/lib/bpf/libbpf_common.h
15
#ifndef LIBBPF_API
tools/lib/bpf/libbpf_legacy.h
113
LIBBPF_API long libbpf_get_error(const void *ptr);
tools/lib/bpf/libbpf_legacy.h
128
LIBBPF_API struct btf *libbpf_find_kernel_btf(void);
tools/lib/bpf/libbpf_legacy.h
130
LIBBPF_API enum bpf_prog_type bpf_program__get_type(const struct bpf_program *prog);
tools/lib/bpf/libbpf_legacy.h
131
LIBBPF_API enum bpf_attach_type bpf_program__get_expected_attach_type(const struct bpf_program *prog);
tools/lib/bpf/libbpf_legacy.h
132
LIBBPF_API const char *bpf_map__get_pin_path(const struct bpf_map *map);
tools/lib/bpf/libbpf_legacy.h
133
LIBBPF_API const void *btf__get_raw_data(const struct btf *btf, __u32 *size);
tools/lib/bpf/libbpf_legacy.h
134
LIBBPF_API const void *btf_ext__get_raw_data(const struct btf_ext *btf_ext, __u32 *size);
tools/lib/bpf/libbpf_legacy.h
94
LIBBPF_API int libbpf_set_strict_mode(enum libbpf_strict_mode mode);