Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm/pmap extend the pmap_activate/pmap_deactivate UVMHIS...
details: https://anonhg.NetBSD.org/src/rev/e8209ed4bf09
branches: trunk
changeset: 349221:e8209ed4bf09
user: mrg <mrg%NetBSD.org@localhost>
date: Thu Dec 01 02:15:08 2016 +0000
description:
extend the pmap_activate/pmap_deactivate UVMHIST logs to include the
pid, lid, and either l_name or p_comm.
diffstat:
sys/uvm/pmap/pmap.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diffs (58 lines):
diff -r b5b3c7a4eebb -r e8209ed4bf09 sys/uvm/pmap/pmap.c
--- a/sys/uvm/pmap/pmap.c Thu Dec 01 02:12:21 2016 +0000
+++ b/sys/uvm/pmap/pmap.c Thu Dec 01 02:15:08 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.24 2016/10/05 20:50:00 skrll Exp $ */
+/* $NetBSD: pmap.c,v 1.25 2016/12/01 02:15:08 mrg Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.24 2016/10/05 20:50:00 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.25 2016/12/01 02:15:08 mrg Exp $");
/*
* Manages physical address maps.
@@ -681,9 +681,11 @@
pmap_activate(struct lwp *l)
{
pmap_t pmap = l->l_proc->p_vmspace->vm_map.pmap;
+#define LNAME(l) \
+ ((l)->l_name ? (l)->l_name : (l)->l_proc->p_comm)
UVMHIST_FUNC(__func__); UVMHIST_CALLED(pmaphist);
- UVMHIST_LOG(pmaphist, "(l=%p (pmap=%p))", l, pmap, 0, 0);
+ UVMHIST_LOG(pmaphist, "(l=%p pmap=%p (%s))", l, pmap, LNAME(l), 0);
PMAP_COUNT(activate);
kpreempt_disable();
@@ -695,7 +697,7 @@
pmap_md_tlb_miss_lock_exit();
kpreempt_enable();
- UVMHIST_LOG(pmaphist, " <-- done", 0, 0, 0, 0);
+ UVMHIST_LOG(pmaphist, " <-- done (%u:%u)", l->l_proc->p_pid, l->l_lid, 0, 0);
}
/*
@@ -826,7 +828,7 @@
pmap_t pmap = l->l_proc->p_vmspace->vm_map.pmap;
UVMHIST_FUNC(__func__); UVMHIST_CALLED(pmaphist);
- UVMHIST_LOG(pmaphist, "(l=%p (pmap=%p))", l, pmap, 0, 0);
+ UVMHIST_LOG(pmaphist, "(l=%p pmap=%p (%s))", l, pmap, LNAME(l), 0);
PMAP_COUNT(deactivate);
kpreempt_disable();
@@ -840,7 +842,7 @@
pmap_md_tlb_miss_lock_exit();
kpreempt_enable();
- UVMHIST_LOG(pmaphist, " <-- done", 0, 0, 0, 0);
+ UVMHIST_LOG(pmaphist, " <-- done (%u:%u)", l->l_proc->p_pid, l->l_lid, 0, 0);
}
void
Home |
Main Index |
Thread Index |
Old Index