Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/ibm4xx Remove evcnt(9) counter for tlbhit; ...
details: https://anonhg.NetBSD.org/src/rev/05228a55452c
branches: trunk
changeset: 935284:05228a55452c
user: rin <rin%NetBSD.org@localhost>
date: Mon Jun 29 06:51:32 2020 +0000
description:
Remove evcnt(9) counter for tlbhit; there's no way to observe TLB hits
from kernel, and it just counted intersection b/w tlbmiss and tlbenter.
diffstat:
sys/arch/powerpc/ibm4xx/pmap.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (41 lines):
diff -r b4648992e027 -r 05228a55452c sys/arch/powerpc/ibm4xx/pmap.c
--- a/sys/arch/powerpc/ibm4xx/pmap.c Mon Jun 29 06:39:38 2020 +0000
+++ b/sys/arch/powerpc/ibm4xx/pmap.c Mon Jun 29 06:51:32 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.88 2020/06/19 07:31:59 rin Exp $ */
+/* $NetBSD: pmap.c,v 1.89 2020/06/29 06:51:32 rin Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.88 2020/06/19 07:31:59 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.89 2020/06/29 06:51:32 rin Exp $");
#include <sys/param.h>
#include <sys/cpu.h>
@@ -123,14 +123,11 @@
/* Event counters */
struct evcnt tlbmiss_ev = EVCNT_INITIALIZER(EVCNT_TYPE_TRAP,
NULL, "cpu", "tlbmiss");
-struct evcnt tlbhit_ev = EVCNT_INITIALIZER(EVCNT_TYPE_TRAP,
- NULL, "cpu", "tlbhit");
struct evcnt tlbflush_ev = EVCNT_INITIALIZER(EVCNT_TYPE_TRAP,
NULL, "cpu", "tlbflush");
struct evcnt tlbenter_ev = EVCNT_INITIALIZER(EVCNT_TYPE_TRAP,
NULL, "cpu", "tlbenter");
EVCNT_ATTACH_STATIC(tlbmiss_ev);
-EVCNT_ATTACH_STATIC(tlbhit_ev);
EVCNT_ATTACH_STATIC(tlbflush_ev);
EVCNT_ATTACH_STATIC(tlbenter_ev);
@@ -1496,7 +1493,6 @@
tte = TTE_PA(va) | TTE_ZONE(ZONE_PRIV) | TTE_SZ_16M | TTE_WR;
#endif
}
- tlbhit_ev.ev_count++;
ppc4xx_tlb_enter(ctx, va, tte);
return 0;
Home |
Main Index |
Thread Index |
Old Index