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.eliminate.ksh
          +++ new/usr/src/cmd/dtrace/test/tst/common/usdt/tst.eliminate.ksh
↓ open down ↓ 63 lines elided ↑ open up ↑
  64   64  
  65   65  int
  66   66  main(int argc, char **argv)
  67   67  {
  68   68          foo();
  69   69  
  70   70          return (0);
  71   71  }
  72   72  EOF
  73   73  
  74      -gcc -c test.c
       74 +gcc -m32 -c test.c
  75   75  if [ $? -ne 0 ]; then
  76   76          print -u2 "failed to compile test.c"
  77   77          exit 1
  78   78  fi
  79   79  $dtrace -G -32 -s prov.d test.o
  80   80  if [ $? -ne 0 ]; then
  81   81          print -u2 "failed to create DOF"
  82   82          exit 1
  83   83  fi
  84      -gcc -o test test.o prov.o
       84 +gcc -m32 -o test test.o prov.o
  85   85  if [ $? -ne 0 ]; then
  86   86          print -u2 "failed to link final executable"
  87   87          exit 1
  88   88  fi
  89   89  
  90   90  nm test.o | grep \$dtrace > /dev/null
  91   91  if [ $? -ne 0 ]; then
  92   92          print -u2 "no temporary symbols in the object file"
  93   93          exit 1
  94   94  fi
↓ open down ↓ 11 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX