0001
0002 #ifndef PERF_TEST_LLVM_H
0003 #define PERF_TEST_LLVM_H
0004
0005 #ifdef __cplusplus
0006 extern "C" {
0007 #endif
0008
0009 #include <stddef.h> /* for size_t */
0010 #include <stdbool.h> /* for bool */
0011
0012 extern const char test_llvm__bpf_base_prog[];
0013 extern const char test_llvm__bpf_test_kbuild_prog[];
0014 extern const char test_llvm__bpf_test_prologue_prog[];
0015 extern const char test_llvm__bpf_test_relocation[];
0016
0017 enum test_llvm__testcase {
0018 LLVM_TESTCASE_BASE,
0019 LLVM_TESTCASE_KBUILD,
0020 LLVM_TESTCASE_BPF_PROLOGUE,
0021 LLVM_TESTCASE_BPF_RELOCATION,
0022 __LLVM_TESTCASE_MAX,
0023 };
0024
0025 int test_llvm__fetch_bpf_obj(void **p_obj_buf, size_t *p_obj_buf_sz,
0026 enum test_llvm__testcase index, bool force,
0027 bool *should_load_fail);
0028 #ifdef __cplusplus
0029 }
0030 #endif
0031 #endif