task="perf" if ! perf record -e task-clock:u -o - ${prog} | perf report -i - --task | grep -q ${task} then echo"Record+report pipe test [Failed - cannot find the test file in the perf report #1]"
err=1
return fi
if ! perf record -g -e task-clock:u -o - ${prog} | perf report -i - --task | grep -q ${task} then echo"Record+report pipe test [Failed - cannot find the test file in the perf report #2]"
err=1
return fi
perf record -g -e task-clock:u -o - ${prog} > ${data} if ! perf report -i ${data} --task | grep -q ${task} then echo"Record+report pipe test [Failed - cannot find the test file in the perf report #3]"
err=1
return fi
echo"Record+report pipe test [Success]"
}
test_inject_bids() {
inject_opt=$1
echo echo"Inject ${inject_opt} build-ids test"
if ! perf record -e task-clock:u -o - ${prog} | perf inject ${inject_opt}| perf report -i - | grep -q ${sym} then echo"Inject build-ids test [Failed - cannot find noploop function in pipe #1]"
err=1
return fi
if ! perf record -g -e task-clock:u -o - ${prog} | perf inject ${inject_opt} | perf report -i - | grep -q ${sym} then echo"Inject ${inject_opt} build-ids test [Failed - cannot find noploop function in pipe #2]"
err=1
return fi
perf record -e task-clock:u -o - ${prog} | perf inject ${inject_opt} -o ${data} if ! perf report -i ${data} | grep -q ${sym}; then echo"Inject ${inject_opt} build-ids test [Failed - cannot find noploop function in pipe #3]"
err=1
return fi
perf record -e task-clock:u -o ${data} ${prog} if ! perf inject ${inject_opt} -i ${data} | perf report -i - | grep -q ${sym}; then echo"Inject ${inject_opt} build-ids test [Failed - cannot find noploop function in pipe #4]"
err=1
return fi
perf record -e task-clock:u -o - ${prog} > ${data} if ! perf inject ${inject_opt} -i ${data} | perf report -i - | grep -q ${sym}; then echo"Inject ${inject_opt} build-ids test [Failed - cannot find noploop function in pipe #5]"
err=1
return fi
perf record -e task-clock:u -o - ${prog} > ${data}
perf inject ${inject_opt} -i ${data} -o ${data2} if ! perf report -i ${data2} | grep -q ${sym}; then echo"Inject ${inject_opt} build-ids test [Failed - cannot find noploop function in pipe #6]"
err=1
return fi
echo"Inject ${inject_opt} build-ids test [Success]"
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.