Lines Matching +full:clock +full:- +full:skip
3 # SPDX-License-Identifier: GPL-2.0
5 set -e
7 temp_dir=$(mktemp -d /tmp/perf-test-script.XXXXXXXXXX)
16 trap - EXIT TERM INT
17 sane=$(echo "${temp_dir}" | cut -b 1-21)
18 if [ "${sane}" = "/tmp/perf-test-script" ] ; then
19 echo "--- Cleaning up ---"
20 rm -rf "${temp_dir:?}/"*
39 if perf version --build-options | grep python | grep -q OFF ; then
40 echo "SKIP: python scripting is not supported"
56 case $(uname -m)
58 cmd_flags="--call-graph dwarf -e cpu-clock";;
60 cmd_flags="-g";;
63 perf record $cmd_flags -o "${perfdatafile}" true
66 perf script -i "${perfdatafile}" -s "${db_test}"
73 echo "parallel-perf test"
74 if ! python3 --version >/dev/null 2>&1 ; then
75 echo "SKIP: no python3"
79 pp=$(dirname "$0")/../../scripts/python/parallel-perf.py
80 if [ ! -f "${pp}" ] ; then
81 echo "SKIP: parallel-perf.py script not found "
85 perf_data="${temp_dir}/pp-perf.data"
88 perf record -o "${perf_data}" --sample-cpu uname
89 python3 "${pp}" -o "${output1_dir}" --jobs 4 --verbose -- perf script -i "${perf_data}"
90 python3 "${pp}" -o "${output2_dir}" --jobs 4 --verbose --per-cpu -- perf script -i "${perf_data}"
91 echo "parallel-perf test [Success]"