Mike DeMarco
2010-Nov-19 14:07 UTC
[dtrace-discuss] fileinfo structures returns no information
I can not get any information out of the fileinfo structure. A simple program that should give me the io fileinformation always returns <none> #pragma D option quiet io:::start { printf ("%5d %4d %4d %30s %30s\n", args[0]->b_bcount, args[1]->dev_major, args[1]->dev_minor, args[1]->dev_pathname, args[2]->fi_pathname); } 4096 83 18 /devices/pci at 0,0/pci1558,860 at 1f,2/disk at 0,0:s <none> 4096 83 18 /devices/pci at 0,0/pci1558,860 at 1f,2/disk at 0,0:s <none> 5120 83 18 /devices/pci at 0,0/pci1558,860 at 1f,2/disk at 0,0:s <none> 4096 83 18 /devices/pci at 0,0/pci1558,860 at 1f,2/disk at 0,0:s <none> 21504 83 18 /devices/pci at 0,0/pci1558,860 at 1f,2/disk at 0,0:s <none> 2560 83 18 /devices/pci at 0,0/pci1558,860 at 1f,2/disk at 0,0:s <none> 29184 83 18 /devices/pci at 0,0/pci1558,860 at 1f,2/disk at 0,0:s <none> 29184 83 18 /devices/pci at 0,0/pci1558,860 at 1f,2/disk at 0,0:s <none> 12288 83 18 /devices/pci at 0,0/pci1558,860 at 1f,2/disk at 0,0:s <none> 4096 83 18 /devices/pci at 0,0/pci1558,860 at 1f,2/disk at 0,0:s <none> -- This message posted from opensolaris.org
Angelo Rajadurai
2010-Nov-19 14:50 UTC
[dtrace-discuss] fileinfo structures returns no information
Hey Mike: Are you on trying this on a ZFS file system? See discussion here for a possible solution. http://www.opensolaris.org/jive/thread.jspa?messageID=497295 -Angelo On Nov 19, 2010, at 9:07 AM, Mike DeMarco wrote:> I can not get any information out of the fileinfo structure. A simple program that should give me the io fileinformation always returns <none> > > #pragma D option quiet > io:::start > { > printf ("%5d %4d %4d %30s %30s\n", args[0]->b_bcount, > args[1]->dev_major, args[1]->dev_minor, > args[1]->dev_pathname, args[2]->fi_pathname); > } > > > 4096 83 18 /devices/pci at 0,0/pci1558,860 at 1f,2/disk at 0,0:s <none> > 4096 83 18 /devices/pci at 0,0/pci1558,860 at 1f,2/disk at 0,0:s <none> > 5120 83 18 /devices/pci at 0,0/pci1558,860 at 1f,2/disk at 0,0:s <none> > 4096 83 18 /devices/pci at 0,0/pci1558,860 at 1f,2/disk at 0,0:s <none> > 21504 83 18 /devices/pci at 0,0/pci1558,860 at 1f,2/disk at 0,0:s <none> > 2560 83 18 /devices/pci at 0,0/pci1558,860 at 1f,2/disk at 0,0:s <none> > 29184 83 18 /devices/pci at 0,0/pci1558,860 at 1f,2/disk at 0,0:s <none> > 29184 83 18 /devices/pci at 0,0/pci1558,860 at 1f,2/disk at 0,0:s <none> > 12288 83 18 /devices/pci at 0,0/pci1558,860 at 1f,2/disk at 0,0:s <none> > 4096 83 18 /devices/pci at 0,0/pci1558,860 at 1f,2/disk at 0,0:s <none> > -- > This message posted from opensolaris.org > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org