diff options
author | jake <jake@FreeBSD.org> | 2001-09-03 22:57:21 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2001-09-03 22:57:21 +0000 |
commit | e6fc6fd6cdf1eed8ba1102758d7957a82d75b37f (patch) | |
tree | 02ab6802eeb3467b32c9773a56fb449249fcbe1f /sys/sparc64/include/tlb.h | |
parent | 6ef2965afd99ca4253363bec6a9c0c6fd51f3e83 (diff) | |
download | FreeBSD-src-e6fc6fd6cdf1eed8ba1102758d7957a82d75b37f.zip FreeBSD-src-e6fc6fd6cdf1eed8ba1102758d7957a82d75b37f.tar.gz |
Add ktr traces.
Diffstat (limited to 'sys/sparc64/include/tlb.h')
-rw-r--r-- | sys/sparc64/include/tlb.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/sparc64/include/tlb.h b/sys/sparc64/include/tlb.h index e6ff29a..b3d0ac4 100644 --- a/sys/sparc64/include/tlb.h +++ b/sys/sparc64/include/tlb.h @@ -29,6 +29,8 @@ #ifndef _MACHINE_TLB_H_ #define _MACHINE_TLB_H_ +#include <sys/ktr.h> + #define TLB_SLOT_COUNT 64 #define TLB_SLOT_TSB_KERNEL_MIN 60 /* XXX */ @@ -161,6 +163,7 @@ tlb_itlb_store_slot(vm_offset_t va, u_long ctx, struct tte tte, int slot) static __inline void tlb_page_demap(u_int tlb, u_int ctx, vm_offset_t va) { + CTR3(KTR_CT1, "tlb_page_demap: tlb=%#x ctx=%#lx va=%#lx", tlb, ctx, va); if (tlb & TLB_DTLB) tlb_dtlb_page_demap(ctx, va); if (tlb & TLB_ITLB) @@ -170,6 +173,8 @@ tlb_page_demap(u_int tlb, u_int ctx, vm_offset_t va) static __inline void tlb_store(u_int tlb, vm_offset_t va, u_long ctx, struct tte tte) { + CTR4(KTR_CT1, "tlb_store: tlb=%#x va=%#lx ctx=%#lx data=%#lx", + tlb, va, ctx, tte.tte_data); if (tlb & TLB_DTLB) tlb_dtlb_store(va, ctx, tte); if (tlb & TLB_ITLB) @@ -179,6 +184,9 @@ tlb_store(u_int tlb, vm_offset_t va, u_long ctx, struct tte tte) static __inline void tlb_store_slot(u_int tlb, vm_offset_t va, u_long ctx, struct tte tte, int slot) { + CTR5(KTR_CT1, + "tlb_store_slot: tlb=%d va=%#lx ctx=%#lx data=%#lx slot=%d", + tlb, va, ctx, tte.tte_data, slot); if (tlb & TLB_DTLB) tlb_dtlb_store_slot(va, ctx, tte, slot); if (tlb & TLB_ITLB) |