llvm.h 757 B

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