tools/lib/bpf/bpf.h
120
LIBBPF_API int bpf_prog_load(enum bpf_prog_type prog_type,
tools/lib/bpf/bpf.h
151
LIBBPF_API int bpf_btf_load(const void *btf_data, size_t btf_size,
tools/lib/bpf/bpf.h
154
LIBBPF_API int bpf_map_update_elem(int fd, const void *key, const void *value,
tools/lib/bpf/bpf.h
157
LIBBPF_API int bpf_map_lookup_elem(int fd, const void *key, void *value);
tools/lib/bpf/bpf.h
158
LIBBPF_API int bpf_map_lookup_elem_flags(int fd, const void *key, void *value,
tools/lib/bpf/bpf.h
160
LIBBPF_API int bpf_map_lookup_and_delete_elem(int fd, const void *key,
tools/lib/bpf/bpf.h
162
LIBBPF_API int bpf_map_lookup_and_delete_elem_flags(int fd, const void *key,
tools/lib/bpf/bpf.h
164
LIBBPF_API int bpf_map_delete_elem(int fd, const void *key);
tools/lib/bpf/bpf.h
165
LIBBPF_API int bpf_map_delete_elem_flags(int fd, const void *key, __u64 flags);
tools/lib/bpf/bpf.h
166
LIBBPF_API int bpf_map_get_next_key(int fd, const void *key, void *next_key);
tools/lib/bpf/bpf.h
167
LIBBPF_API int bpf_map_freeze(int fd);
tools/lib/bpf/bpf.h
192
LIBBPF_API int bpf_map_delete_batch(int fd, const void *keys,
tools/lib/bpf/bpf.h
229
LIBBPF_API int bpf_map_lookup_batch(int fd, void *in_batch, void *out_batch,
tools/lib/bpf/bpf.h
258
LIBBPF_API int bpf_map_lookup_and_delete_batch(int fd, void *in_batch,
tools/lib/bpf/bpf.h
312
LIBBPF_API int bpf_map_update_batch(int fd, const void *keys, const void *values,
tools/lib/bpf/bpf.h
326
LIBBPF_API int bpf_obj_pin(int fd, const char *pathname);
tools/lib/bpf/bpf.h
327
LIBBPF_API int bpf_obj_pin_opts(int fd, const char *pathname,
tools/lib/bpf/bpf.h
340
LIBBPF_API int bpf_obj_get(const char *pathname);
tools/lib/bpf/bpf.h
341
LIBBPF_API int bpf_obj_get_opts(const char *pathname,
tools/lib/bpf/bpf.h
344
LIBBPF_API int bpf_prog_attach(int prog_fd, int attachable_fd,
tools/lib/bpf/bpf.h
346
LIBBPF_API int bpf_prog_detach(int attachable_fd, enum bpf_attach_type type);
tools/lib/bpf/bpf.h
347
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
386
LIBBPF_API int bpf_prog_attach_opts(int prog_fd, int target,
tools/lib/bpf/bpf.h
402
LIBBPF_API int bpf_prog_detach_opts(int prog_fd, int target,
tools/lib/bpf/bpf.h
462
LIBBPF_API int bpf_link_create(int prog_fd, int target_fd,
tools/lib/bpf/bpf.h
466
LIBBPF_API int bpf_link_detach(int link_fd);
tools/lib/bpf/bpf.h
476
LIBBPF_API int bpf_link_update(int link_fd, int new_prog_fd,
tools/lib/bpf/bpf.h
479
LIBBPF_API int bpf_iter_create(int link_fd);
tools/lib/bpf/bpf.h
498
LIBBPF_API int bpf_prog_get_next_id(__u32 start_id, __u32 *next_id);
tools/lib/bpf/bpf.h
499
LIBBPF_API int bpf_map_get_next_id(__u32 start_id, __u32 *next_id);
tools/lib/bpf/bpf.h
500
LIBBPF_API int bpf_btf_get_next_id(__u32 start_id, __u32 *next_id);
tools/lib/bpf/bpf.h
501
LIBBPF_API int bpf_link_get_next_id(__u32 start_id, __u32 *next_id);
tools/lib/bpf/bpf.h
511
LIBBPF_API int bpf_prog_get_fd_by_id(__u32 id);
tools/lib/bpf/bpf.h
512
LIBBPF_API int bpf_prog_get_fd_by_id_opts(__u32 id,
tools/lib/bpf/bpf.h
514
LIBBPF_API int bpf_map_get_fd_by_id(__u32 id);
tools/lib/bpf/bpf.h
515
LIBBPF_API int bpf_map_get_fd_by_id_opts(__u32 id,
tools/lib/bpf/bpf.h
517
LIBBPF_API int bpf_btf_get_fd_by_id(__u32 id);
tools/lib/bpf/bpf.h
518
LIBBPF_API int bpf_btf_get_fd_by_id_opts(__u32 id,
tools/lib/bpf/bpf.h
520
LIBBPF_API int bpf_link_get_fd_by_id(__u32 id);
tools/lib/bpf/bpf.h
521
LIBBPF_API int bpf_link_get_fd_by_id_opts(__u32 id,
tools/lib/bpf/bpf.h
523
LIBBPF_API int bpf_obj_get_info_by_fd(int bpf_fd, void *info, __u32 *info_len);
tools/lib/bpf/bpf.h
543
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
563
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
583
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
603
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
634
LIBBPF_API int bpf_prog_query_opts(int target, enum bpf_attach_type type,
tools/lib/bpf/bpf.h
636
LIBBPF_API int bpf_prog_query(int target_fd, enum bpf_attach_type type,
tools/lib/bpf/bpf.h
64
LIBBPF_API int bpf_map_create(enum bpf_map_type map_type,
tools/lib/bpf/bpf.h
648
LIBBPF_API int bpf_raw_tracepoint_open_opts(int prog_fd, struct bpf_raw_tp_opts *opts);
tools/lib/bpf/bpf.h
649
LIBBPF_API int bpf_raw_tracepoint_open(const char *name, int prog_fd);
tools/lib/bpf/bpf.h
650
LIBBPF_API int bpf_task_fd_query(int pid, int fd, __u32 flags, char *buf,
tools/lib/bpf/bpf.h
658
LIBBPF_API int bpf_enable_stats(int type);
tools/lib/bpf/bpf.h
661
LIBBPF_API int bpf_enable_stats(enum bpf_stats_type type);
tools/lib/bpf/bpf.h
670
LIBBPF_API int bpf_prog_bind_map(int prog_fd, int map_fd,
tools/lib/bpf/bpf.h
696
LIBBPF_API int bpf_prog_test_run_opts(int prog_fd,
tools/lib/bpf/bpf.h
720
LIBBPF_API int bpf_token_create(int bpffs_fd,
tools/lib/bpf/bpf.h
741
LIBBPF_API int bpf_prog_stream_read(int prog_fd, __u32 stream_id, void *buf, __u32 buf_len,
tools/lib/bpf/bpf.h
762
LIBBPF_API int bpf_prog_assoc_struct_ops(int prog_fd, int map_fd,
tools/lib/bpf/btf.h
110
LIBBPF_API struct btf *btf__new_empty_split(struct btf *base_btf);
tools/lib/bpf/btf.h
134
LIBBPF_API int btf__distill_base(const struct btf *src_btf, struct btf **new_base_btf,
tools/lib/bpf/btf.h
137
LIBBPF_API struct btf *btf__parse(const char *path, struct btf_ext **btf_ext);
tools/lib/bpf/btf.h
138
LIBBPF_API struct btf *btf__parse_split(const char *path, struct btf *base_btf);
tools/lib/bpf/btf.h
139
LIBBPF_API struct btf *btf__parse_elf(const char *path, struct btf_ext **btf_ext);
tools/lib/bpf/btf.h
140
LIBBPF_API struct btf *btf__parse_elf_split(const char *path, struct btf *base_btf);
tools/lib/bpf/btf.h
141
LIBBPF_API struct btf *btf__parse_raw(const char *path);
tools/lib/bpf/btf.h
142
LIBBPF_API struct btf *btf__parse_raw_split(const char *path, struct btf *base_btf);
tools/lib/bpf/btf.h
144
LIBBPF_API struct btf *btf__load_vmlinux_btf(void);
tools/lib/bpf/btf.h
145
LIBBPF_API struct btf *btf__load_module_btf(const char *module_name, struct btf *vmlinux_btf);
tools/lib/bpf/btf.h
147
LIBBPF_API struct btf *btf__load_from_kernel_by_id(__u32 id);
tools/lib/bpf/btf.h
148
LIBBPF_API struct btf *btf__load_from_kernel_by_id_split(__u32 id, struct btf *base_btf);
tools/lib/bpf/btf.h
150
LIBBPF_API int btf__load_into_kernel(struct btf *btf);
tools/lib/bpf/btf.h
151
LIBBPF_API __s32 btf__find_by_name(const struct btf *btf,
tools/lib/bpf/btf.h
153
LIBBPF_API __s32 btf__find_by_name_kind(const struct btf *btf,
tools/lib/bpf/btf.h
155
LIBBPF_API __u32 btf__type_cnt(const struct btf *btf);
tools/lib/bpf/btf.h
156
LIBBPF_API const struct btf *btf__base_btf(const struct btf *btf);
tools/lib/bpf/btf.h
157
LIBBPF_API const struct btf_type *btf__type_by_id(const struct btf *btf,
tools/lib/bpf/btf.h
159
LIBBPF_API size_t btf__pointer_size(const struct btf *btf);
tools/lib/bpf/btf.h
160
LIBBPF_API int btf__set_pointer_size(struct btf *btf, size_t ptr_sz);
tools/lib/bpf/btf.h
161
LIBBPF_API enum btf_endianness btf__endianness(const struct btf *btf);
tools/lib/bpf/btf.h
162
LIBBPF_API int btf__set_endianness(struct btf *btf, enum btf_endianness endian);
tools/lib/bpf/btf.h
163
LIBBPF_API __s64 btf__resolve_size(const struct btf *btf, __u32 type_id);
tools/lib/bpf/btf.h
164
LIBBPF_API int btf__resolve_type(const struct btf *btf, __u32 type_id);
tools/lib/bpf/btf.h
165
LIBBPF_API int btf__align_of(const struct btf *btf, __u32 id);
tools/lib/bpf/btf.h
166
LIBBPF_API int btf__fd(const struct btf *btf);
tools/lib/bpf/btf.h
167
LIBBPF_API void btf__set_fd(struct btf *btf, int fd);
tools/lib/bpf/btf.h
168
LIBBPF_API const void *btf__raw_data(const struct btf *btf, __u32 *size);
tools/lib/bpf/btf.h
169
LIBBPF_API const char *btf__name_by_offset(const struct btf *btf, __u32 offset);
tools/lib/bpf/btf.h
170
LIBBPF_API const char *btf__str_by_offset(const struct btf *btf, __u32 offset);
tools/lib/bpf/btf.h
172
LIBBPF_API struct btf_ext *btf_ext__new(const __u8 *data, __u32 size);
tools/lib/bpf/btf.h
173
LIBBPF_API void btf_ext__free(struct btf_ext *btf_ext);
tools/lib/bpf/btf.h
174
LIBBPF_API const void *btf_ext__raw_data(const struct btf_ext *btf_ext, __u32 *size);
tools/lib/bpf/btf.h
175
LIBBPF_API enum btf_endianness btf_ext__endianness(const struct btf_ext *btf_ext);
tools/lib/bpf/btf.h
176
LIBBPF_API int btf_ext__set_endianness(struct btf_ext *btf_ext,
tools/lib/bpf/btf.h
179
LIBBPF_API int btf__find_str(struct btf *btf, const char *s);
tools/lib/bpf/btf.h
180
LIBBPF_API int btf__add_str(struct btf *btf, const char *s);
tools/lib/bpf/btf.h
181
LIBBPF_API int btf__add_type(struct btf *btf, const struct btf *src_btf,
tools/lib/bpf/btf.h
204
LIBBPF_API int btf__add_btf(struct btf *btf, const struct btf *src_btf);
tools/lib/bpf/btf.h
206
LIBBPF_API int btf__add_int(struct btf *btf, const char *name, size_t byte_sz, int encoding);
tools/lib/bpf/btf.h
207
LIBBPF_API int btf__add_float(struct btf *btf, const char *name, size_t byte_sz);
tools/lib/bpf/btf.h
208
LIBBPF_API int btf__add_ptr(struct btf *btf, int ref_type_id);
tools/lib/bpf/btf.h
209
LIBBPF_API int btf__add_array(struct btf *btf,
tools/lib/bpf/btf.h
212
LIBBPF_API int btf__add_struct(struct btf *btf, const char *name, __u32 sz);
tools/lib/bpf/btf.h
213
LIBBPF_API int btf__add_union(struct btf *btf, const char *name, __u32 sz);
tools/lib/bpf/btf.h
214
LIBBPF_API int btf__add_field(struct btf *btf, const char *name, int field_type_id,
tools/lib/bpf/btf.h
218
LIBBPF_API int btf__add_enum(struct btf *btf, const char *name, __u32 bytes_sz);
tools/lib/bpf/btf.h
219
LIBBPF_API int btf__add_enum_value(struct btf *btf, const char *name, __s64 value);
tools/lib/bpf/btf.h
220
LIBBPF_API int btf__add_enum64(struct btf *btf, const char *name, __u32 bytes_sz, bool is_signed);
tools/lib/bpf/btf.h
221
LIBBPF_API int btf__add_enum64_value(struct btf *btf, const char *name, __u64 value);
tools/lib/bpf/btf.h
229
LIBBPF_API int btf__add_fwd(struct btf *btf, const char *name, enum btf_fwd_kind fwd_kind);
tools/lib/bpf/btf.h
230
LIBBPF_API int btf__add_typedef(struct btf *btf, const char *name, int ref_type_id);
tools/lib/bpf/btf.h
231
LIBBPF_API int btf__add_volatile(struct btf *btf, int ref_type_id);
tools/lib/bpf/btf.h
232
LIBBPF_API int btf__add_const(struct btf *btf, int ref_type_id);
tools/lib/bpf/btf.h
233
LIBBPF_API int btf__add_restrict(struct btf *btf, int ref_type_id);
tools/lib/bpf/btf.h
234
LIBBPF_API int btf__add_type_tag(struct btf *btf, const char *value, int ref_type_id);
tools/lib/bpf/btf.h
235
LIBBPF_API int btf__add_type_attr(struct btf *btf, const char *value, int ref_type_id);
tools/lib/bpf/btf.h
238
LIBBPF_API int btf__add_func(struct btf *btf, const char *name,
tools/lib/bpf/btf.h
240
LIBBPF_API int btf__add_func_proto(struct btf *btf, int ret_type_id);
tools/lib/bpf/btf.h
241
LIBBPF_API int btf__add_func_param(struct btf *btf, const char *name, int type_id);
tools/lib/bpf/btf.h
244
LIBBPF_API int btf__add_var(struct btf *btf, const char *name, int linkage, int type_id);
tools/lib/bpf/btf.h
245
LIBBPF_API int btf__add_datasec(struct btf *btf, const char *name, __u32 byte_sz);
tools/lib/bpf/btf.h
246
LIBBPF_API int btf__add_datasec_var_info(struct btf *btf, int var_type_id,
tools/lib/bpf/btf.h
250
LIBBPF_API int btf__add_decl_tag(struct btf *btf, const char *value, int ref_type_id,
tools/lib/bpf/btf.h
252
LIBBPF_API int btf__add_decl_attr(struct btf *btf, const char *value, int ref_type_id,
tools/lib/bpf/btf.h
265
LIBBPF_API int btf__dedup(struct btf *btf, const struct btf_dedup_opts *opts);
tools/lib/bpf/btf.h
282
LIBBPF_API int btf__relocate(struct btf *btf, const struct btf *base_btf);
tools/lib/bpf/btf.h
323
LIBBPF_API int btf__permute(struct btf *btf, __u32 *id_map, __u32 id_map_cnt,
tools/lib/bpf/btf.h
335
LIBBPF_API struct btf_dump *btf_dump__new(const struct btf *btf,
tools/lib/bpf/btf.h
340
LIBBPF_API void btf_dump__free(struct btf_dump *d);
tools/lib/bpf/btf.h
342
LIBBPF_API int btf_dump__dump_type(struct btf_dump *d, __u32 id);
tools/lib/bpf/btf.h
365
LIBBPF_API int
tools/lib/bpf/btf.h
384
LIBBPF_API int
tools/lib/bpf/btf.h
39
LIBBPF_API void btf__free(struct btf *btf);
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
12585
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
1005
LIBBPF_API int
tools/lib/bpf/libbpf.h
1021
LIBBPF_API int
tools/lib/bpf/libbpf.h
1033
LIBBPF_API struct bpf_map *
tools/lib/bpf/libbpf.h
1036
LIBBPF_API int
tools/lib/bpf/libbpf.h
1039
LIBBPF_API struct bpf_map *
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
1048
LIBBPF_API struct bpf_map *
tools/lib/bpf/libbpf.h
1070
LIBBPF_API int bpf_map__set_autocreate(struct bpf_map *map, bool autocreate);
tools/lib/bpf/libbpf.h
1071
LIBBPF_API bool bpf_map__autocreate(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1080
LIBBPF_API int bpf_map__set_autoattach(struct bpf_map *map, bool autoattach);
tools/lib/bpf/libbpf.h
1088
LIBBPF_API bool bpf_map__autoattach(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1096
LIBBPF_API int bpf_map__fd(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1097
LIBBPF_API int bpf_map__reuse_fd(struct bpf_map *map, int fd);
tools/lib/bpf/libbpf.h
1099
LIBBPF_API const char *bpf_map__name(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1101
LIBBPF_API enum bpf_map_type bpf_map__type(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1102
LIBBPF_API int bpf_map__set_type(struct bpf_map *map, enum bpf_map_type type);
tools/lib/bpf/libbpf.h
1104
LIBBPF_API __u32 bpf_map__max_entries(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1105
LIBBPF_API int bpf_map__set_max_entries(struct bpf_map *map, __u32 max_entries);
tools/lib/bpf/libbpf.h
1107
LIBBPF_API __u32 bpf_map__map_flags(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1108
LIBBPF_API int bpf_map__set_map_flags(struct bpf_map *map, __u32 flags);
tools/lib/bpf/libbpf.h
1110
LIBBPF_API __u32 bpf_map__numa_node(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1111
LIBBPF_API int bpf_map__set_numa_node(struct bpf_map *map, __u32 numa_node);
tools/lib/bpf/libbpf.h
1113
LIBBPF_API __u32 bpf_map__key_size(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1114
LIBBPF_API int bpf_map__set_key_size(struct bpf_map *map, __u32 size);
tools/lib/bpf/libbpf.h
1116
LIBBPF_API __u32 bpf_map__value_size(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
1132
LIBBPF_API int bpf_map__set_value_size(struct bpf_map *map, __u32 size);
tools/lib/bpf/libbpf.h
1134
LIBBPF_API __u32 bpf_map__btf_key_type_id(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1135
LIBBPF_API __u32 bpf_map__btf_value_type_id(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1137
LIBBPF_API __u32 bpf_map__ifindex(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1138
LIBBPF_API int bpf_map__set_ifindex(struct bpf_map *map, __u32 ifindex);
tools/lib/bpf/libbpf.h
1140
LIBBPF_API __u64 bpf_map__map_extra(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1141
LIBBPF_API int bpf_map__set_map_extra(struct bpf_map *map, __u64 map_extra);
tools/lib/bpf/libbpf.h
1143
LIBBPF_API int bpf_map__set_initial_value(struct bpf_map *map,
tools/lib/bpf/libbpf.h
1145
LIBBPF_API void *bpf_map__initial_value(const struct bpf_map *map, size_t *psize);
tools/lib/bpf/libbpf.h
1154
LIBBPF_API bool bpf_map__is_internal(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1163
LIBBPF_API int bpf_map__set_pin_path(struct bpf_map *map, const char *path);
tools/lib/bpf/libbpf.h
1171
LIBBPF_API const char *bpf_map__pin_path(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1179
LIBBPF_API bool bpf_map__is_pinned(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
1193
LIBBPF_API int bpf_map__pin(struct bpf_map *map, const char *path);
tools/lib/bpf/libbpf.h
1206
LIBBPF_API int bpf_map__unpin(struct bpf_map *map, const char *path);
tools/lib/bpf/libbpf.h
1208
LIBBPF_API int bpf_map__set_inner_map_fd(struct bpf_map *map, int fd);
tools/lib/bpf/libbpf.h
1209
LIBBPF_API struct bpf_map *bpf_map__inner_map(struct bpf_map *map);
tools/lib/bpf/libbpf.h
1232
LIBBPF_API int bpf_map__lookup_elem(const struct bpf_map *map,
tools/lib/bpf/libbpf.h
1250
LIBBPF_API int bpf_map__update_elem(const struct bpf_map *map,
tools/lib/bpf/libbpf.h
1266
LIBBPF_API int bpf_map__delete_elem(const struct bpf_map *map,
tools/lib/bpf/libbpf.h
1289
LIBBPF_API int bpf_map__lookup_and_delete_elem(const struct bpf_map *map,
tools/lib/bpf/libbpf.h
1307
LIBBPF_API int bpf_map__get_next_key(const struct bpf_map *map,
tools/lib/bpf/libbpf.h
1322
LIBBPF_API int bpf_map__set_exclusive_program(struct bpf_map *map, struct bpf_program *prog);
tools/lib/bpf/libbpf.h
1330
LIBBPF_API struct bpf_program *bpf_map__exclusive_program(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
1359
LIBBPF_API int bpf_xdp_attach(int ifindex, int prog_fd, __u32 flags,
tools/lib/bpf/libbpf.h
1361
LIBBPF_API int bpf_xdp_detach(int ifindex, __u32 flags,
tools/lib/bpf/libbpf.h
1363
LIBBPF_API int bpf_xdp_query(int ifindex, int flags, struct bpf_xdp_query_opts *opts);
tools/lib/bpf/libbpf.h
1364
LIBBPF_API int bpf_xdp_query_id(int ifindex, int flags, __u32 *prog_id);
tools/lib/bpf/libbpf.h
1403
LIBBPF_API int bpf_tc_hook_create(struct bpf_tc_hook *hook);
tools/lib/bpf/libbpf.h
1404
LIBBPF_API int bpf_tc_hook_destroy(struct bpf_tc_hook *hook);
tools/lib/bpf/libbpf.h
1405
LIBBPF_API int bpf_tc_attach(const struct bpf_tc_hook *hook,
tools/lib/bpf/libbpf.h
1407
LIBBPF_API int bpf_tc_detach(const struct bpf_tc_hook *hook,
tools/lib/bpf/libbpf.h
1409
LIBBPF_API int bpf_tc_query(const struct bpf_tc_hook *hook,
tools/lib/bpf/libbpf.h
1425
LIBBPF_API struct ring_buffer *
tools/lib/bpf/libbpf.h
1428
LIBBPF_API void ring_buffer__free(struct ring_buffer *rb);
tools/lib/bpf/libbpf.h
1429
LIBBPF_API int ring_buffer__add(struct ring_buffer *rb, int map_fd,
tools/lib/bpf/libbpf.h
1431
LIBBPF_API int ring_buffer__poll(struct ring_buffer *rb, int timeout_ms);
tools/lib/bpf/libbpf.h
1432
LIBBPF_API int ring_buffer__consume(struct ring_buffer *rb);
tools/lib/bpf/libbpf.h
1433
LIBBPF_API int ring_buffer__consume_n(struct ring_buffer *rb, size_t n);
tools/lib/bpf/libbpf.h
1434
LIBBPF_API int ring_buffer__epoll_fd(const struct ring_buffer *rb);
tools/lib/bpf/libbpf.h
1447
LIBBPF_API struct ring *ring_buffer__ring(struct ring_buffer *rb,
tools/lib/bpf/libbpf.h
1457
LIBBPF_API unsigned long ring__consumer_pos(const struct ring *r);
tools/lib/bpf/libbpf.h
1466
LIBBPF_API unsigned long ring__producer_pos(const struct ring *r);
tools/lib/bpf/libbpf.h
1477
LIBBPF_API size_t ring__avail_data_size(const struct ring *r);
tools/lib/bpf/libbpf.h
1487
LIBBPF_API size_t ring__size(const struct ring *r);
tools/lib/bpf/libbpf.h
1496
LIBBPF_API int ring__map_fd(const struct ring *r);
tools/lib/bpf/libbpf.h
1506
LIBBPF_API int ring__consume(struct ring *r);
tools/lib/bpf/libbpf.h
1517
LIBBPF_API int ring__consume_n(struct ring *r, size_t n);
tools/lib/bpf/libbpf.h
1534
LIBBPF_API struct user_ring_buffer *
tools/lib/bpf/libbpf.h
1556
LIBBPF_API void *user_ring_buffer__reserve(struct user_ring_buffer *rb, __u32 size);
tools/lib/bpf/libbpf.h
1599
LIBBPF_API void *user_ring_buffer__reserve_blocking(struct user_ring_buffer *rb,
tools/lib/bpf/libbpf.h
1612
LIBBPF_API void user_ring_buffer__submit(struct user_ring_buffer *rb, void *sample);
tools/lib/bpf/libbpf.h
1622
LIBBPF_API void user_ring_buffer__discard(struct user_ring_buffer *rb, void *sample);
tools/lib/bpf/libbpf.h
1629
LIBBPF_API void user_ring_buffer__free(struct user_ring_buffer *rb);
tools/lib/bpf/libbpf.h
1659
LIBBPF_API struct perf_buffer *
tools/lib/bpf/libbpf.h
1693
LIBBPF_API struct perf_buffer *
tools/lib/bpf/libbpf.h
1698
LIBBPF_API void perf_buffer__free(struct perf_buffer *pb);
tools/lib/bpf/libbpf.h
1699
LIBBPF_API int perf_buffer__epoll_fd(const struct perf_buffer *pb);
tools/lib/bpf/libbpf.h
1700
LIBBPF_API int perf_buffer__poll(struct perf_buffer *pb, int timeout_ms);
tools/lib/bpf/libbpf.h
1701
LIBBPF_API int perf_buffer__consume(struct perf_buffer *pb);
tools/lib/bpf/libbpf.h
1702
LIBBPF_API int perf_buffer__consume_buffer(struct perf_buffer *pb, size_t buf_idx);
tools/lib/bpf/libbpf.h
1703
LIBBPF_API size_t perf_buffer__buffer_cnt(const struct perf_buffer *pb);
tools/lib/bpf/libbpf.h
1704
LIBBPF_API int perf_buffer__buffer_fd(const struct perf_buffer *pb, size_t buf_idx);
tools/lib/bpf/libbpf.h
1719
LIBBPF_API int perf_buffer__buffer(struct perf_buffer *pb, int buf_idx, void **buf,
tools/lib/bpf/libbpf.h
1725
LIBBPF_API void bpf_prog_linfo__free(struct bpf_prog_linfo *prog_linfo);
tools/lib/bpf/libbpf.h
1726
LIBBPF_API struct bpf_prog_linfo *
tools/lib/bpf/libbpf.h
1728
LIBBPF_API const struct bpf_line_info *
tools/lib/bpf/libbpf.h
1731
LIBBPF_API const struct bpf_line_info *
tools/lib/bpf/libbpf.h
1756
LIBBPF_API int libbpf_probe_bpf_prog_type(enum bpf_prog_type prog_type, const void *opts);
tools/lib/bpf/libbpf.h
1769
LIBBPF_API int libbpf_probe_bpf_map_type(enum bpf_map_type map_type, const void *opts);
tools/lib/bpf/libbpf.h
1783
LIBBPF_API int libbpf_probe_bpf_helper(enum bpf_prog_type prog_type,
tools/lib/bpf/libbpf.h
1800
LIBBPF_API int libbpf_num_possible_cpus(void);
tools/lib/bpf/libbpf.h
1833
LIBBPF_API int
tools/lib/bpf/libbpf.h
1836
LIBBPF_API int bpf_object__load_skeleton(struct bpf_object_skeleton *s);
tools/lib/bpf/libbpf.h
1837
LIBBPF_API int bpf_object__attach_skeleton(struct bpf_object_skeleton *s);
tools/lib/bpf/libbpf.h
1838
LIBBPF_API void bpf_object__detach_skeleton(struct bpf_object_skeleton *s);
tools/lib/bpf/libbpf.h
1839
LIBBPF_API void bpf_object__destroy_skeleton(struct bpf_object_skeleton *s);
tools/lib/bpf/libbpf.h
1865
LIBBPF_API int
tools/lib/bpf/libbpf.h
1867
LIBBPF_API void
tools/lib/bpf/libbpf.h
1880
LIBBPF_API int bpf_object__gen_loader(struct bpf_object *obj,
tools/lib/bpf/libbpf.h
1903
LIBBPF_API struct bpf_linker *bpf_linker__new(const char *filename, struct bpf_linker_opts *opts);
tools/lib/bpf/libbpf.h
1904
LIBBPF_API struct bpf_linker *bpf_linker__new_fd(int fd, struct bpf_linker_opts *opts);
tools/lib/bpf/libbpf.h
1905
LIBBPF_API int bpf_linker__add_file(struct bpf_linker *linker,
tools/lib/bpf/libbpf.h
1908
LIBBPF_API int bpf_linker__add_fd(struct bpf_linker *linker, int fd,
tools/lib/bpf/libbpf.h
1910
LIBBPF_API int bpf_linker__add_buf(struct bpf_linker *linker, void *buf, size_t buf_sz,
tools/lib/bpf/libbpf.h
1912
LIBBPF_API int bpf_linker__finalize(struct bpf_linker *linker);
tools/lib/bpf/libbpf.h
1913
LIBBPF_API void bpf_linker__free(struct bpf_linker *linker);
tools/lib/bpf/libbpf.h
2006
LIBBPF_API int libbpf_register_prog_handler(const char *sec,
tools/lib/bpf/libbpf.h
2022
LIBBPF_API int libbpf_unregister_prog_handler(int handler_id);
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
570
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
573
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
600
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
651
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
699
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
745
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
764
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
794
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
808
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
812
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
825
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
828
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
841
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
843
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
846
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
848
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
850
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
852
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
854
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
856
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
871
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
886
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
901
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
916
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
922
LIBBPF_API struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map);
tools/lib/bpf/libbpf.h
923
LIBBPF_API int bpf_link__update_map(struct bpf_link *link, const struct bpf_map *map);
tools/lib/bpf/libbpf.h
932
LIBBPF_API struct bpf_link *
tools/lib/bpf/libbpf.h
936
LIBBPF_API enum bpf_prog_type bpf_program__type(const struct bpf_program *prog);
tools/lib/bpf/libbpf.h
949
LIBBPF_API int bpf_program__set_type(struct bpf_program *prog,
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
952
LIBBPF_API enum bpf_attach_type
tools/lib/bpf/libbpf.h
967
LIBBPF_API int
tools/lib/bpf/libbpf.h
971
LIBBPF_API __u32 bpf_program__flags(const struct bpf_program *prog);
tools/lib/bpf/libbpf.h
972
LIBBPF_API int bpf_program__set_flags(struct bpf_program *prog, __u32 flags);
tools/lib/bpf/libbpf.h
978
LIBBPF_API __u32 bpf_program__log_level(const struct bpf_program *prog);
tools/lib/bpf/libbpf.h
979
LIBBPF_API int bpf_program__set_log_level(struct bpf_program *prog, __u32 log_level);
tools/lib/bpf/libbpf.h
980
LIBBPF_API const char *bpf_program__log_buf(const struct bpf_program *prog, size_t *log_size);
tools/lib/bpf/libbpf.h
981
LIBBPF_API int bpf_program__set_log_buf(struct bpf_program *prog, char *log_buf, size_t log_size);
tools/lib/bpf/libbpf.h
983
LIBBPF_API struct bpf_func_info *bpf_program__func_info(const struct bpf_program *prog);
tools/lib/bpf/libbpf.h
984
LIBBPF_API __u32 bpf_program__func_info_cnt(const struct bpf_program *prog);
tools/lib/bpf/libbpf.h
986
LIBBPF_API struct bpf_line_info *bpf_program__line_info(const struct bpf_program *prog);
tools/lib/bpf/libbpf.h
987
LIBBPF_API __u32 bpf_program__line_info_cnt(const struct bpf_program *prog);
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);