aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorKajol Jain <[email protected]>2023-08-23 07:51:03 +0000
committerArnaldo Carvalho de Melo <[email protected]>2023-08-23 11:39:02 +0000
commit9823ae6f68786aff4fbe870897aee1abc0b01fda (patch)
tree245c603559f88bc79c2bae1c9eed886c7ef8cee7 /tools/perf/scripts/python/export-to-sqlite.py
parentperf lzma: Convert some pr_err() to pr_debug() as callers already use pr_debug() (diff)
downloadkernel-9823ae6f68786aff4fbe870897aee1abc0b01fda.tar.gz
kernel-9823ae6f68786aff4fbe870897aee1abc0b01fda.zip
perf bench breakpoint: Skip run if no breakpoints available
Based on commit 7d54a4acd8c1de3e ("perf test: Skip watchpoint tests if no watchpoints available"), hardware breakpoints are not available for power9 platform and because of that 'perf bench breakpoint' run fails on power9 platform. Add code to check for the return value of perf_event_open() in the breakpoint run and skip the 'perf bench breakpoint' run, if hardware breakpoints are not available. Result on power9 system before patch changes: [command]# perf bench breakpoint thread perf_event_open: No such device Result on power9 system after patch changes: [command]# ./perf bench breakpoint thread Skipping perf bench breakpoint thread: No hardware support Reported-by: Disha Goel <[email protected]> Signed-off-by: Kajol Jain <[email protected]> Acked-by: Naveen N Rao <[email protected]> Cc: Athira Rajeev <[email protected]> Cc: Disha Goel <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Madhavan Srinivasan <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Naveen N. Rao <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions