mirror of
https://github.com/torvalds/linux.git
synced 2026-04-24 09:35:52 -04:00
perf test: Add test cases for new data source encoding
Add some simple tests to perf test to test data source printing. v2: Make the tests actually checked for the correct name of Forward v3: Adjust to new encoding Committer notes: Avoid the in place declaration to make this build with older compilers, for instance, in Debian 7 we get: tests/mem.c: In function 'test__mem': tests/mem.c:30:5: error: missing initializer [-Werror=missing-field-initializers] tests/mem.c:30:5: error: (near initialization for '(anonymous).<anonymous>.mem_snoop') [-Werror=missing-field-initializers] So just zero a struct, then go on building the unions as needed, reusing settings from the previous test, i.e. local -> remote, etc. Signed-off-by: Andi Kleen <ak@linux.intel.com> Acked-by: Peter Zijlstra <peterz@infradead.org> Cc: Jiri Olsa <jolsa@kernel.org> Link: http://lkml.kernel.org/r/20170816222156.19953-5-andi@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
52839e653b
commit
3067eaa7ce
@@ -58,6 +58,7 @@ int test__python_use(struct test *test, int subtest);
|
||||
int test__bp_signal(struct test *test, int subtest);
|
||||
int test__bp_signal_overflow(struct test *test, int subtest);
|
||||
int test__task_exit(struct test *test, int subtest);
|
||||
int test__mem(struct test *test, int subtest);
|
||||
int test__sw_clock_freq(struct test *test, int subtest);
|
||||
int test__code_reading(struct test *test, int subtest);
|
||||
int test__sample_parsing(struct test *test, int subtest);
|
||||
|
||||
Reference in New Issue
Block a user