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