diff options
author | Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> | 2022-11-21 13:27:47 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-11-23 16:32:53 +0300 |
commit | 7d54a4acd8c1de3ea70d31424757dcdb7f0a231a (patch) | |
tree | a20871807c8bfa8da034f12bb5d6f6c835ee8a5a /tools/perf/util/synthetic-events.c | |
parent | 8daf87f5922730468c98ae588573386042bc2992 (diff) | |
download | linux-7d54a4acd8c1de3ea70d31424757dcdb7f0a231a.tar.xz |
perf test: Skip watchpoint tests if no watchpoints available
On IBM Power9, perf watchpoint tests fail since no hardware breakpoints
are available. Detect this by checking the error returned by
perf_event_open() and skip the tests in that case.
Reported-by: Disha Goel <disgoel@linux.vnet.ibm.com>
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Acked-by: Ian Rogers <irogers@google.com>
Reviewed-by: Kajol Jain<kjain@linux.ibm.com>
Tested-by: Kajol Jain<kjain@linux.ibm.com>
Link: https://lore.kernel.org/r/20221121102747.208289-1-naveen.n.rao@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Ravi Bangoria <ravi.bangoria@amd.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-perf-users@vger.kernel.org
Diffstat (limited to 'tools/perf/util/synthetic-events.c')
0 files changed, 0 insertions, 0 deletions