Print this page
4474 DTrace Userland CTF Support
4475 DTrace userland Keyword
4476 DTrace tests should be better citizens
4479 pid provider types
4480 dof emulation missing checks
Reviewed by: Bryan Cantrill <bryan@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/dtrace/test/tst/common/pid/tst.provregex4.ksh
          +++ new/usr/src/cmd/dtrace/test/tst/common/pid/tst.provregex4.ksh
↓ open down ↓ 38 lines elided ↑ open up ↑
  39   39  dtrace=$1
  40   40  DIR=${TMPDIR:-/tmp}/dtest.$$
  41   41  
  42   42  mkdir $DIR
  43   43  cd $DIR
  44   44  
  45   45  cat > Makefile <<EOF
  46   46  all: main altlib.so
  47   47  
  48   48  main: main.o provmain.o
  49      -        gcc -o main main.o provmain.o
       49 +        gcc -m32 -o main main.o provmain.o
  50   50  
  51   51  main.o: main.c prov.h
  52      -        gcc -c main.c
       52 +        gcc -m32 -c main.c
  53   53  
  54   54  prov.h: prov.d
  55   55          $dtrace -h -s prov.d
  56   56  
  57   57  provmain.o: prov.d main.o
  58   58          $dtrace -G -32 -o provmain.o -s prov.d main.o
  59   59  
  60   60  altlib.so: altlib.o provalt.o
  61      -        gcc -shared -o altlib.so altlib.o provalt.o -lc
       61 +        gcc -m32 -shared -o altlib.so altlib.o provalt.o -lc
  62   62  
  63   63  altlib.o: altlib.c prov.h
  64      -        gcc -c altlib.c
       64 +        gcc -m32 -c altlib.c
  65   65  
  66   66  provalt.o: prov.d altlib.o
  67   67          $dtrace -G -32 -o provalt.o -s prov.d altlib.o
  68   68  EOF
  69   69  
  70   70  cat > prov.d <<EOF
  71   71  provider pyramid {
  72   72          probe entry();
  73   73  };
  74   74  EOF
↓ open down ↓ 79 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX