On Wed, Dec 15, 2010 at 4:23 PM, Drew Balfour <andrew.balf...@oracle.com> wrote: > Howdy all, > > I'm trying to run dtrace in an on10 branded zone on an onnv machine: > > # zoneadm list -v > ID NAME STATUS PATH BRAND IP > 0 global running / ipkg > shared > 10 zfstestzone running /export/home/zfstestzone solaris10 > shared > > I've given the zone dtrace privs: > > # zonecfg -z zfstestzone info limitpriv > limitpriv: default,dtrace_proc,dtrace_user > > but it doesn't seem to work: > > # zlogin -l root zfstestzone > [Connected to zone 'zfstestzone' pts/7] > Last login: Wed Dec 15 08:14:17 on pts/7 > Oracle Corporation SunOS 5.10 Generic Patch January 2005 > You have new mail. > # dtrace -l | grep " stat " > 78297 syscall stat entry > 78298 syscall stat return > > # dtrace -n 'syscall::stat:*' -c 'ls /'dtrace: description 'syscall::stat:*' > matched 2 probes > bin export mnt > proc ts-auto-pool.dat > boot home net > rpool usr > core kernel opt > sbin var > dev lib output.stf_execute.7348 > system zfs-test-run.sh > etc lost+found platform > tmp zonepool > dtrace: pid 4879 has exited > # > > Am I missing something? Is it not supposed to work, or is this a bug? > Nothing popped up in either a bug search, or a mail archive search.
Widening the net a little bit to show all system calls that it is doing may give a bit more of a hint. It looks to me that you should be looking for fstatat64 system calls. Notice I added -F to the ls options to force a stat of each directory entry. This is running on bits a little newer than Solaris 11 Express. # uname -a SunOS s10-1 5.10 Generic_Virtual i86pc i386 i86pc # dtrace -n 'syscall:::entry /pid == $target/ { trace(probefunc) }' -c 'ls -F /' dtrace: description 'syscall:::entry ' matched 232 probes <ls output trimmed> dtrace: pid 273611 has exited CPU ID FUNCTION:NAME 2 29 write:entry write 2 29 write:entry write 2 29 write:entry write 2 29 write:entry write 2 29 write:entry write 2 29 write:entry write 2 29 write:entry write 2 29 write:entry write 2 29 write:entry write 2 29 write:entry write 2 29 write:entry write 2 29 write:entry write 2 29 write:entry write 2 29 write:entry write 2 29 write:entry write 2 25 rexit:entry rexit 3 259 munmap:entry munmap 3 225 setcontext:entry setcontext 3 275 getrlimit:entry getrlimit 3 83 getpid:entry getpid 3 225 setcontext:entry setcontext 3 255 mmap:entry mmap 3 137 sysi86:entry sysi86 3 77 brk:entry brk 3 77 brk:entry brk 3 69 gtime:entry gtime 3 141 ioctl:entry ioctl 3 291 sysconfig:entry sysconfig 3 141 ioctl:entry ioctl 3 77 brk:entry brk 3 77 brk:entry brk 3 167 fstatat64:entry fstatat64 3 169 openat:entry openat 3 157 fcntl:entry fcntl 3 167 fstatat64:entry fstatat64 3 359 brandsys:entry brandsys 3 427 getdents64:entry getdents64 3 167 fstatat64:entry fstatat64 3 167 fstatat64:entry fstatat64 3 167 fstatat64:entry fstatat64 3 167 fstatat64:entry fstatat64 3 167 fstatat64:entry fstatat64 ... -- Mike Gerdts http://mgerdts.blogspot.com/ _______________________________________________ dtrace-discuss mailing list dtrace-discuss@opensolaris.org