diff options
author | gnn <gnn@FreeBSD.org> | 2014-07-26 20:11:36 +0000 |
---|---|---|
committer | gnn <gnn@FreeBSD.org> | 2014-07-26 20:11:36 +0000 |
commit | 0ce768e27cb3928d44e59d2c8121082104c3d404 (patch) | |
tree | 1ef710ff8d1212c94d36884ae15faabc0c9f031f /cddl | |
parent | 2a20430531617253ee58b0bf8f047e6b87f4ed94 (diff) | |
download | FreeBSD-src-0ce768e27cb3928d44e59d2c8121082104c3d404.zip FreeBSD-src-0ce768e27cb3928d44e59d2c8121082104c3d404.tar.gz |
Since we cannot yet display the name print the file descriptor so that
it can be looked up manually using procstat(1).
Diffstat (limited to 'cddl')
-rwxr-xr-x | cddl/contrib/dtracetoolkit/rwsnoop | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cddl/contrib/dtracetoolkit/rwsnoop b/cddl/contrib/dtracetoolkit/rwsnoop index c213f27..bc5f0ce 100755 --- a/cddl/contrib/dtracetoolkit/rwsnoop +++ b/cddl/contrib/dtracetoolkit/rwsnoop @@ -152,7 +152,7 @@ fi OPT_jailid ? printf("%5s ", "JAILID") : 1; OPT_ppid ? printf("%6s ", "PPID") : 1; printf("%5s %6s %-12s %1s %7s %s\n", - "UID", "PID", "CMD", "D", "BYTES", "FILE"); + "UID", "PID", "CMD", "FD", "D", "BYTES"); } /* @@ -221,8 +221,8 @@ fi OPT_timestr ? printf("%-20Y ", walltimestamp) : 1; OPT_jailid ? printf("%5d ", curpsinfo->pr_jailid) : 1; OPT_ppid ? printf("%6d ", ppid) : 1; - printf("%5d %6d %-12.12s %1s %7d \n", - uid, pid, execname, self->rw, (int)self->size); + printf("%5d %6d %-12.12s %4d %1s %7d\n", + uid, pid, execname, self->fd, self->rw, (int)self->size); self->ok = 0; self->fd = 0; |