mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 09:56:55 +07:00
450ac18d8f
Making TEST_ASSERT_VAL global as it's used in multiple objects. Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1370612223-19188-3-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
40 lines
935 B
C
40 lines
935 B
C
#ifndef TESTS_H
|
|
#define TESTS_H
|
|
|
|
#define TEST_ASSERT_VAL(text, cond) \
|
|
do { \
|
|
if (!(cond)) { \
|
|
pr_debug("FAILED %s:%d %s\n", __FILE__, __LINE__, text); \
|
|
return -1; \
|
|
} \
|
|
} while (0)
|
|
|
|
enum {
|
|
TEST_OK = 0,
|
|
TEST_FAIL = -1,
|
|
TEST_SKIP = -2,
|
|
};
|
|
|
|
/* Tests */
|
|
int test__vmlinux_matches_kallsyms(void);
|
|
int test__open_syscall_event(void);
|
|
int test__open_syscall_event_on_all_cpus(void);
|
|
int test__basic_mmap(void);
|
|
int test__PERF_RECORD(void);
|
|
int test__rdpmc(void);
|
|
int test__perf_evsel__roundtrip_name_test(void);
|
|
int test__perf_evsel__tp_sched_test(void);
|
|
int test__syscall_open_tp_fields(void);
|
|
int test__pmu(void);
|
|
int test__attr(void);
|
|
int test__dso_data(void);
|
|
int test__parse_events(void);
|
|
int test__hists_link(void);
|
|
int test__python_use(void);
|
|
int test__bp_signal(void);
|
|
int test__bp_signal_overflow(void);
|
|
int test__task_exit(void);
|
|
int test__sw_clock_freq(void);
|
|
|
|
#endif /* TESTS_H */
|