xref: /linux/tools/lib/bpf/libbpf.map (revision 0a94608f0f7de9b1135ffea3546afe68eafef57f)
1LIBBPF_0.0.1 {
2	global:
3		bpf_btf_get_fd_by_id;
4		bpf_create_map;
5		bpf_create_map_in_map;
6		bpf_create_map_in_map_node;
7		bpf_create_map_name;
8		bpf_create_map_node;
9		bpf_create_map_xattr;
10		bpf_load_btf;
11		bpf_load_program;
12		bpf_load_program_xattr;
13		bpf_map__btf_key_type_id;
14		bpf_map__btf_value_type_id;
15		bpf_map__def;
16		bpf_map__fd;
17		bpf_map__is_offload_neutral;
18		bpf_map__name;
19		bpf_map__next;
20		bpf_map__pin;
21		bpf_map__prev;
22		bpf_map__priv;
23		bpf_map__reuse_fd;
24		bpf_map__set_ifindex;
25		bpf_map__set_inner_map_fd;
26		bpf_map__set_priv;
27		bpf_map__unpin;
28		bpf_map_delete_elem;
29		bpf_map_get_fd_by_id;
30		bpf_map_get_next_id;
31		bpf_map_get_next_key;
32		bpf_map_lookup_and_delete_elem;
33		bpf_map_lookup_elem;
34		bpf_map_update_elem;
35		bpf_obj_get;
36		bpf_obj_get_info_by_fd;
37		bpf_obj_pin;
38		bpf_object__btf_fd;
39		bpf_object__close;
40		bpf_object__find_map_by_name;
41		bpf_object__find_map_by_offset;
42		bpf_object__find_program_by_title;
43		bpf_object__kversion;
44		bpf_object__load;
45		bpf_object__name;
46		bpf_object__next;
47		bpf_object__open;
48		bpf_object__open_buffer;
49		bpf_object__open_xattr;
50		bpf_object__pin;
51		bpf_object__pin_maps;
52		bpf_object__pin_programs;
53		bpf_object__priv;
54		bpf_object__set_priv;
55		bpf_object__unload;
56		bpf_object__unpin_maps;
57		bpf_object__unpin_programs;
58		bpf_perf_event_read_simple;
59		bpf_prog_attach;
60		bpf_prog_detach;
61		bpf_prog_detach2;
62		bpf_prog_get_fd_by_id;
63		bpf_prog_get_next_id;
64		bpf_prog_load;
65		bpf_prog_load_xattr;
66		bpf_prog_query;
67		bpf_prog_test_run;
68		bpf_prog_test_run_xattr;
69		bpf_program__fd;
70		bpf_program__is_kprobe;
71		bpf_program__is_perf_event;
72		bpf_program__is_raw_tracepoint;
73		bpf_program__is_sched_act;
74		bpf_program__is_sched_cls;
75		bpf_program__is_socket_filter;
76		bpf_program__is_tracepoint;
77		bpf_program__is_xdp;
78		bpf_program__load;
79		bpf_program__next;
80		bpf_program__nth_fd;
81		bpf_program__pin;
82		bpf_program__pin_instance;
83		bpf_program__prev;
84		bpf_program__priv;
85		bpf_program__set_expected_attach_type;
86		bpf_program__set_ifindex;
87		bpf_program__set_kprobe;
88		bpf_program__set_perf_event;
89		bpf_program__set_prep;
90		bpf_program__set_priv;
91		bpf_program__set_raw_tracepoint;
92		bpf_program__set_sched_act;
93		bpf_program__set_sched_cls;
94		bpf_program__set_socket_filter;
95		bpf_program__set_tracepoint;
96		bpf_program__set_type;
97		bpf_program__set_xdp;
98		bpf_program__title;
99		bpf_program__unload;
100		bpf_program__unpin;
101		bpf_program__unpin_instance;
102		bpf_prog_linfo__free;
103		bpf_prog_linfo__new;
104		bpf_prog_linfo__lfind_addr_func;
105		bpf_prog_linfo__lfind;
106		bpf_raw_tracepoint_open;
107		bpf_set_link_xdp_fd;
108		bpf_task_fd_query;
109		bpf_verify_program;
110		btf__fd;
111		btf__find_by_name;
112		btf__free;
113		btf__get_from_id;
114		btf__name_by_offset;
115		btf__new;
116		btf__resolve_size;
117		btf__resolve_type;
118		btf__type_by_id;
119		libbpf_attach_type_by_name;
120		libbpf_get_error;
121		libbpf_prog_type_by_name;
122		libbpf_set_print;
123		libbpf_strerror;
124	local:
125		*;
126};
127
128LIBBPF_0.0.2 {
129	global:
130		bpf_probe_helper;
131		bpf_probe_map_type;
132		bpf_probe_prog_type;
133		bpf_map__resize;
134		bpf_map_lookup_elem_flags;
135		bpf_object__btf;
136		bpf_object__find_map_fd_by_name;
137		bpf_get_link_xdp_id;
138		btf__dedup;
139		btf__get_map_kv_tids;
140		btf__get_nr_types;
141		btf__get_raw_data;
142		btf__load;
143		btf_ext__free;
144		btf_ext__func_info_rec_size;
145		btf_ext__get_raw_data;
146		btf_ext__line_info_rec_size;
147		btf_ext__new;
148		btf_ext__reloc_func_info;
149		btf_ext__reloc_line_info;
150		xsk_umem__create;
151		xsk_socket__create;
152		xsk_umem__delete;
153		xsk_socket__delete;
154		xsk_umem__fd;
155		xsk_socket__fd;
156		bpf_program__get_prog_info_linear;
157		bpf_program__bpil_addr_to_offs;
158		bpf_program__bpil_offs_to_addr;
159} LIBBPF_0.0.1;
160
161LIBBPF_0.0.3 {
162	global:
163		bpf_map__is_internal;
164		bpf_map_freeze;
165		btf__finalize_data;
166} LIBBPF_0.0.2;
167
168LIBBPF_0.0.4 {
169	global:
170		bpf_link__destroy;
171		bpf_object__load_xattr;
172		bpf_program__attach_kprobe;
173		bpf_program__attach_perf_event;
174		bpf_program__attach_raw_tracepoint;
175		bpf_program__attach_tracepoint;
176		bpf_program__attach_uprobe;
177		btf_dump__dump_type;
178		btf_dump__free;
179		btf_dump__new;
180		btf__parse_elf;
181		libbpf_num_possible_cpus;
182		perf_buffer__free;
183		perf_buffer__new;
184		perf_buffer__new_raw;
185		perf_buffer__poll;
186		xsk_umem__create;
187} LIBBPF_0.0.3;
188
189LIBBPF_0.0.5 {
190	global:
191		bpf_btf_get_next_id;
192} LIBBPF_0.0.4;
193
194LIBBPF_0.0.6 {
195	global:
196		bpf_get_link_xdp_info;
197		bpf_map__get_pin_path;
198		bpf_map__is_pinned;
199		bpf_map__set_pin_path;
200		bpf_object__open_file;
201		bpf_object__open_mem;
202		bpf_program__attach_trace;
203		bpf_program__get_expected_attach_type;
204		bpf_program__get_type;
205		bpf_program__is_tracing;
206		bpf_program__set_tracing;
207		bpf_program__size;
208		btf__find_by_name_kind;
209		libbpf_find_vmlinux_btf_id;
210} LIBBPF_0.0.5;
211
212LIBBPF_0.0.7 {
213	global:
214		btf_dump__emit_type_decl;
215		bpf_link__disconnect;
216		bpf_map__attach_struct_ops;
217		bpf_map_delete_batch;
218		bpf_map_lookup_and_delete_batch;
219		bpf_map_lookup_batch;
220		bpf_map_update_batch;
221		bpf_object__find_program_by_name;
222		bpf_object__attach_skeleton;
223		bpf_object__destroy_skeleton;
224		bpf_object__detach_skeleton;
225		bpf_object__load_skeleton;
226		bpf_object__open_skeleton;
227		bpf_probe_large_insn_limit;
228		bpf_prog_attach_xattr;
229		bpf_program__attach;
230		bpf_program__name;
231		bpf_program__is_extension;
232		bpf_program__is_struct_ops;
233		bpf_program__set_extension;
234		bpf_program__set_struct_ops;
235		btf__align_of;
236		libbpf_find_kernel_btf;
237} LIBBPF_0.0.6;
238
239LIBBPF_0.0.8 {
240	global:
241		bpf_link__fd;
242		bpf_link__open;
243		bpf_link__pin;
244		bpf_link__pin_path;
245		bpf_link__unpin;
246		bpf_link__update_program;
247		bpf_link_create;
248		bpf_link_update;
249		bpf_map__set_initial_value;
250		bpf_prog_attach_opts;
251		bpf_program__attach_cgroup;
252		bpf_program__attach_lsm;
253		bpf_program__is_lsm;
254		bpf_program__set_attach_target;
255		bpf_program__set_lsm;
256		bpf_set_link_xdp_fd_opts;
257} LIBBPF_0.0.7;
258
259LIBBPF_0.0.9 {
260	global:
261		bpf_enable_stats;
262		bpf_iter_create;
263		bpf_link_get_fd_by_id;
264		bpf_link_get_next_id;
265		bpf_program__attach_iter;
266		bpf_program__attach_netns;
267		perf_buffer__consume;
268		ring_buffer__add;
269		ring_buffer__consume;
270		ring_buffer__free;
271		ring_buffer__new;
272		ring_buffer__poll;
273} LIBBPF_0.0.8;
274
275LIBBPF_0.1.0 {
276	global:
277		bpf_link__detach;
278		bpf_link_detach;
279		bpf_map__ifindex;
280		bpf_map__key_size;
281		bpf_map__map_flags;
282		bpf_map__max_entries;
283		bpf_map__numa_node;
284		bpf_map__set_key_size;
285		bpf_map__set_map_flags;
286		bpf_map__set_max_entries;
287		bpf_map__set_numa_node;
288		bpf_map__set_type;
289		bpf_map__set_value_size;
290		bpf_map__type;
291		bpf_map__value_size;
292		bpf_program__attach_xdp;
293		bpf_program__autoload;
294		bpf_program__is_sk_lookup;
295		bpf_program__set_autoload;
296		bpf_program__set_sk_lookup;
297		btf__parse;
298		btf__parse_raw;
299		btf__pointer_size;
300		btf__set_fd;
301		btf__set_pointer_size;
302} LIBBPF_0.0.9;
303
304LIBBPF_0.2.0 {
305	global:
306		bpf_prog_bind_map;
307		bpf_prog_test_run_opts;
308		bpf_program__attach_freplace;
309		bpf_program__section_name;
310		btf__add_array;
311		btf__add_const;
312		btf__add_enum;
313		btf__add_enum_value;
314		btf__add_datasec;
315		btf__add_datasec_var_info;
316		btf__add_field;
317		btf__add_func;
318		btf__add_func_param;
319		btf__add_func_proto;
320		btf__add_fwd;
321		btf__add_int;
322		btf__add_ptr;
323		btf__add_restrict;
324		btf__add_str;
325		btf__add_struct;
326		btf__add_typedef;
327		btf__add_union;
328		btf__add_var;
329		btf__add_volatile;
330		btf__endianness;
331		btf__find_str;
332		btf__new_empty;
333		btf__set_endianness;
334		btf__str_by_offset;
335		perf_buffer__buffer_cnt;
336		perf_buffer__buffer_fd;
337		perf_buffer__epoll_fd;
338		perf_buffer__consume_buffer;
339		xsk_socket__create_shared;
340} LIBBPF_0.1.0;
341
342LIBBPF_0.3.0 {
343	global:
344		btf__base_btf;
345		btf__parse_elf_split;
346		btf__parse_raw_split;
347		btf__parse_split;
348		btf__new_empty_split;
349		btf__new_split;
350		ring_buffer__epoll_fd;
351		xsk_setup_xdp_prog;
352		xsk_socket__update_xskmap;
353} LIBBPF_0.2.0;
354
355LIBBPF_0.4.0 {
356	global:
357		btf__add_float;
358		btf__add_type;
359		bpf_linker__add_file;
360		bpf_linker__finalize;
361		bpf_linker__free;
362		bpf_linker__new;
363		bpf_map__inner_map;
364		bpf_object__set_kversion;
365		bpf_tc_attach;
366		bpf_tc_detach;
367		bpf_tc_hook_create;
368		bpf_tc_hook_destroy;
369		bpf_tc_query;
370} LIBBPF_0.3.0;
371
372LIBBPF_0.5.0 {
373	global:
374		bpf_map__initial_value;
375		bpf_map__pin_path;
376		bpf_map_lookup_and_delete_elem_flags;
377		bpf_program__attach_kprobe_opts;
378		bpf_program__attach_perf_event_opts;
379		bpf_program__attach_tracepoint_opts;
380		bpf_program__attach_uprobe_opts;
381		bpf_object__gen_loader;
382		btf__load_from_kernel_by_id;
383		btf__load_from_kernel_by_id_split;
384		btf__load_into_kernel;
385		btf__load_module_btf;
386		btf__load_vmlinux_btf;
387		btf_dump__dump_type_data;
388		libbpf_set_strict_mode;
389} LIBBPF_0.4.0;
390
391LIBBPF_0.6.0 {
392	global:
393		bpf_map__map_extra;
394		bpf_map__set_map_extra;
395		bpf_map_create;
396		bpf_object__next_map;
397		bpf_object__next_program;
398		bpf_object__prev_map;
399		bpf_object__prev_program;
400		bpf_prog_load_deprecated;
401		bpf_prog_load;
402		bpf_program__flags;
403		bpf_program__insn_cnt;
404		bpf_program__insns;
405		bpf_program__set_flags;
406		btf__add_btf;
407		btf__add_decl_tag;
408		btf__add_type_tag;
409		btf__dedup;
410		btf__dedup_deprecated;
411		btf__raw_data;
412		btf__type_cnt;
413		btf_dump__new;
414		btf_dump__new_deprecated;
415		libbpf_major_version;
416		libbpf_minor_version;
417		libbpf_version_string;
418		perf_buffer__new;
419		perf_buffer__new_deprecated;
420		perf_buffer__new_raw;
421		perf_buffer__new_raw_deprecated;
422} LIBBPF_0.5.0;
423
424LIBBPF_0.7.0 {
425	global:
426		bpf_btf_load;
427		bpf_program__expected_attach_type;
428		bpf_program__log_buf;
429		bpf_program__log_level;
430		bpf_program__set_log_buf;
431		bpf_program__set_log_level;
432		bpf_program__type;
433		bpf_xdp_attach;
434		bpf_xdp_detach;
435		bpf_xdp_query;
436		bpf_xdp_query_id;
437		libbpf_probe_bpf_helper;
438		libbpf_probe_bpf_map_type;
439		libbpf_probe_bpf_prog_type;
440		libbpf_set_memlock_rlim_max;
441} LIBBPF_0.6.0;
442
443LIBBPF_0.8.0 {
444	global:
445		bpf_object__destroy_subskeleton;
446		bpf_object__open_subskeleton;
447		libbpf_register_prog_handler;
448		libbpf_unregister_prog_handler;
449		bpf_program__attach_kprobe_multi_opts;
450} LIBBPF_0.7.0;
451