Why not just aggregate on the tuple <fd, file name>? Something like this:
syscall::read:entry
{
@c[arg0, fds[arg0].fi_pathname] = count();
}
If the output's unsatisfactory, you could always use a printa() in en
END clause to get it into the format you want.
Chad
On Tue, Aug 18, 2009 at 4:51 PM, <[email protected]> wrote:
>
> I just need to print the file descriptor number as a string. I would
> like to join fd and file name into one string and then aggregate on
> reads/writes
> reason I want to do this is, for sockets fi_pathname just shows up as
> "unknown" - instead if I can get fd, I can do pfiles and get the socket
> details ..
>
>
_______________________________________________
dtrace-discuss mailing list
[email protected]