Print this page
XXX Remove nawk(1)

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/dtrace/test/tst/i86xpv/xdt/tst.schedargs.ksh
          +++ new/usr/src/cmd/dtrace/test/tst/i86xpv/xdt/tst.schedargs.ksh
↓ open down ↓ 53 lines elided ↑ open up ↑
  54   54          xdt:sched::yield
  55   55          {
  56   56                  /* print domid vcpu pcpu probename */
  57   57                  printf("%d %d %d %s\n", arg0, arg1, \`xdt_curpcpu, probename);
  58   58          }
  59   59  EOF
  60   60  }
  61   61  
  62   62  validate()
  63   63  {
  64      -        /usr/bin/nawk '
       64 +        /usr/xpg4/bin/awk '
  65   65          BEGIN {
  66   66                  while (("/usr/sbin/xm vcpu-list" | getline)) {
  67   67                          if ($1 != "Name") {
  68   68                                  domid = $2
  69   69                                  vcpu = $3
  70   70  
  71   71                                  vcpumap[domid, vcpu] = 1
  72   72  
  73   73                                  split($7, affinity, ",")
  74   74                                  for (i in affinity) {
↓ open down ↓ 47 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX