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.enabled2.ksh
          +++ new/usr/src/cmd/dtrace/test/tst/common/usdt/tst.enabled2.ksh
↓ open down ↓ 68 lines elided ↑ open up ↑
  69   69          int a = foo();
  70   70          if (TEST_PROV_GO_ENABLED()) {
  71   71                  TEST_PROV_GO();
  72   72          }
  73   73          (void) printf("%d %d %d\n", a, a, a);
  74   74  
  75   75          return (0);
  76   76  }
  77   77  EOF
  78   78  
  79      -gcc -c test.c
       79 +gcc -m32 -c test.c
  80   80  if [ $? -ne 0 ]; then
  81   81          print -u2 "failed to compile test.c"
  82   82          exit 1
  83   83  fi
  84   84  $dtrace -G -32 -s prov.d test.o
  85   85  if [ $? -ne 0 ]; then
  86   86          print -u2 "failed to create DOF"
  87   87          exit 1
  88   88  fi
  89      -gcc -o test test.o prov.o
       89 +
       90 +gcc -m32 -o test test.o prov.o
  90   91  if [ $? -ne 0 ]; then
  91   92          print -u2 "failed to link final executable"
  92   93          exit 1
  93   94  fi
  94   95  
  95   96  script()
  96   97  {
  97   98          ./test
  98   99  
  99  100          $dtrace -c ./test -qs /dev/stdin <<EOF
↓ open down ↓ 13 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX