3 # This is an example of how to search for an interaction between
4 # two syscalls. In the example below I was chasing an oops in
5 # sendmsg that only occurred after connect was called.
8 TRINITY_PATH
=${TRINITY_PATH:-.}
9 TRINITY_TMP
=$
(mktemp
-d /tmp
/trinity.XXXXXX
)
13 if [ "$(cat /proc/sys/kernel/tainted)" != $TAINT ]; then
14 echo ERROR
: Taint flag changed $
(cat /proc
/sys
/kernel
/tainted
)
19 chmod 755 $TRINITY_TMP
22 TAINT
=$
(cat /proc
/sys
/kernel
/tainted
)
24 NR_CPUS
=`grep ^processor /proc/cpuinfo | /usr/bin/wc -l`
30 for sc
in $
($TRINITY_PATH/trinity
-L |
grep entrypoint |
grep -v AVOID |
awk '{ print $3 }' |
sort -u)
35 if [ ! -f $TRINITY_PATH/trinity
]; then
41 $TRINITY_PATH/trinity
-q -l off
-n -c sendmsg
-c $sc -C32 -N 999999
47 chmod 755 $TRINITY_TMP