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.provregex3.ksh
          +++ new/usr/src/cmd/dtrace/test/tst/common/pid/tst.provregex3.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
  47   47  
  48   48  main: main.o prov.o
  49      -        gcc -o main main.o prov.o
       49 +        gcc -m32 -o main main.o prov.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  prov.o: prov.d main.o
  58   58          $dtrace -G -32 -s prov.d main.o
  59   59  EOF
  60   60  
  61   61  cat > prov.d <<EOF
  62   62  provider pyramid {
↓ open down ↓ 39 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX