extend the pmap_activate/pmap_deactivate UVMHIST logs to include the
pid, lid, and either l_name or p_comm.
This commit is contained in:
parent
a361e6a644
commit
1e9cf43a79
|
@ -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 @@ void
|
|||
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_activate(struct lwp *l)
|
|||
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_deactivate(struct lwp *l)
|
|||
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_deactivate(struct lwp *l)
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue