mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 16:37:50 +00:00
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>
This commit is contained in:
parent
19030564ab
commit
2e9f5bda2f
1 changed files with 1 additions and 1 deletions
|
@ -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:"
|
||||
|
|
Loading…
Reference in a new issue