mirror of
https://github.com/reactos/reactos.git
synced 2025-05-20 17:45:06 +00:00
[NTOS:CC] Improve trace messages
This commit is contained in:
parent
20fe42c9e9
commit
804f5a41ed
1 changed files with 10 additions and 8 deletions
|
@ -138,8 +138,8 @@ CcRosTraceCacheMap (
|
||||||
current = CONTAINING_RECORD(current_entry, ROS_VACB, CacheMapVacbListEntry);
|
current = CONTAINING_RECORD(current_entry, ROS_VACB, CacheMapVacbListEntry);
|
||||||
current_entry = current_entry->Flink;
|
current_entry = current_entry->Flink;
|
||||||
|
|
||||||
DPRINT1(" VACB 0x%p enabled, RefCount %lu, Dirty %u, PageOut %lu\n",
|
DPRINT1(" VACB 0x%p enabled, RefCount %lu, Dirty %u, PageOut %lu, BaseAddress %p, FileOffset %I64d\n",
|
||||||
current, current->ReferenceCount, current->Dirty, current->PageOut );
|
current, current->ReferenceCount, current->Dirty, current->PageOut, current->BaseAddress, current->FileOffset.QuadPart);
|
||||||
}
|
}
|
||||||
|
|
||||||
KeReleaseSpinLockFromDpcLevel(&SharedCacheMap->CacheMapLock);
|
KeReleaseSpinLockFromDpcLevel(&SharedCacheMap->CacheMapLock);
|
||||||
|
@ -595,12 +595,6 @@ CcRosCreateVacb (
|
||||||
current->PageOut = FALSE;
|
current->PageOut = FALSE;
|
||||||
current->FileOffset.QuadPart = ROUND_DOWN(FileOffset, VACB_MAPPING_GRANULARITY);
|
current->FileOffset.QuadPart = ROUND_DOWN(FileOffset, VACB_MAPPING_GRANULARITY);
|
||||||
current->SharedCacheMap = SharedCacheMap;
|
current->SharedCacheMap = SharedCacheMap;
|
||||||
#if DBG
|
|
||||||
if (SharedCacheMap->Trace)
|
|
||||||
{
|
|
||||||
DPRINT1("CacheMap 0x%p: new VACB: 0x%p\n", SharedCacheMap, current);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
current->MappedCount = 0;
|
current->MappedCount = 0;
|
||||||
current->ReferenceCount = 0;
|
current->ReferenceCount = 0;
|
||||||
InitializeListHead(¤t->CacheMapVacbListEntry);
|
InitializeListHead(¤t->CacheMapVacbListEntry);
|
||||||
|
@ -633,6 +627,14 @@ Retry:
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if DBG
|
||||||
|
if (SharedCacheMap->Trace)
|
||||||
|
{
|
||||||
|
DPRINT1("CacheMap 0x%p: new VACB: 0x%p, file offset %I64d, BaseAddress %p\n",
|
||||||
|
SharedCacheMap, current, current->FileOffset.QuadPart, current->BaseAddress);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
oldIrql = KeAcquireQueuedSpinLock(LockQueueMasterLock);
|
oldIrql = KeAcquireQueuedSpinLock(LockQueueMasterLock);
|
||||||
|
|
||||||
*Vacb = current;
|
*Vacb = current;
|
||||||
|
|
Loading…
Reference in a new issue