1 #ifndef PERF_TEST_LLVM_H
2 #define PERF_TEST_LLVM_H
8 #include <stddef.h> /* for size_t */
9 #include <stdbool.h> /* for bool */
11 extern const char test_llvm__bpf_base_prog
[];
12 extern const char test_llvm__bpf_test_kbuild_prog
[];
13 extern const char test_llvm__bpf_test_prologue_prog
[];
14 extern const char test_llvm__bpf_test_relocation
[];
16 enum test_llvm__testcase
{
19 LLVM_TESTCASE_BPF_PROLOGUE
,
20 LLVM_TESTCASE_BPF_RELOCATION
,
24 int test_llvm__fetch_bpf_obj(void **p_obj_buf
, size_t *p_obj_buf_sz
,
25 enum test_llvm__testcase index
, bool force
,
26 bool *should_load_fail
);