Mike DeMarco
2010-11-19 14:07:01 UTC
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/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
4096 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
5120 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
4096 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
21504 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
2560 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
29184 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
29184 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
12288 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
4096 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <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/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
4096 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
5120 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
4096 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
21504 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
2560 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
29184 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
29184 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
12288 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
4096 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
--
This message posted from opensolaris.org
This message posted from opensolaris.org