1#ifndef TESTS_H 2#define TESTS_H 3 4#define TEST_ASSERT_VAL(text, cond) \ 5do { \ 6 if (!(cond)) { \ 7 pr_debug("FAILED %s:%d %s\n", __FILE__, __LINE__, text); \ 8 return -1; \ 9 } \ 10} while (0) 11 12enum { 13 TEST_OK = 0, 14 TEST_FAIL = -1, 15 TEST_SKIP = -2, 16}; 17 18/* Tests */ 19int test__vmlinux_matches_kallsyms(void); 20int test__open_syscall_event(void); 21int test__open_syscall_event_on_all_cpus(void); 22int test__basic_mmap(void); 23int test__PERF_RECORD(void); 24int test__rdpmc(void); 25int test__perf_evsel__roundtrip_name_test(void); 26int test__perf_evsel__tp_sched_test(void); 27int test__syscall_open_tp_fields(void); 28int test__pmu(void); 29int test__attr(void); 30int test__dso_data(void); 31int test__dso_data_cache(void); 32int test__dso_data_reopen(void); 33int test__parse_events(void); 34int test__hists_link(void); 35int test__python_use(void); 36int test__bp_signal(void); 37int test__bp_signal_overflow(void); 38int test__task_exit(void); 39int test__sw_clock_freq(void); 40int test__perf_time_to_tsc(void); 41int test__code_reading(void); 42int test__sample_parsing(void); 43int test__keep_tracking(void); 44int test__parse_no_sample_id_all(void); 45int test__dwarf_unwind(void); 46int test__hists_filter(void); 47int test__mmap_thread_lookup(void); 48int test__thread_mg_share(void); 49int test__hists_output(void); 50int test__hists_cumulate(void); 51int test__switch_tracking(void); 52int test__fdarray__filter(void); 53int test__fdarray__add(void); 54int test__kmod_path__parse(void); 55 56#if defined(__x86_64__) || defined(__i386__) || defined(__arm__) 57#ifdef HAVE_DWARF_UNWIND_SUPPORT 58struct thread; 59struct perf_sample; 60int test__arch_unwind_sample(struct perf_sample *sample, 61 struct thread *thread); 62#endif 63#endif 64#endif /* TESTS_H */ 65