File: tracepoint-diff

package info (click to toggle)
systemtap 2.6-0.2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 21,220 kB
  • ctags: 10,944
  • sloc: cpp: 53,239; ansic: 50,615; exp: 33,694; sh: 9,906; xml: 7,665; perl: 2,089; python: 1,534; tcl: 1,236; makefile: 797; java: 148; lisp: 104; awk: 94; asm: 91; sed: 16
file content (30 lines) | stat: -rw-r--r-- 728 bytes parent folder | download
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