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