Print this page
2915 DTrace in a zone should see "cpu", "curpsinfo", et al
2916 DTrace in a zone should be able to access fds[]
2917 DTrace in a zone should have limited provider access
Reviewed by: Joshua M. Clulow <josh@sysmgr.org>
Reviewed by: Adam Leventhal <ahl@delphix.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/dtrace/test/tst/common/aggs/tst.subr.d
          +++ new/usr/src/cmd/dtrace/test/tst/common/aggs/tst.subr.d
↓ open down ↓ 90 lines elided ↑ open up ↑
  91   91  INTFUNC(htonl(0x12345678))
  92   92  INTFUNC(htonll(0x1234567890abcdefL))
  93   93  INTFUNC(ntohs(0x1234))
  94   94  INTFUNC(ntohl(0x12345678))
  95   95  INTFUNC(ntohll(0x1234567890abcdefL))
  96   96  STRFUNC(inet_ntoa((ipaddr_t *)alloca(sizeof (ipaddr_t))))
  97   97  STRFUNC(inet_ntoa6((in6_addr_t *)alloca(sizeof (in6_addr_t))))
  98   98  STRFUNC(inet_ntop(AF_INET, (void *)alloca(sizeof (ipaddr_t))))
  99   99  STRFUNC(toupper("foo"))
 100  100  STRFUNC(tolower("BAR"))
      101 +INTFUNC(getf(0))
 101  102  
 102  103  BEGIN
 103  104  /subr == DIF_SUBR_MAX + 1/
 104  105  {
 105  106          exit(0);
 106  107  }
 107  108  
 108  109  BEGIN
 109  110  {
 110  111          printf("found %d subroutines, expected %d\n", subr, DIF_SUBR_MAX + 1);
 111  112          exit(1);
 112  113  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX