Lines Matching full:result

9 result=$(mktemp /tmp/__perf_test.result.XXXXX)
13 rm -f ${result}
42 perf lock contention -i ${perfdata} -E 1 -q 2> ${result}
43 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
44 echo "[Fail] Recorded result count is not 1:" "$(cat "${result}" | wc -l)"
60 perf lock con -a -b -E 1 -q -- perf bench sched messaging > /dev/null 2> ${result}
61 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
62 echo "[Fail] BPF result count is not 1:" "$(cat "${result}" | wc -l)"
72 perf lock contention -i- -E 1 -q 2> ${result}
73 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
74 echo "[Fail] Recorded result count is not 1:" "$(cat "${result}" | wc -l)"
83 perf lock contention -i ${perfdata} -t -E 1 -q 2> ${result}
84 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
85 echo "[Fail] Recorded result count is not 1:" "$(cat "${result}" | wc -l)"
95 perf lock con -a -b -t -E 1 -q -- perf bench sched messaging > /dev/null 2> ${result}
96 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
97 echo "[Fail] BPF result count is not 1:" "$(cat "${result}" | wc -l)"
106 perf lock contention -i ${perfdata} -l -E 1 -q 2> ${result}
107 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
108 echo "[Fail] Recorded result count is not 1:" "$(cat "${result}" | wc -l)"
118 perf lock con -a -b -l -E 1 -q -- perf bench sched messaging > /dev/null 2> ${result}
119 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
120 echo "[Fail] BPF result count is not 1:" "$(cat "${result}" | wc -l)"
129 perf lock contention -i ${perfdata} -Y spinlock -q 2> ${result}
130 if [ "$(grep -c -v spinlock "${result}")" != "0" ]; then
131 echo "[Fail] Recorded result should not have non-spinlocks:" "$(cat "${result}")"
140 perf lock con -a -b -Y spinlock -q -- perf bench sched messaging > /dev/null 2> ${result}
141 if [ "$(grep -c -v spinlock "${result}")" != "0" ]; then
142 echo "[Fail] BPF result should not have non-spinlocks:" "$(cat "${result}")"
151 perf lock contention -i ${perfdata} -l -q 2> ${result}
152 if [ "$(grep -c tasklist_lock "${result}")" != "1" ]; then
157 perf lock contention -i ${perfdata} -L tasklist_lock -q 2> ${result}
160 test_lock_filter_type=$(head -1 "${result}" | awk '{ print $8 }' | sed -e 's/:.*//')
162 if [ "$(grep -c -v "${test_lock_filter_type}" "${result}")" != "0" ]; then
163 …echo "[Fail] Recorded result should not have non-${test_lock_filter_type} locks:" "$(cat "${result
172 perf lock con -a -b -L tasklist_lock -q -- perf bench sched messaging > /dev/null 2> ${result}
173 if [ "$(grep -c -v "${test_lock_filter_type}" "${result}")" != "0" ]; then
174 echo "[Fail] BPF result should not have non-${test_lock_filter_type} locks:" "$(cat "${result}")"
183 perf lock contention -i ${perfdata} -v -q 2> ${result}
184 if [ "$(grep -c unix_stream "${result}")" = "0" ]; then
189 perf lock contention -i ${perfdata} -E 1 -S unix_stream -q 2> ${result}
190 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
191 echo "[Fail] Recorded result should have a lock from unix_stream:" "$(cat "${result}")"
200 perf lock con -a -b -S unix_stream -E 1 -q -- perf bench sched messaging > /dev/null 2> ${result}
201 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
202 echo "[Fail] BPF result should have a lock from unix_stream:" "$(cat "${result}")"
211 perf lock contention -i ${perfdata} -v -q 2> ${result}
212 if [ "$(grep -c unix_stream "${result}")" = "0" ]; then
217 perf lock contention -i ${perfdata} -t -E 1 -S unix_stream -q 2> ${result}
218 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
219 echo "[Fail] Recorded result should have a task from unix_stream:" "$(cat "${result}")"
228 …erf lock con -a -b -t -S unix_stream -E 1 -q -- perf bench sched messaging > /dev/null 2> ${result}
229 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
230 echo "[Fail] BPF result should have a task from unix_stream:" "$(cat "${result}")"
239 perf lock contention -i ${perfdata} -E 1 -x , --output ${result}
242 header=$(grep "# output:" ${result} | tr -d -c , | wc -c)
244 echo "[Fail] Recorded result does not have enough output columns: ${header} != 5"
249 output=$(grep -v "^#" ${result} | tr -d -c , | wc -c)
251 echo "[Fail] Recorded result does not match the number of commas: ${header} != ${output}"
262 perf lock con -a -b -E 1 -x , --output ${result} -- perf bench sched messaging > /dev/null 2>&1
263 output=$(grep -v "^#" ${result} | tr -d -c , | wc -c)
265 echo "[Fail] BPF result does not match the number of commas: ${header} != ${output}"