llvm.h 650 B

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