diff options
Diffstat (limited to 'tools/perf/tests/tests.h')
-rw-r--r-- | tools/perf/tests/tests.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/perf/tests/tests.h b/tools/perf/tests/tests.h index dd7feae2d37b..e0ac713857ba 100644 --- a/tools/perf/tests/tests.h +++ b/tools/perf/tests/tests.h | |||
@@ -1,6 +1,14 @@ | |||
1 | #ifndef TESTS_H | 1 | #ifndef TESTS_H |
2 | #define TESTS_H | 2 | #define TESTS_H |
3 | 3 | ||
4 | #define TEST_ASSERT_VAL(text, cond) \ | ||
5 | do { \ | ||
6 | if (!(cond)) { \ | ||
7 | pr_debug("FAILED %s:%d %s\n", __FILE__, __LINE__, text); \ | ||
8 | return -1; \ | ||
9 | } \ | ||
10 | } while (0) | ||
11 | |||
4 | enum { | 12 | enum { |
5 | TEST_OK = 0, | 13 | TEST_OK = 0, |
6 | TEST_FAIL = -1, | 14 | TEST_FAIL = -1, |
@@ -27,5 +35,10 @@ int test__bp_signal(void); | |||
27 | int test__bp_signal_overflow(void); | 35 | int test__bp_signal_overflow(void); |
28 | int test__task_exit(void); | 36 | int test__task_exit(void); |
29 | int test__sw_clock_freq(void); | 37 | int test__sw_clock_freq(void); |
38 | int test__perf_time_to_tsc(void); | ||
39 | int test__code_reading(void); | ||
40 | int test__sample_parsing(void); | ||
41 | int test__keep_tracking(void); | ||
42 | int test__parse_no_sample_id_all(void); | ||
30 | 43 | ||
31 | #endif /* TESTS_H */ | 44 | #endif /* TESTS_H */ |