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.enabled.ksh
          +++ new/usr/src/cmd/dtrace/test/tst/common/usdt/tst.enabled.ksh
↓ open down ↓ 52 lines elided ↑ open up ↑
  53   53  
  54   54  int
  55   55  main(int argc, char **argv)
  56   56  {
  57   57          if (TEST_PROV_GO_ENABLED()) {
  58   58                  TEST_PROV_GO();
  59   59          }
  60   60  }
  61   61  EOF
  62   62  
  63      -gcc -c test.c
       63 +gcc -m32 -c test.c
  64   64  if [ $? -ne 0 ]; then
  65   65          print -u2 "failed to compile test.c"
  66   66          exit 1
  67   67  fi
  68   68  $dtrace -G -32 -s prov.d test.o
  69   69  if [ $? -ne 0 ]; then
  70   70          print -u2 "failed to create DOF"
  71   71          exit 1
  72   72  fi
  73      -gcc -o test test.o prov.o
       73 +gcc -m32 -o test test.o prov.o
  74   74  if [ $? -ne 0 ]; then
  75   75          print -u2 "failed to link final executable"
  76   76          exit 1
  77   77  fi
  78   78  
  79   79  script()
  80   80  {
  81   81          $dtrace -c ./test -qs /dev/stdin <<EOF
  82   82          test_prov\$target:::
  83   83          {
↓ open down ↓ 12 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX