aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Petlan <mpetlan@redhat.com>2022-11-22 09:31:21 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2022-11-23 10:35:45 -0300
commit2e9f5bda2f036aa38312fbeb99ff7e19c0221578 (patch)
treefd7f20701bc8f67d494f498bf99f4b81acadc11f
parent19030564ab116757e3270a567fd9d5b20b411d74 (diff)
perf test: Fix record test on KVM guests
Using precise flag with br_inst_retired.near_call causes the test fail on KVM guests, even when the guests have PMU forwarding enabled and the event itself is supported. Remove the precise flag in order to make the test work on KVM guests. Signed-off-by: Michael Petlan <mpetlan@redhat.com> Acked-by: Ian Rogers <irogers@google.com> Link: https://lore.kernel.org/r/20221122083121.6012-1-mpetlan@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rwxr-xr-xtools/perf/tests/shell/record.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/tests/shell/record.sh b/tools/perf/tests/shell/record.sh
index 4dff89e3a3fd..4fbc74805d52 100755
--- a/tools/perf/tests/shell/record.sh
+++ b/tools/perf/tests/shell/record.sh
@@ -83,7 +83,7 @@ test_register_capture() {
echo "Register capture test [Skipped missing registers]"
return
fi
- if ! perf record -o - --intr-regs=di,r8,dx,cx -e br_inst_retired.near_call:p \
+ if ! perf record -o - --intr-regs=di,r8,dx,cx -e br_inst_retired.near_call \
-c 1000 --per-thread ${testprog} 2> /dev/null \
| perf script -F ip,sym,iregs -i - 2> /dev/null \
| grep -q "DI:"