mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-08 23:49:14 +08:00
perf test: Introduce DEFINE_SUITE_EXCLUSIVE()
A variant of DEFINE_SUITE() but sets ->exclusive bit for the test so the test will be executed sequentially. Signed-off-by: Ravi Bangoria <ravi.bangoria@amd.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ananth Narayan <ananth.narayan@amd.com> Cc: Borislav Petkov <bp@alien8.de> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Ian Rogers <irogers@google.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Sandipan Das <sandipan.das@amd.com> Cc: Santosh Shukla <santosh.shukla@amd.com> Cc: Stephane Eranian <eranian@google.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: x86@kernel.org Link: https://lore.kernel.org/r/20241210093449.1662-10-ravi.bangoria@amd.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
aec95d7ce1
commit
4cd67bac9d
@@ -81,6 +81,16 @@ struct test_suite {
|
||||
.test_cases = tests__##_name, \
|
||||
}
|
||||
|
||||
#define DEFINE_SUITE_EXCLUSIVE(description, _name) \
|
||||
struct test_case tests__##_name[] = { \
|
||||
TEST_CASE_EXCLUSIVE(description, _name),\
|
||||
{ .name = NULL, } \
|
||||
}; \
|
||||
struct test_suite suite__##_name = { \
|
||||
.desc = description, \
|
||||
.test_cases = tests__##_name, \
|
||||
}
|
||||
|
||||
/* Tests */
|
||||
DECLARE_SUITE(vmlinux_matches_kallsyms);
|
||||
DECLARE_SUITE(openat_syscall_event);
|
||||
|
||||
Reference in New Issue
Block a user