allow ubchist to be printed from the uvmhist merging uvm_hist()

This commit is contained in:
mrg 2001-02-04 10:55:58 +00:00
parent 0c151f32c8
commit 6e26ebea51
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: uvm_stat.c,v 1.16 2000/12/01 09:48:56 chs Exp $ */
/* $NetBSD: uvm_stat.c,v 1.17 2001/02/04 10:55:58 mrg Exp $ */
/*
*
@ -182,6 +182,9 @@ uvm_hist(bitmask)
if ((bitmask & UVMHIST_PDHIST) || bitmask == 0)
hists[i++] = &pdhist;
if ((bitmask & UVMHIST_UBCHIST) || bitmask == 0)
hists[i++] = &ubchist;
hists[i] = NULL;
uvmhist_dump_histories(hists);

View File

@ -1,4 +1,4 @@
/* $NetBSD: uvm_stat.h,v 1.18 2000/04/11 08:12:14 pk Exp $ */
/* $NetBSD: uvm_stat.h,v 1.19 2001/02/04 10:55:58 mrg Exp $ */
/*
*
@ -134,6 +134,7 @@ LIST_HEAD(uvm_history_head, uvm_history);
/* and these are the bit values of each history */
#define UVMHIST_MAPHIST 0x00000001 /* maphist */
#define UVMHIST_PDHIST 0x00000002 /* pdhist */
#define UVMHIST_UBCHIST 0x00000004 /* ubchist */
#ifdef _KERNEL