diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-11-10 13:26:29 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-11-10 13:26:29 +0000 |
commit | 3153d02ada4911492510b3ea6df3677b7125047e (patch) | |
tree | 566869d2699401ab48a9d5e586b5a8cd6f9689be /sys/kern/kern_descrip.c | |
parent | 38e261160058dcf237ee93651ca7f682a9fb8cbe (diff) | |
download | FreeBSD-src-3153d02ada4911492510b3ea6df3677b7125047e.zip FreeBSD-src-3153d02ada4911492510b3ea6df3677b7125047e.tar.gz |
Add the f_msgcount field to the set of struct file fields printed in show
files.
MFC after: 1 week
Diffstat (limited to 'sys/kern/kern_descrip.c')
-rw-r--r-- | sys/kern/kern_descrip.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index ee96376..b6704ba 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -2527,13 +2527,14 @@ DB_SHOW_COMMAND(files, db_show_files) struct file *fp; struct proc *p; - db_printf("%8s %4s %8s %8s %4s %5s %8s %5s %12s\n", "File", - "Type", "Data", "Flag", "GCFl", "Count", "Vnode", "FPID", "FCmd"); + db_printf("%8s %4s %8s %8s %4s %5s %6s %8s %5s %12s\n", "File", + "Type", "Data", "Flag", "GCFl", "Count", "MCount", "Vnode", + "FPID", "FCmd"); LIST_FOREACH(fp, &filehead, f_list) { p = file_to_first_proc(fp); - db_printf("%8p %4s %8p %08x %04x %5d %8p %5d %12s\n", fp, + db_printf("%8p %4s %8p %08x %04x %5d %6d %8p %5d %12s\n", fp, file_type_to_name(fp->f_type), fp->f_data, fp->f_flag, - fp->f_gcflag, fp->f_count, fp->f_vnode, + fp->f_gcflag, fp->f_count, fp->f_msgcount, fp->f_vnode, p != NULL ? p->p_pid : -1, p != NULL ? p->p_comm : "-"); } } |