Lines Matching refs:result

9 result=$(mktemp /tmp/__perf_test.result.XXXXX)
13 rm -f ${result}
49 perf lock contention -i ${perfdata} -E 1 -q 2> ${result}
50 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
51 echo "[Fail] Recorded result count is not 1:" "$(cat "${result}" | wc -l)"
67 perf lock con -a -b -E 1 -q -- perf bench sched messaging > /dev/null 2> ${result}
68 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
69 echo "[Fail] BPF result count is not 1:" "$(cat "${result}" | wc -l)"
79 perf lock contention -i- -E 1 -q 2> ${result}
80 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
81 echo "[Fail] Recorded result count is not 1:" "$(cat "${result}" | wc -l)"
90 perf lock contention -i ${perfdata} -t -E 1 -q 2> ${result}
91 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
92 echo "[Fail] Recorded result count is not 1:" "$(cat "${result}" | wc -l)"
102 perf lock con -a -b -t -E 1 -q -- perf bench sched messaging > /dev/null 2> ${result}
103 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
104 echo "[Fail] BPF result count is not 1:" "$(cat "${result}" | wc -l)"
113 perf lock contention -i ${perfdata} -l -E 1 -q 2> ${result}
114 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
115 echo "[Fail] Recorded result count is not 1:" "$(cat "${result}" | wc -l)"
125 perf lock con -a -b -l -E 1 -q -- perf bench sched messaging > /dev/null 2> ${result}
126 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
127 echo "[Fail] BPF result count is not 1:" "$(cat "${result}" | wc -l)"
143 perf lock con -a -b -g -E 1 -q -- perf bench sched messaging > /dev/null 2> ${result}
144 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
145 echo "[Fail] BPF result count is not 1:" "$(cat "${result}" | wc -l)"
154 perf lock contention -i ${perfdata} -Y spinlock -q 2> ${result}
155 if [ "$(grep -c -v spinlock "${result}")" != "0" ]; then
156 echo "[Fail] Recorded result should not have non-spinlocks:" "$(cat "${result}")"
165 perf lock con -a -b -Y spinlock -q -- perf bench sched messaging > /dev/null 2> ${result}
166 if [ "$(grep -c -v spinlock "${result}")" != "0" ]; then
167 echo "[Fail] BPF result should not have non-spinlocks:" "$(cat "${result}")"
176 perf lock contention -i ${perfdata} -l -q 2> ${result}
177 if [ "$(grep -c tasklist_lock "${result}")" != "1" ]; then
182 perf lock contention -i ${perfdata} -L tasklist_lock -q 2> ${result}
185 test_lock_filter_type=$(head -1 "${result}" | awk '{ print $8 }' | sed -e 's/:.*//')
187 if [ "$(grep -c -v "${test_lock_filter_type}" "${result}")" != "0" ]; then
188 echo "[Fail] Recorded result should not have non-${test_lock_filter_type} locks:" "$(cat "${result}")"
197 perf lock con -a -b -L tasklist_lock -q -- perf bench sched messaging > /dev/null 2> ${result}
198 if [ "$(grep -c -v "${test_lock_filter_type}" "${result}")" != "0" ]; then
199 echo "[Fail] BPF result should not have non-${test_lock_filter_type} locks:" "$(cat "${result}")"
208 perf lock contention -i ${perfdata} -v -q 2> ${result}
209 if [ "$(grep -c unix_stream "${result}")" = "0" ]; then
214 perf lock contention -i ${perfdata} -E 1 -S unix_stream -q 2> ${result}
215 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
216 echo "[Fail] Recorded result should have a lock from unix_stream:" "$(cat "${result}")"
225 perf lock con -a -b -S unix_stream -E 1 -q -- perf bench sched messaging > /dev/null 2> ${result}
226 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
227 echo "[Fail] BPF result should have a lock from unix_stream:" "$(cat "${result}")"
236 perf lock contention -i ${perfdata} -v -q 2> ${result}
237 if [ "$(grep -c unix_stream "${result}")" = "0" ]; then
242 perf lock contention -i ${perfdata} -t -E 1 -S unix_stream -q 2> ${result}
243 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
244 echo "[Fail] Recorded result should have a task from unix_stream:" "$(cat "${result}")"
253 perf lock con -a -b -t -S unix_stream -E 1 -q -- perf bench sched messaging > /dev/null 2> ${result}
254 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
255 echo "[Fail] BPF result should have a task from unix_stream:" "$(cat "${result}")"
269 perf lock con -a -b -g -E 1 -F wait_total -q -- perf bench sched messaging > /dev/null 2> ${result}
270 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
271 echo "[Fail] BPF result should have a cgroup result:" "$(cat "${result}")"
276 cgroup=$(cat "${result}" | awk '{ print $3 }')
277 perf lock con -a -b -g -E 1 -G "${cgroup}" -q -- perf bench sched messaging > /dev/null 2> ${result}
278 if [ "$(cat "${result}" | wc -l)" != "1" ]; then
279 echo "[Fail] BPF result should have a result with cgroup filter:" "$(cat "${cgroup}")"
289 perf lock contention -i ${perfdata} -E 1 -x , --output ${result}
292 header=$(grep "# output:" ${result} | tr -d -c , | wc -c)
294 echo "[Fail] Recorded result does not have enough output columns: ${header} != 5"
299 output=$(grep -v "^#" ${result} | tr -d -c , | wc -c)
301 echo "[Fail] Recorded result does not match the number of commas: ${header} != ${output}"
312 perf lock con -a -b -E 1 -x , --output ${result} -- perf bench sched messaging > /dev/null 2>&1
313 output=$(grep -v "^#" ${result} | tr -d -c , | wc -c)
315 echo "[Fail] BPF result does not match the number of commas: ${header} != ${output}"