1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
#! /bin/sh
echo checking running as root
if [ `whoami` != "root" ]; then
echo run as root
exit 1
fi
echo checking /sys/kernel/debug mounted
if test -d /sys/kernel/debug/tracing/events
then
true
else
mount -t debugfs /dev/null /sys/kernel/debug
fi
tmp=`mktemp -d`
echo made work directory $tmp
trap 'rm -fr $tmp' 0 1 2 3 5 9 15
echo gathering perf tracepoint list
${PERF-perf} list | grep Tracepoint | egrep -v 'sys_(enter|exit)_' |
cut -f2 -d':' | awk '{print $1}' | sort > $tmp/perf
echo gathering systemtap tracepoint list
${STAP-stap} --poison-cache -L 'kernel.trace("*")' | cut -f2 -d'"' | sort > $tmp/stap
echo listing tracepoints missing in stap
echo
comm ${COMM--23} $tmp/perf $tmp/stap
|