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.linkunpriv.ksh
          +++ new/usr/src/cmd/dtrace/test/tst/common/usdt/tst.linkunpriv.ksh
↓ open down ↓ 55 lines elided ↑ open up ↑
  56   56  provider test_prov {
  57   57          probe zero();
  58   58          probe one(uintptr_t);
  59   59          probe two(uintptr_t, uintptr_t);
  60   60          probe three(uintptr_t, uintptr_t, uintptr_t);
  61   61          probe four(uintptr_t, uintptr_t, uintptr_t, uintptr_t);
  62   62          probe five(uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t);
  63   63  };
  64   64  EOF
  65   65  
  66      -gcc -c test.c
       66 +gcc -m32 -c test.c
  67   67  if [ $? -ne 0 ]; then
  68   68          print -u2 "failed to compile test.c"
  69   69          exit 1
  70   70  fi
  71   71  $dtrace -G -32 -s prov.d test.o
  72   72  if [ $? -ne 0 ]; then
  73   73          print -u2 "failed to create DOF"
  74   74          exit 1
  75   75  fi
  76      -gcc -o test test.o prov.o
       76 +gcc -m32 -o test test.o prov.o
  77   77  if [ $? -ne 0 ]; then
  78   78          print -u2 "failed to link final executable"
  79   79          exit 1
  80   80  fi
  81   81  
  82   82  cd /
  83   83  /usr/bin/rm -rf $DIR
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX