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.provregex2.ksh
          +++ new/usr/src/cmd/dtrace/test/tst/common/pid/tst.provregex2.ksh
↓ open down ↓ 37 lines elided ↑ open up ↑
  38   38  dtrace=$1
  39   39  DIR=${TMPDIR:-/tmp}/dtest.$$
  40   40  
  41   41  mkdir $DIR
  42   42  cd $DIR
  43   43  
  44   44  cat > Makefile <<EOF
  45   45  all: main altlib.so
  46   46  
  47   47  main: main.o
  48      -        gcc -o main main.o
       48 +        gcc -m32 -o main main.o
  49   49  
  50   50  main.o: main.c
  51      -        gcc -c main.c
       51 +        gcc -m32 -c main.c
  52   52  
  53   53  altlib.so: altlib.o
  54      -        gcc -shared -o altlib.so altlib.o -lc
       54 +        gcc -m32 -shared -o altlib.so altlib.o -lc
  55   55  
  56   56  altlib.o: altlib.c
  57      -        gcc -c altlib.c
       57 +        gcc -m32 -fPIC -c altlib.c
  58   58  EOF
  59   59  
  60   60  cat > altlib.c <<EOF
  61   61  void
  62   62  go(void)
  63   63  {
  64   64  }
  65   65  EOF
  66   66  
  67   67  cat > main.c <<EOF
↓ open down ↓ 63 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX