Skip to content

Commit

Permalink
perf tests attr: Fix group stat tests
Browse files Browse the repository at this point in the history
We started to use group read whenever it's possible:

  82bf311 perf stat: Use group read for event groups

That breaks some of attr tests, this change adds the new possible
read_format value.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Thomas-Mich Richter <tmricht@linux.vnet.ibm.com>
LPU-Reference: 20170928160633.GA26973@krava
Link: http://lkml.kernel.org/n/tip-1ko2zc4nph93d8lfwjyk9ivz@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
  • Loading branch information
Jiri Olsa authored and Arnaldo Carvalho de Melo committed Oct 3, 2017
1 parent 0c6b499 commit f6a9820
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/perf/tests/attr/test-stat-group
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ ret = 1
[event-1:base-stat]
fd=1
group_fd=-1
read_format=3|15

[event-2:base-stat]
fd=2
group_fd=1
config=1
disabled=0
enable_on_exec=0
read_format=3|15
2 changes: 2 additions & 0 deletions tools/perf/tests/attr/test-stat-group1
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ ret = 1
[event-1:base-stat]
fd=1
group_fd=-1
read_format=3|15

[event-2:base-stat]
fd=2
group_fd=1
config=1
disabled=0
enable_on_exec=0
read_format=3|15

0 comments on commit f6a9820

Please sign in to comment.