Skip to contentSkip to conversation

perf tests attr: Fix group stat tests

tip:perf/core tip-bot for Jiri Olsa 1 participant 1 message Oct 3, 2017 perf events

lore
Share & tools
lore

tip-bot for Jiri Olsa

author merge bot
#0 lore raw
Commit-ID:  f6a9820d572bd8384d982357cbad214b3a6c04bb
Gitweb:     https://git.kernel.org/tip/f6a9820d572bd8384d982357cbad214b3a6c04bb
Author:     Jiri Olsa <[email protected]>
AuthorDate: Thu, 28 Sep 2017 18:06:33 +0200
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Tue, 3 Oct 2017 09:41:45 -0300

perf tests attr: Fix group stat tests

We started to use group read whenever it's possible:

82bf311e15d2 perf stat: Use group read for event groups

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

Cc Heiko Carstens <[email protected]>
Cc Hendrik Brueckner <[email protected]>
Cc Martin Schwidefsky <[email protected]>
Cc Thomas-Mich Richter <[email protected]>

LPU-Reference: 20170928160633.GA26973@krava

---
 tools/perf/tests/attr/test-stat-group  | 2 ++
 tools/perf/tests/attr/test-stat-group1 | 2 ++
 2 files changed, 4 insertions(+)
tools/perf/tests/attr/test-stat-group +2 -0
index fdc1596..e15d694 100644
@@ -6,6 +6,7 @@ ret     = 1
 [event-1:base-stat]
 fd=1
 group_fd=-1
+read_format=3|15
 
 [event-2:base-stat]
 fd=2
@@ -13,3 +14,4 @@ group_fd=1
 config=1
 disabled=0
 enable_on_exec=0
+read_format=3|15
tools/perf/tests/attr/test-stat-group1 +2 -0
index 2a1f86e..1746751 100644
@@ -6,6 +6,7 @@ ret     = 1
 [event-1:base-stat]
 fd=1
 group_fd=-1
+read_format=3|15
 
 [event-2:base-stat]
 fd=2
@@ -13,3 +14,4 @@ group_fd=1
 config=1
 disabled=0
 enable_on_exec=0
+read_format=3|15