xref: /linux/tools/lib/bpf/libbpf.map (revision be239684b18e1cdcafcf8c7face4a2f562c745ad)
1LIBBPF_0.0.1 {
2	global:
3		bpf_btf_get_fd_by_id;
4		bpf_map__btf_key_type_id;
5		bpf_map__btf_value_type_id;
6		bpf_map__fd;
7		bpf_map__name;
8		bpf_map__pin;
9		bpf_map__reuse_fd;
10		bpf_map__set_ifindex;
11		bpf_map__set_inner_map_fd;
12		bpf_map__unpin;
13		bpf_map_delete_elem;
14		bpf_map_get_fd_by_id;
15		bpf_map_get_next_id;
16		bpf_map_get_next_key;
17		bpf_map_lookup_and_delete_elem;
18		bpf_map_lookup_elem;
19		bpf_map_update_elem;
20		bpf_obj_get;
21		bpf_obj_get_info_by_fd;
22		bpf_obj_pin;
23		bpf_object__btf_fd;
24		bpf_object__close;
25		bpf_object__find_map_by_name;
26		bpf_object__kversion;
27		bpf_object__load;
28		bpf_object__name;
29		bpf_object__open;
30		bpf_object__pin;
31		bpf_object__pin_maps;
32		bpf_object__pin_programs;
33		bpf_object__unpin_maps;
34		bpf_object__unpin_programs;
35		bpf_prog_attach;
36		bpf_prog_detach;
37		bpf_prog_detach2;
38		bpf_prog_get_fd_by_id;
39		bpf_prog_get_next_id;
40		bpf_prog_query;
41		bpf_program__fd;
42		bpf_program__pin;
43		bpf_program__set_expected_attach_type;
44		bpf_program__set_ifindex;
45		bpf_program__set_type;
46		bpf_program__unload;
47		bpf_program__unpin;
48		bpf_prog_linfo__free;
49		bpf_prog_linfo__new;
50		bpf_prog_linfo__lfind_addr_func;
51		bpf_prog_linfo__lfind;
52		bpf_raw_tracepoint_open;
53		bpf_task_fd_query;
54		btf__fd;
55		btf__find_by_name;
56		btf__free;
57		btf__name_by_offset;
58		btf__new;
59		btf__resolve_size;
60		btf__resolve_type;
61		btf__type_by_id;
62		libbpf_attach_type_by_name;
63		libbpf_get_error;
64		libbpf_prog_type_by_name;
65		libbpf_set_print;
66		libbpf_strerror;
67	local:
68		*;
69};
70
71LIBBPF_0.0.2 {
72	global:
73		bpf_map_lookup_elem_flags;
74		bpf_object__btf;
75		bpf_object__find_map_fd_by_name;
76		btf__get_raw_data;
77		btf_ext__free;
78		btf_ext__get_raw_data;
79		btf_ext__new;
80} LIBBPF_0.0.1;
81
82LIBBPF_0.0.3 {
83	global:
84		bpf_map__is_internal;
85		bpf_map_freeze;
86} LIBBPF_0.0.2;
87
88LIBBPF_0.0.4 {
89	global:
90		bpf_link__destroy;
91		bpf_program__attach_kprobe;
92		bpf_program__attach_perf_event;
93		bpf_program__attach_raw_tracepoint;
94		bpf_program__attach_tracepoint;
95		bpf_program__attach_uprobe;
96		btf_dump__dump_type;
97		btf_dump__free;
98		btf__parse_elf;
99		libbpf_num_possible_cpus;
100		perf_buffer__free;
101		perf_buffer__poll;
102} LIBBPF_0.0.3;
103
104LIBBPF_0.0.5 {
105	global:
106		bpf_btf_get_next_id;
107} LIBBPF_0.0.4;
108
109LIBBPF_0.0.6 {
110	global:
111		bpf_map__get_pin_path;
112		bpf_map__is_pinned;
113		bpf_map__set_pin_path;
114		bpf_object__open_file;
115		bpf_object__open_mem;
116		bpf_program__attach_trace;
117		bpf_program__get_expected_attach_type;
118		bpf_program__get_type;
119		btf__find_by_name_kind;
120		libbpf_find_vmlinux_btf_id;
121} LIBBPF_0.0.5;
122
123LIBBPF_0.0.7 {
124	global:
125		btf_dump__emit_type_decl;
126		bpf_link__disconnect;
127		bpf_map__attach_struct_ops;
128		bpf_map_delete_batch;
129		bpf_map_lookup_and_delete_batch;
130		bpf_map_lookup_batch;
131		bpf_map_update_batch;
132		bpf_object__find_program_by_name;
133		bpf_object__attach_skeleton;
134		bpf_object__destroy_skeleton;
135		bpf_object__detach_skeleton;
136		bpf_object__load_skeleton;
137		bpf_object__open_skeleton;
138		bpf_program__attach;
139		bpf_program__name;
140		btf__align_of;
141		libbpf_find_kernel_btf;
142} LIBBPF_0.0.6;
143
144LIBBPF_0.0.8 {
145	global:
146		bpf_link__fd;
147		bpf_link__open;
148		bpf_link__pin;
149		bpf_link__pin_path;
150		bpf_link__unpin;
151		bpf_link__update_program;
152		bpf_link_create;
153		bpf_link_update;
154		bpf_map__set_initial_value;
155		bpf_prog_attach_opts;
156		bpf_program__attach_cgroup;
157		bpf_program__attach_lsm;
158		bpf_program__set_attach_target;
159} LIBBPF_0.0.7;
160
161LIBBPF_0.0.9 {
162	global:
163		bpf_enable_stats;
164		bpf_iter_create;
165		bpf_link_get_fd_by_id;
166		bpf_link_get_next_id;
167		bpf_program__attach_iter;
168		bpf_program__attach_netns;
169		perf_buffer__consume;
170		ring_buffer__add;
171		ring_buffer__consume;
172		ring_buffer__free;
173		ring_buffer__new;
174		ring_buffer__poll;
175} LIBBPF_0.0.8;
176
177LIBBPF_0.1.0 {
178	global:
179		bpf_link__detach;
180		bpf_link_detach;
181		bpf_map__ifindex;
182		bpf_map__key_size;
183		bpf_map__map_flags;
184		bpf_map__max_entries;
185		bpf_map__numa_node;
186		bpf_map__set_key_size;
187		bpf_map__set_map_flags;
188		bpf_map__set_max_entries;
189		bpf_map__set_numa_node;
190		bpf_map__set_type;
191		bpf_map__set_value_size;
192		bpf_map__type;
193		bpf_map__value_size;
194		bpf_program__attach_xdp;
195		bpf_program__autoload;
196		bpf_program__set_autoload;
197		btf__parse;
198		btf__parse_raw;
199		btf__pointer_size;
200		btf__set_fd;
201		btf__set_pointer_size;
202} LIBBPF_0.0.9;
203
204LIBBPF_0.2.0 {
205	global:
206		bpf_prog_bind_map;
207		bpf_prog_test_run_opts;
208		bpf_program__attach_freplace;
209		bpf_program__section_name;
210		btf__add_array;
211		btf__add_const;
212		btf__add_enum;
213		btf__add_enum_value;
214		btf__add_datasec;
215		btf__add_datasec_var_info;
216		btf__add_field;
217		btf__add_func;
218		btf__add_func_param;
219		btf__add_func_proto;
220		btf__add_fwd;
221		btf__add_int;
222		btf__add_ptr;
223		btf__add_restrict;
224		btf__add_str;
225		btf__add_struct;
226		btf__add_typedef;
227		btf__add_union;
228		btf__add_var;
229		btf__add_volatile;
230		btf__endianness;
231		btf__find_str;
232		btf__new_empty;
233		btf__set_endianness;
234		btf__str_by_offset;
235		perf_buffer__buffer_cnt;
236		perf_buffer__buffer_fd;
237		perf_buffer__epoll_fd;
238		perf_buffer__consume_buffer;
239} LIBBPF_0.1.0;
240
241LIBBPF_0.3.0 {
242	global:
243		btf__base_btf;
244		btf__parse_elf_split;
245		btf__parse_raw_split;
246		btf__parse_split;
247		btf__new_empty_split;
248		btf__new_split;
249		ring_buffer__epoll_fd;
250} LIBBPF_0.2.0;
251
252LIBBPF_0.4.0 {
253	global:
254		btf__add_float;
255		btf__add_type;
256		bpf_linker__add_file;
257		bpf_linker__finalize;
258		bpf_linker__free;
259		bpf_linker__new;
260		bpf_map__inner_map;
261		bpf_object__set_kversion;
262		bpf_tc_attach;
263		bpf_tc_detach;
264		bpf_tc_hook_create;
265		bpf_tc_hook_destroy;
266		bpf_tc_query;
267} LIBBPF_0.3.0;
268
269LIBBPF_0.5.0 {
270	global:
271		bpf_map__initial_value;
272		bpf_map__pin_path;
273		bpf_map_lookup_and_delete_elem_flags;
274		bpf_program__attach_kprobe_opts;
275		bpf_program__attach_perf_event_opts;
276		bpf_program__attach_tracepoint_opts;
277		bpf_program__attach_uprobe_opts;
278		bpf_object__gen_loader;
279		btf__load_from_kernel_by_id;
280		btf__load_from_kernel_by_id_split;
281		btf__load_into_kernel;
282		btf__load_module_btf;
283		btf__load_vmlinux_btf;
284		btf_dump__dump_type_data;
285		libbpf_set_strict_mode;
286} LIBBPF_0.4.0;
287
288LIBBPF_0.6.0 {
289	global:
290		bpf_map__map_extra;
291		bpf_map__set_map_extra;
292		bpf_map_create;
293		bpf_object__next_map;
294		bpf_object__next_program;
295		bpf_object__prev_map;
296		bpf_object__prev_program;
297		bpf_prog_load;
298		bpf_program__flags;
299		bpf_program__insn_cnt;
300		bpf_program__insns;
301		bpf_program__set_flags;
302		btf__add_btf;
303		btf__add_decl_tag;
304		btf__add_type_tag;
305		btf__dedup;
306		btf__raw_data;
307		btf__type_cnt;
308		btf_dump__new;
309		libbpf_major_version;
310		libbpf_minor_version;
311		libbpf_version_string;
312		perf_buffer__new;
313		perf_buffer__new_raw;
314} LIBBPF_0.5.0;
315
316LIBBPF_0.7.0 {
317	global:
318		bpf_btf_load;
319		bpf_program__expected_attach_type;
320		bpf_program__log_buf;
321		bpf_program__log_level;
322		bpf_program__set_log_buf;
323		bpf_program__set_log_level;
324		bpf_program__type;
325		bpf_xdp_attach;
326		bpf_xdp_detach;
327		bpf_xdp_query;
328		bpf_xdp_query_id;
329		btf_ext__raw_data;
330		libbpf_probe_bpf_helper;
331		libbpf_probe_bpf_map_type;
332		libbpf_probe_bpf_prog_type;
333		libbpf_set_memlock_rlim;
334} LIBBPF_0.6.0;
335
336LIBBPF_0.8.0 {
337	global:
338		bpf_map__autocreate;
339		bpf_map__get_next_key;
340		bpf_map__delete_elem;
341		bpf_map__lookup_and_delete_elem;
342		bpf_map__lookup_elem;
343		bpf_map__set_autocreate;
344		bpf_map__update_elem;
345		bpf_map_delete_elem_flags;
346		bpf_object__destroy_subskeleton;
347		bpf_object__open_subskeleton;
348		bpf_program__attach_kprobe_multi_opts;
349		bpf_program__attach_trace_opts;
350		bpf_program__attach_usdt;
351		bpf_program__set_insns;
352		libbpf_register_prog_handler;
353		libbpf_unregister_prog_handler;
354} LIBBPF_0.7.0;
355
356LIBBPF_1.0.0 {
357	global:
358		bpf_obj_get_opts;
359		bpf_prog_query_opts;
360		bpf_program__attach_ksyscall;
361		bpf_program__autoattach;
362		bpf_program__set_autoattach;
363		btf__add_enum64;
364		btf__add_enum64_value;
365		libbpf_bpf_attach_type_str;
366		libbpf_bpf_link_type_str;
367		libbpf_bpf_map_type_str;
368		libbpf_bpf_prog_type_str;
369		perf_buffer__buffer;
370} LIBBPF_0.8.0;
371
372LIBBPF_1.1.0 {
373	global:
374		bpf_btf_get_fd_by_id_opts;
375		bpf_link_get_fd_by_id_opts;
376		bpf_map_get_fd_by_id_opts;
377		bpf_prog_get_fd_by_id_opts;
378		user_ring_buffer__discard;
379		user_ring_buffer__free;
380		user_ring_buffer__new;
381		user_ring_buffer__reserve;
382		user_ring_buffer__reserve_blocking;
383		user_ring_buffer__submit;
384} LIBBPF_1.0.0;
385
386LIBBPF_1.2.0 {
387	global:
388		bpf_btf_get_info_by_fd;
389		bpf_link__update_map;
390		bpf_link_get_info_by_fd;
391		bpf_map_get_info_by_fd;
392		bpf_prog_get_info_by_fd;
393} LIBBPF_1.1.0;
394
395LIBBPF_1.3.0 {
396	global:
397		bpf_obj_pin_opts;
398		bpf_object__unpin;
399		bpf_prog_detach_opts;
400		bpf_program__attach_netfilter;
401		bpf_program__attach_netkit;
402		bpf_program__attach_tcx;
403		bpf_program__attach_uprobe_multi;
404		ring__avail_data_size;
405		ring__consume;
406		ring__consumer_pos;
407		ring__map_fd;
408		ring__producer_pos;
409		ring__size;
410		ring_buffer__ring;
411} LIBBPF_1.2.0;
412
413LIBBPF_1.4.0 {
414} LIBBPF_1.3.0;
415