mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-29 21:33:00 +01:00
perf test: Fix test case perf evlist tests for s390x
Perf test case 78: perf evlist tests fails on s390.
The failure is causes by grouping events cycles and instructions because
sampling does only support event cycles. Change the group to software
events to fix this.
Output before:
# ./perf test 78
78: perf evlist tests : FAILED!
#
Output after:
# ./perf test 78
78: perf evlist tests : Ok
#
Fixes: db452961de ("perf tests evlist: Add basic evlist test")
Signed-off-by: Thomas Richter <[email protected]>
Tested-by: Ian Rogers <[email protected]>
Cc: Alexander Gordeev <[email protected]>
Cc: Heiko Carstens <[email protected]>
Cc: Jan Polensky <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Sumanth Korikkar <[email protected]>
Cc: Vasily Gorbik <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
1 parent
623ba6ea45
commit
b04d2b9199
1 file changed
+3
-2
@@ -38,13 +38,14 @@ test_evlist_simple() {
|
||||
|
||||
test_evlist_group() {
|
||||
echo "Group evlist test"
|
||||
if ! perf record -e "{cycles,instructions}" -o "${perfdata}" true 2> /dev/null
|
||||
if ! perf record -e "{cpu-clock,task-clock}" -o "${perfdata}" \
|
||||
-- perf test -w noploop 2> /dev/null
|
||||
then
|
||||
echo "Group evlist [Skipped event group recording failed]"
|
||||
return
|
||||
fi
|
||||
|
||||
if ! perf evlist -i "${perfdata}" -g | grep -q "{.*cycles.*,.*instructions.*}"
|
||||
if ! perf evlist -i "${perfdata}" -g | grep -q "{.*cpu-clock.*,.*task-clock.*}"
|
||||
then
|
||||
echo "Group evlist [Failed to list event group]"
|
||||
err=1
|
||||
|
||||
Reference in new issue
Block a user