tests.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef TESTS_H
  2. #define TESTS_H
  3. #define TEST_ASSERT_VAL(text, cond) \
  4. do { \
  5. if (!(cond)) { \
  6. pr_debug("FAILED %s:%d %s\n", __FILE__, __LINE__, text); \
  7. return -1; \
  8. } \
  9. } while (0)
  10. enum {
  11. TEST_OK = 0,
  12. TEST_FAIL = -1,
  13. TEST_SKIP = -2,
  14. };
  15. /* Tests */
  16. int test__vmlinux_matches_kallsyms(void);
  17. int test__open_syscall_event(void);
  18. int test__open_syscall_event_on_all_cpus(void);
  19. int test__basic_mmap(void);
  20. int test__PERF_RECORD(void);
  21. int test__rdpmc(void);
  22. int test__perf_evsel__roundtrip_name_test(void);
  23. int test__perf_evsel__tp_sched_test(void);
  24. int test__syscall_open_tp_fields(void);
  25. int test__pmu(void);
  26. int test__attr(void);
  27. int test__dso_data(void);
  28. int test__parse_events(void);
  29. int test__hists_link(void);
  30. int test__python_use(void);
  31. int test__bp_signal(void);
  32. int test__bp_signal_overflow(void);
  33. int test__task_exit(void);
  34. int test__sw_clock_freq(void);
  35. int test__perf_time_to_tsc(void);
  36. int test__code_reading(void);
  37. int test__sample_parsing(void);
  38. int test__keep_tracking(void);
  39. #endif /* TESTS_H */