Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Add tape statistics gathering functions.



details:   https://anonhg.NetBSD.org/src/rev/136b26697e05
branches:  trunk
changeset: 583461:136b26697e05
user:      blymn <blymn%NetBSD.org@localhost>
date:      Sun Aug 07 12:28:34 2005 +0000

description:
Add tape statistics gathering functions.

diffstat:

 sys/kern/init_sysctl.c |  16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r d152474650e1 -r 136b26697e05 sys/kern/init_sysctl.c
--- a/sys/kern/init_sysctl.c    Sun Aug 07 12:25:08 2005 +0000
+++ b/sys/kern/init_sysctl.c    Sun Aug 07 12:28:34 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init_sysctl.c,v 1.48 2005/07/29 14:49:00 elad Exp $ */
+/*     $NetBSD: init_sysctl.c,v 1.49 2005/08/07 12:28:34 blymn Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.48 2005/07/29 14:49:00 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.49 2005/08/07 12:28:34 blymn Exp $");
 
 #include "opt_sysv.h"
 #include "opt_multiprocessor.h"
@@ -893,6 +893,18 @@
                       CTL_HW, HW_DISKSTATS, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT,
+                      CTLTYPE_STRING, "tapenames",
+                      SYSCTL_DESCR("List of tape devices present"),
+                      sysctl_hw_tapenames, 0, NULL, 0,
+                      CTL_HW, HW_TAPENAMES, CTL_EOL);
+       sysctl_createv(clog, 0, NULL, NULL,
+                      CTLFLAG_PERMANENT,
+                      CTLTYPE_STRUCT, "tapestats",
+                      SYSCTL_DESCR("Statistics on tape drive operation"),
+                      sysctl_hw_tapestats, 0, NULL, 0,
+                      CTL_HW, HW_TAPESTATS, CTL_EOL);
+       sysctl_createv(clog, 0, NULL, NULL,
+                      CTLFLAG_PERMANENT,
                       CTLTYPE_STRING, "machine_arch",
                       SYSCTL_DESCR("Machine CPU class"),
                       NULL, 0, machine_arch, 0,



Home | Main Index | Thread Index | Old Index