Contributors: 10
| Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
| Andrii Nakryiko |
54 |
31.40% |
5 |
27.78% |
| Jiong Wang |
34 |
19.77% |
1 |
5.56% |
| Mykola Lysenko |
25 |
14.53% |
1 |
5.56% |
| Jiri Olsa |
19 |
11.05% |
2 |
11.11% |
| Stanislav Fomichev |
14 |
8.14% |
3 |
16.67% |
| Andrey Ignatov |
9 |
5.23% |
1 |
5.56% |
| Alexei Starovoitov |
9 |
5.23% |
2 |
11.11% |
| Jakub Sitnicki |
5 |
2.91% |
1 |
5.56% |
| Stephen Veiss |
2 |
1.16% |
1 |
5.56% |
| Song Liu |
1 |
0.58% |
1 |
5.56% |
| Total |
172 |
|
18 |
|
/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
/* Copyright (C) 2020 Facebook, Inc. */
#ifndef __TESTING_HELPERS_H
#define __TESTING_HELPERS_H
#include <stdbool.h>
#include <bpf/bpf.h>
#include <bpf/libbpf.h>
int parse_num_list(const char *s, bool **set, int *set_len);
__u32 link_info_prog_id(const struct bpf_link *link, struct bpf_link_info *info);
int bpf_prog_test_load(const char *file, enum bpf_prog_type type,
struct bpf_object **pobj, int *prog_fd);
int bpf_test_load_program(enum bpf_prog_type type, const struct bpf_insn *insns,
size_t insns_cnt, const char *license,
__u32 kern_version, char *log_buf,
size_t log_buf_sz);
/*
* below function is exported for testing in prog_test test
*/
struct test_filter_set;
int parse_test_list(const char *s,
struct test_filter_set *test_set,
bool is_glob_pattern);
int parse_test_list_file(const char *path,
struct test_filter_set *test_set,
bool is_glob_pattern);
__u64 read_perf_max_sample_freq(void);
int load_bpf_testmod(bool verbose);
int unload_bpf_testmod(bool verbose);
int kern_sync_rcu(void);
#endif /* __TESTING_HELPERS_H */