Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 remove "machine vmstat" command, since "s...



details:   https://anonhg.NetBSD.org/src/rev/83c377e4d4d4
branches:  trunk
changeset: 511674:83c377e4d4d4
user:      chs <chs%NetBSD.org@localhost>
date:      Sun Jun 24 07:32:20 2001 +0000

description:
remove "machine vmstat" command, since "show uvmexp" does the same thing.

diffstat:

 sys/arch/arm/arm32/db_interface.c |   4 +--
 sys/arch/arm/arm32/db_machdep.c   |  53 +--------------------------------------
 2 files changed, 2 insertions(+), 55 deletions(-)

diffs (92 lines):

diff -r bf36de32aa6f -r 83c377e4d4d4 sys/arch/arm/arm32/db_interface.c
--- a/sys/arch/arm/arm32/db_interface.c Sun Jun 24 05:34:07 2001 +0000
+++ b/sys/arch/arm/arm32/db_interface.c Sun Jun 24 07:32:20 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_interface.c,v 1.5 2001/05/02 19:10:29 bjh21 Exp $   */
+/*     $NetBSD: db_interface.c,v 1.6 2001/06/24 07:32:20 chs Exp $     */
 
 /* 
  * Copyright (c) 1996 Scott K. Stevens
@@ -301,7 +301,6 @@
        asm(".word      0xe7ffffff");
 }
 
-void db_show_vmstat_cmd __P((db_expr_t addr, int have_addr, db_expr_t count, char *modif));
 void db_show_intrchain_cmd     __P((db_expr_t addr, int have_addr, db_expr_t count, char *modif));
 void db_show_panic_cmd __P((db_expr_t addr, int have_addr, db_expr_t count, char *modif));
 void db_show_frame_cmd __P((db_expr_t addr, int have_addr, db_expr_t count, char *modif));
@@ -310,7 +309,6 @@
        { "frame",      db_show_frame_cmd,      0, NULL },
        { "intrchain",  db_show_intrchain_cmd,  0, NULL },
        { "panic",      db_show_panic_cmd,      0, NULL },
-       { "vmstat",     db_show_vmstat_cmd,     0, NULL },
 #ifdef ARM32_DB_COMMANDS
        ARM32_DB_COMMANDS,
 #endif
diff -r bf36de32aa6f -r 83c377e4d4d4 sys/arch/arm/arm32/db_machdep.c
--- a/sys/arch/arm/arm32/db_machdep.c   Sun Jun 24 05:34:07 2001 +0000
+++ b/sys/arch/arm/arm32/db_machdep.c   Sun Jun 24 07:32:20 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_machdep.c,v 1.2 2001/03/04 05:40:03 matt Exp $      */
+/*     $NetBSD: db_machdep.c,v 1.3 2001/06/24 07:32:20 chs Exp $       */
 
 /* 
  * Copyright (c) 1996 Mark Brinicombe
@@ -42,57 +42,6 @@
 #include <machine/irqhandler.h>
 
 void
-db_show_vmstat_cmd(addr, have_addr, count, modif)
-       db_expr_t       addr;
-       int             have_addr;
-       db_expr_t       count;
-       char            *modif;
-{
-
-       db_printf("Current UVM status:\n");
-       db_printf("  pagesize=%d (0x%x), pagemask=0x%x, pageshift=%d\n",
-           uvmexp.pagesize, uvmexp.pagesize, uvmexp.pagemask,
-           uvmexp.pageshift);
-       db_printf("  %d VM pages: %d active, %d inactive, %d wired, %d free\n",
-           uvmexp.npages, uvmexp.active, uvmexp.inactive, uvmexp.wired,
-           uvmexp.free);
-       db_printf("  freemin=%d, free-target=%d, inactive-target=%d, "
-           "wired-max=%d\n", uvmexp.freemin, uvmexp.freetarg, uvmexp.inactarg,
-           uvmexp.wiredmax);
-       db_printf("  faults=%d, traps=%d, intrs=%d, ctxswitch=%d\n",
-           uvmexp.faults, uvmexp.traps, uvmexp.intrs, uvmexp.swtch);
-       db_printf("  softint=%d, syscalls=%d, swapins=%d, swapouts=%d\n",
-           uvmexp.softs, uvmexp.syscalls, uvmexp.swapins, uvmexp.swapouts);
-
-       db_printf("  fault counts:\n");
-       db_printf("    noram=%d, noanon=%d, pgwait=%d, pgrele=%d\n",
-           uvmexp.fltnoram, uvmexp.fltnoanon, uvmexp.fltpgwait,
-           uvmexp.fltpgrele);
-       db_printf("    ok relocks(total)=%d(%d), anget(retrys)=%d(%d), "
-           "amapcopy=%d\n", uvmexp.fltrelckok, uvmexp.fltrelck,
-           uvmexp.fltanget, uvmexp.fltanretry, uvmexp.fltamcopy);
-       db_printf("    neighbor anon/obj pg=%d/%d, gets(lock/unlock)=%d/%d\n",
-           uvmexp.fltnamap, uvmexp.fltnomap, uvmexp.fltlget, uvmexp.fltget);
-       db_printf("    cases: anon=%d, anoncow=%d, obj=%d, prcopy=%d, przero=%d\n",
-           uvmexp.flt_anon, uvmexp.flt_acow, uvmexp.flt_obj, uvmexp.flt_prcopy,
-           uvmexp.flt_przero);
-
-       db_printf("  daemon and swap counts:\n");
-       db_printf("    woke=%d, revs=%d, scans=%d, swout=%d\n", uvmexp.pdwoke,
-           uvmexp.pdrevs, uvmexp.pdscans, uvmexp.pdswout);
-       db_printf("    busy=%d, freed=%d, reactivate=%d, deactivate=%d\n",
-           uvmexp.pdbusy, uvmexp.pdfreed, uvmexp.pdreact, uvmexp.pddeact);
-       db_printf("    pageouts=%d, pending=%d, nswget=%d\n", uvmexp.pdpageouts,
-           uvmexp.pdpending, uvmexp.nswget);
-       db_printf("    nswapdev=%d, nanon=%d, nfreeanon=%d\n", uvmexp.nswapdev,
-           uvmexp.nanon, uvmexp.nfreeanon);
-
-       db_printf("  kernel pointers:\n");
-       db_printf("    objs(kmem/mb)=%p/%p\n", uvmexp.kmem_object,
-           uvmexp.mb_object);
-}
-
-void
 db_show_intrchain_cmd(addr, have_addr, count, modif)
        db_expr_t       addr;
        int             have_addr;



Home | Main Index | Thread Index | Old Index