tools/perf/testsuite: Adding a set of testcases for perf-stat
PATCH 3/3 tools/perf/testsuite: Adding a set of testcases for perf-stat
A set of testcases for perf-stat that should test the basics of the subcommand, the support of all the hw and hwcache events that are shown by perf-list and a testcase that checks powerpc specific hv_24x7 events.
--- tools/perf/testsuite/base_stat/cleanup.sh | 20 +++++++ tools/perf/testsuite/base_stat/settings.sh | 10 ++++ tools/perf/testsuite/base_stat/test_basic.sh | 68 ++++++++++++++++++++++ tools/perf/testsuite/base_stat/test_hw.sh | 50 ++++++++++++++++ tools/perf/testsuite/base_stat/test_hwcache.sh | 51 ++++++++++++++++ .../testsuite/base_stat/test_powerpc_hv_24x7.sh | 60 +++++++++++++++++++ 6 files changed, 259 insertions(+) create mode 100755 tools/perf/testsuite/base_stat/cleanup.sh create mode 100644 tools/perf/testsuite/base_stat/settings.sh create mode 100755 tools/perf/testsuite/base_stat/test_basic.sh create mode 100755 tools/perf/testsuite/base_stat/test_hw.sh create mode 100755 tools/perf/testsuite/base_stat/test_hwcache.sh create mode 100755 tools/perf/testsuite/base_stat/test_powerpc_hv_24x7.sh
tools/perf/testsuite/base_stat/cleanup.sh new file +20 -0
@@ -0,0 +1,20 @@ +# +# cleanup.sh of perf stat test +# Author: Michael Petlan <[email protected]> +# +# Description: +# FIXME +# +# + +. ../common/settings.sh +. ../common/patterns.sh +. ../common/init.sh +. ./settings.sh + +find . -name \*.log | xargs rm +test -d hw && rmdir hw +test -d hwcache && rmdir hwcache +test -d hv24x7 && rmdir hv_24x7 +print_overall_results 0 +exit 0
tools/perf/testsuite/base_stat/settings.sh new file +10 -0
@@ -0,0 +1,10 @@ +# +# settings.sh of perf_stat test +# Author: Michael Petlan <[email protected]> +# +# Description: +# FIXME +# +# + +export TEST_NAME="perf_stat"
tools/perf/testsuite/base_stat/test_basic.sh new file +68 -0
68 lines not on this page · raw message
tools/perf/testsuite/base_stat/test_hw.sh new file +50 -0
50 lines not on this page · raw message
tools/perf/testsuite/base_stat/test_hwcache.sh new file +51 -0
51 lines not on this page · raw message
tools/perf/testsuite/base_stat/test_powerpc_hv_24x7.sh new file +60 -0
60 lines not on this page · raw message
Signature · 1 line
1.8.3.1