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.entryreturn.ksh
          +++ new/usr/src/cmd/dtrace/test/tst/common/usdt/tst.entryreturn.ksh
↓ open down ↓ 61 lines elided ↑ open up ↑
  62   62          probe __entry();
  63   63          probe foo__entry();
  64   64          probe carpentry();
  65   65          probe miniatureturn();
  66   66          probe foo__return();
  67   67          probe __return();
  68   68          probe done();
  69   69  };
  70   70  EOF
  71   71  
  72      -gcc -c test.c
       72 +gcc -m32 -c test.c
  73   73  if [ $? -ne 0 ]; then
  74   74          print -u2 "failed to compile test.c"
  75   75          exit 1
  76   76  fi
  77   77  $dtrace -G -32 -s prov.d test.o
  78   78  if [ $? -ne 0 ]; then
  79   79          print -u2 "failed to create DOF"
  80   80          exit 1
  81   81  fi
  82      -gcc -o test test.o prov.o
       82 +gcc -m32 -o test test.o prov.o
  83   83  if [ $? -ne 0 ]; then
  84   84          print -u2 "failed to link final executable"
  85   85          exit 1
  86   86  fi
  87   87  
  88   88  script()
  89   89  {
  90   90          $dtrace -wqZFs /dev/stdin <<EOF
  91   91          BEGIN
  92   92          {
↓ open down ↓ 25 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX