perf test: Consider PERF_SAMPLE_TRANSACTION in the "sample parsing" test
authorArnaldo Carvalho de Melo <[email protected]>
Tue, 22 Oct 2013 18:28:11 +0000 (15:28 -0300)
committerArnaldo Carvalho de Melo <[email protected]>
Wed, 23 Oct 2013 12:55:37 +0000 (09:55 -0300)
[root@sandy ~]# perf test -v 22
22: Test sample parsing                                    :
--- start ---
sample format has changed, some new PERF_SAMPLE_ bit was introduced - test needs updating
---- end ----
Test sample parsing: FAILED!
[root@sandy ~]#

Cc: Adrian Hunter <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/tests/sample-parsing.c

index 17d000c6c8ff23650874a3989d8b82cdd6a708b8..61c9da2eb3a94d29f0cebc9b1c75f43020496dbe 100644 (file)
@@ -275,7 +275,7 @@ int test__sample_parsing(void)
         * Fail the test if it has not been updated when new sample format bits
         * were added.
         */
-       if (PERF_SAMPLE_MAX > PERF_SAMPLE_IDENTIFIER << 1) {
+       if (PERF_SAMPLE_MAX > PERF_SAMPLE_TRANSACTION << 1) {
                pr_debug("sample format has changed, some new PERF_SAMPLE_ bit was introduced - test needs updating\n");
                return -1;
        }