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.reeval.ksh
          +++ new/usr/src/cmd/dtrace/test/tst/common/usdt/tst.reeval.ksh
↓ open down ↓ 43 lines elided ↑ open up ↑
  44   44          DTRACE_PROBE(test_prov, zero);
  45   45  }
  46   46  EOF
  47   47  
  48   48  cat > prov.d <<EOF
  49   49  provider test_prov {
  50   50          probe zero();
  51   51  };
  52   52  EOF
  53   53  
  54      -gcc -c test.c
       54 +gcc -m32 -c test.c
  55   55  if [ $? -ne 0 ]; then
  56   56          print -u2 "failed to compile test.c"
  57   57          exit 1
  58   58  fi
  59   59  $dtrace -G -32 -s prov.d test.o
  60   60  if [ $? -ne 0 ]; then
  61   61          print -u2 "failed to create DOF"
  62   62          exit 1
  63   63  fi
  64      -gcc -o test test.o prov.o
       64 +gcc -m32 -o test test.o prov.o
  65   65  if [ $? -ne 0 ]; then
  66   66          print -u2 "failed to link final executable"
  67   67          exit 1
  68   68  fi
  69   69  
  70   70  script()
  71   71  {
  72   72          $dtrace -wZs /dev/stdin <<EOF
  73   73          BEGIN
  74   74          {
↓ open down ↓ 23 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX