29 fi
30
31 dtrace=$1
32 DIR=/var/tmp/dtest.$$
33
34 mkdir $DIR
35 cd $DIR
36
37 cat > test.c <<EOF
38 void
39 foo()
40 {}
41 EOF
42
43 cat > doogle.d <<EOF
44 provider doogle {
45 probe bagnoogle();
46 };
47 EOF
48
49 cc -c test.c
50 $dtrace -G -32 -s doogle.d test.o -o doogle.d.o
51
52 if [ $? -eq 0 ]; then
53 print -u2 "dtrace succeeded despite having no probe sites"
54 exit 1
55 fi
56
57 cd /
58 /usr/bin/rm -rf $DIR
59 exit 0
|
29 fi
30
31 dtrace=$1
32 DIR=/var/tmp/dtest.$$
33
34 mkdir $DIR
35 cd $DIR
36
37 cat > test.c <<EOF
38 void
39 foo()
40 {}
41 EOF
42
43 cat > doogle.d <<EOF
44 provider doogle {
45 probe bagnoogle();
46 };
47 EOF
48
49 gcc -m32 -c test.c
50 $dtrace -G -32 -s doogle.d test.o -o doogle.d.o
51
52 if [ $? -eq 0 ]; then
53 print -u2 "dtrace succeeded despite having no probe sites"
54 exit 1
55 fi
56
57 cd /
58 /usr/bin/rm -rf $DIR
59 exit 0
|