Andrii Nakryiko | cd49291 | 2020-05-12 12:24:42 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */ |
| 2 | /* Copyright (C) 2020 Facebook, Inc. */ |
| 3 | #include <stdbool.h> |
Andrii Nakryiko | 90806cc | 2020-07-31 11:28:28 -0700 | [diff] [blame] | 4 | #include <bpf/bpf.h> |
| 5 | #include <bpf/libbpf.h> |
Andrii Nakryiko | cd49291 | 2020-05-12 12:24:42 -0700 | [diff] [blame] | 6 | |
| 7 | int parse_num_list(const char *s, bool **set, int *set_len); |
Andrii Nakryiko | 90806cc | 2020-07-31 11:28:28 -0700 | [diff] [blame] | 8 | __u32 link_info_prog_id(const struct bpf_link *link, struct bpf_link_info *info); |
Andrii Nakryiko | f87c193 | 2021-11-03 15:08:43 -0700 | [diff] [blame] | 9 | int bpf_prog_test_load(const char *file, enum bpf_prog_type type, |
| 10 | struct bpf_object **pobj, int *prog_fd); |
| 11 | int bpf_test_load_program(enum bpf_prog_type type, const struct bpf_insn *insns, |
| 12 | size_t insns_cnt, const char *license, |
| 13 | __u32 kern_version, char *log_buf, |
| 14 | size_t log_buf_sz); |