Commit | Line | Data |
---|---|---|
b31de018 WN |
1 | #ifndef PERF_TEST_LLVM_H |
2 | #define PERF_TEST_LLVM_H | |
3 | ||
4 | #include <stddef.h> /* for size_t */ | |
5 | #include <stdbool.h> /* for bool */ | |
6 | ||
7 | extern const char test_llvm__bpf_base_prog[]; | |
7af3f3d5 | 8 | extern const char test_llvm__bpf_test_kbuild_prog[]; |
bbb7d492 | 9 | extern const char test_llvm__bpf_test_prologue_prog[]; |
7b6982ce | 10 | extern const char test_llvm__bpf_test_relocation[]; |
b31de018 WN |
11 | |
12 | enum test_llvm__testcase { | |
13 | LLVM_TESTCASE_BASE, | |
7af3f3d5 | 14 | LLVM_TESTCASE_KBUILD, |
bbb7d492 | 15 | LLVM_TESTCASE_BPF_PROLOGUE, |
7b6982ce | 16 | LLVM_TESTCASE_BPF_RELOCATION, |
b31de018 WN |
17 | __LLVM_TESTCASE_MAX, |
18 | }; | |
19 | ||
20 | int test_llvm__fetch_bpf_obj(void **p_obj_buf, size_t *p_obj_buf_sz, | |
7b6982ce WN |
21 | enum test_llvm__testcase index, bool force, |
22 | bool *should_load_fail); | |
b31de018 | 23 | #endif |