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.noreapring.ksh
          +++ new/usr/src/cmd/dtrace/test/tst/common/usdt/tst.noreapring.ksh
↓ open down ↓ 43 lines elided ↑ open up ↑
  44   44          DTRACE_PROBE(test_prov, probe1);
  45   45  }
  46   46  EOF
  47   47  
  48   48  cat > prov.d <<EOF
  49   49  provider test_prov {
  50   50          probe probe1();
  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 +
       65 +gcc -m32 -o test test.o prov.o
  65   66  if [ $? -ne 0 ]; then
  66   67          print -u2 "failed to link final executable"
  67   68          exit 1
  68   69  fi
  69   70  
  70   71  script()
  71   72  {
  72   73          $dtrace -Zwqs /dev/stdin <<EOF
  73   74          test_prov*:::
  74   75          {
↓ open down ↓ 50 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX