Lines Matching +full:exit +full:- +full:latency
3 # SPDX-License-Identifier: GPL-2.0
5 set -e
8 if [ "$(id -u)" != 0 ]; then
10 exit 2
16 rm -f "${output}"
18 trap - EXIT TERM INT
23 exit 1
25 trap trap_cleanup EXIT TERM INT
32 perf ftrace -F > "${output}"
42 perf ftrace trace --graph-opts depth=5 sleep 0.1 > "${output}"
45 grep -F 'sleep()' "${output}"
48 if grep -q "${FN}" "${output}"; then
56 exit 1
60 echo "perf ftrace latency test"
62 perf ftrace latency -T "${target_function}" sleep 0.1 > "${output}"
65 echo "perf ftrace latency test [Success]"
79 grep -E "^${time_re}${time_re}${time_re}[[:space:]]+1[[:space:]]+.*clock_nanosleep" "${output}"
89 exit 0