chore: riscv/vspace: silence tracer

This commit is contained in:
Paul Pan 2024-08-22 14:41:09 +08:00
parent f32963ae74
commit 5a3f220a3e

View File

@ -15,7 +15,7 @@ fn alloc_callback() {
ALLOC_COUNT.fetch_add(1, core::sync::atomic::Ordering::SeqCst);
}
#[cfg_attr(debug_assertions, tracer::trace_callback(log = true, callback = alloc_callback))]
#[cfg_attr(debug_assertions, tracer::trace_callback(callback = alloc_callback))]
pub fn alloc_page(_mapped_addr: VirtAddr) -> PhysAddr {
let addr = RAM_ALLOCATOR.lock().alloc(PAGE_LAYOUT).expect("Failed to allocate page");