5 source $TESTDIR/utils
/tap.sh
10 : ${NR_EVENTS:=7000000}
13 : ${TIME:="./$CURDIR/ptime"}
15 : ${PROG_NOTRACING:="./$CURDIR/bench1 $NR_CPUS $NR_EVENTS"}
16 : ${PROG_TRACING:="./$CURDIR/bench2 $NR_CPUS $NR_EVENTS"}
18 CMD_NOTRACING
="$TIME '$PROG_NOTRACING >/dev/null 2>&1'"
19 CMD_TRACING
="$TIME '$PROG_TRACING >/dev/null 2>&1'"
22 for i
in $
(seq $ITERS); do
23 echo 3 >/proc
/sys
/vm
/drop_caches
24 time_notrace
="$time_notrace+$(sh -c "$CMD_NOTRACING")"
27 lttng-sessiond
-d --no-kernel
29 lttng
-q enable-event
-u -a
33 for i
in $
(seq $ITERS); do
34 echo 3 >/proc
/sys
/vm
/drop_caches
35 time_trace
="$time_trace+$(sh -c "$CMD_TRACING")"
41 pass
"Trace benchmark"
42 diag
"Average tracing overhead per event is $(echo "scale
=6;( ($time_trace) - ($time_notrace) ) / $ITERS / $NR_EVENTS" | bc -l)s"
This page took 0.037616 seconds and 4 git commands to generate.