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