| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#if HAVE_LIBBPF |
| 5 |
|
| 6 |
#include <bpf/libbpf.h> |
| 7 |
|
| 8 |
#include "shared-forward.h" |
| 9 |
|
| 10 |
bool bpf_can_link_program(struct bpf_program *prog); |
| 11 |
bool bpf_can_link_lsm_program(struct bpf_program *prog); |
| 12 |
|
| 13 |
int bpf_serialize_link(FILE *f, FDSet *fds, const char *key, struct bpf_link *link); |
| 14 |
|
| 15 |
struct bpf_link* bpf_link_free(struct bpf_link *link); |
| 16 |
DEFINE_TRIVIAL_CLEANUP_FUNC(struct bpf_link *, bpf_link_free); |
| 17 |
|
| 18 |
struct ring_buffer* bpf_ring_buffer_free(struct ring_buffer *rb); |
| 19 |
DEFINE_TRIVIAL_CLEANUP_FUNC(struct ring_buffer *, bpf_ring_buffer_free); |
| 20 |
|
| 21 |
#endif |