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