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.fork.ksh
          +++ new/usr/src/cmd/dtrace/test/tst/common/usdt/tst.fork.ksh
↓ open down ↓ 62 lines elided ↑ open up ↑
  63   63                  return (0);
  64   64          }
  65   65  
  66   66          (void) wait(NULL);
  67   67          TEST_PROV_GO();
  68   68  
  69   69          return (0);
  70   70  }
  71   71  EOF
  72   72  
  73      -gcc -c test.c
       73 +gcc -m32 -c test.c
  74   74  if [ $? -ne 0 ]; then
  75   75          print -u2 "failed to compile test.c"
  76   76          exit 1
  77   77  fi
  78   78  $dtrace -G -32 -s prov.d test.o
  79   79  if [ $? -ne 0 ]; then
  80   80          print -u2 "failed to create DOF"
  81   81          exit 1
  82   82  fi
  83      -gcc -o test test.o prov.o
       83 +gcc -m32 -o test test.o prov.o
  84   84  if [ $? -ne 0 ]; then
  85   85          print -u2 "failed to link final executable"
  86   86          exit 1
  87   87  fi
  88   88  
  89   89  script() {
  90   90          $dtrace -c ./test -Zqs /dev/stdin <<EOF
  91   91          test_prov*:::
  92   92          {
  93   93                  printf("%s:%s:%s\n", probemod, probefunc, probename);
↓ open down ↓ 11 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX