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/usdt/tst.dlclose3.ksh
          +++ new/usr/src/cmd/dtrace/test/tst/common/usdt/tst.dlclose3.ksh
↓ open down ↓ 37 lines elided ↑ open up ↑
  38   38  dtrace=$1
  39   39  DIR=/var/tmp/dtest.$$
  40   40  
  41   41  mkdir $DIR
  42   42  cd $DIR
  43   43  
  44   44  cat > Makefile <<EOF
  45   45  all: main livelib.so deadlib.so
  46   46  
  47   47  main: main.o prov.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  
  54   54  livelib.so: livelib.o prov.o
  55      -        gcc -shared -o livelib.so livelib.o prov.o -lc
       55 +        gcc -m32 -shared -o livelib.so livelib.o prov.o -lc
  56   56  
  57   57  livelib.o: livelib.c prov.h
  58      -        gcc -c livelib.c
       58 +        gcc -m32 -fPIC -c livelib.c
  59   59  
  60   60  prov.o: livelib.o prov.d
  61   61          $dtrace -G -s prov.d livelib.o
  62   62  
  63   63  prov.h: prov.d
  64   64          $dtrace -h -s prov.d
  65   65  
  66   66  
  67   67  deadlib.so: deadlib.o
  68      -        gcc -shared -o deadlib.so deadlib.o -lc
       68 +        gcc -m32 -shared -o deadlib.so deadlib.o -lc
  69   69  
  70   70  deadlib.o: deadlib.c
  71      -        gcc -c deadlib.c
       71 +        gcc -m32 -fPIC -c deadlib.c
  72   72  
  73   73  clean:
  74   74          rm -f main.o livelib.o prov.o prov.h deadlib.o
  75   75  
  76   76  clobber: clean
  77   77          rm -f main livelib.so deadlib.so
  78   78  EOF
  79   79  
  80   80  cat > prov.d <<EOF
  81   81  provider test_prov {
↓ open down ↓ 88 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX