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