diff options
author | csjp <csjp@FreeBSD.org> | 2005-08-23 00:06:04 +0000 |
---|---|---|
committer | csjp <csjp@FreeBSD.org> | 2005-08-23 00:06:04 +0000 |
commit | 29247e2d33c534830594685e04b2157d01319c93 (patch) | |
tree | 518c493006330dc6efaf9e7936cfd853000e9c3d | |
parent | f267b4783cc131b6a0cd8eb7bf81731173a35568 (diff) | |
download | FreeBSD-src-29247e2d33c534830594685e04b2157d01319c93.zip FreeBSD-src-29247e2d33c534830594685e04b2157d01319c93.tar.gz |
Add support for processing the "bd_locked" flag offered by the bpf
stats structure.
-rw-r--r-- | tools/tools/bpfstat/bpfstat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/tools/bpfstat/bpfstat.c b/tools/tools/bpfstat/bpfstat.c index 3e68f6b..d9a69df 100644 --- a/tools/tools/bpfstat/bpfstat.c +++ b/tools/tools/bpfstat/bpfstat.c @@ -116,7 +116,7 @@ bpfd_print_header(struct conf *conf) printf("%*s %*s %*s %*s %*s %*s %*s %*s %s\n", c->pd_width, "pid", 7, "netif", - 6, "flags", + 7, "flags", c->rc_width, "recv", c->dc_width, "drop", c->fc_width, "match", @@ -136,7 +136,7 @@ bpfd_print_row(struct xbpf_d *bd, struct conf *conf) printf("%*d %*s %*s %*lu %*lu %*lu %*d %*d %s\n", c->pd_width, bd->bd_pid, 7, bd->bd_ifname, - 6, flagbuf, + 7, flagbuf, c->rc_width, bd->bd_rcount, c->dc_width, bd->bd_dcount, c->fc_width, bd->bd_fcount, @@ -154,6 +154,7 @@ bpfd_parse_flags(struct xbpf_d *bd, char *flagbuf) *flagbuf++ = bd->bd_hdrcmplt ? '-' : 'f'; *flagbuf++ = bd->bd_seesent ? 's' : '.'; *flagbuf++ = bd->bd_async ? 'a' : '-'; + *flagbuf++ = bd->bd_locked ? 'l' : '-'; *flagbuf++ = '\0'; } |