2 * QEMU eBPF binary declaration routine.
4 * Developed by Daynix Computing LTD (http://www.daynix.com)
7 * Andrew Melnychenko <andrew@daynix.com>
9 * SPDX-License-Identifier: GPL-2.0-or-later
16 void ebpf_register_binary_data(int id
, const void *data
,
18 const void *ebpf_find_binary_by_id(int id
, size_t *sz
,
21 #define ebpf_binary_init(id, fn) \
22 static void __attribute__((constructor)) ebpf_binary_init_ ## fn(void) \
25 const void *data = fn(&datalen); \
26 ebpf_register_binary_data(id, data, datalen); \