mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
- Add basic tracing to CmpReferenceKeyControlBlock, CmpDereferenceKeyControlBlock and CmpDereferenceKeyControlBlockWithLock
svn path=/trunk/; revision=36428
This commit is contained in:
parent
22c7de15e6
commit
ad277c0c6b
1 changed files with 8 additions and 0 deletions
|
@ -354,6 +354,9 @@ BOOLEAN
|
|||
NTAPI
|
||||
CmpReferenceKeyControlBlock(IN PCM_KEY_CONTROL_BLOCK Kcb)
|
||||
{
|
||||
CMTRACE(CM_REFERENCE_DEBUG,
|
||||
"%s - Referencing KCB: %p\n", __FUNCTION__, Kcb);
|
||||
|
||||
/* Check if this is the KCB's first reference */
|
||||
if (Kcb->RefCount == 0)
|
||||
{
|
||||
|
@ -570,6 +573,8 @@ CmpDereferenceKeyControlBlock(IN PCM_KEY_CONTROL_BLOCK Kcb)
|
|||
{
|
||||
LONG OldRefCount, NewRefCount;
|
||||
ULONG ConvKey;
|
||||
CMTRACE(CM_REFERENCE_DEBUG,
|
||||
"%s - Dereferencing KCB: %p\n", __FUNCTION__, Kcb);
|
||||
|
||||
/* Get the ref count and update it */
|
||||
OldRefCount = *(PLONG)&Kcb->RefCount;
|
||||
|
@ -602,6 +607,9 @@ NTAPI
|
|||
CmpDereferenceKeyControlBlockWithLock(IN PCM_KEY_CONTROL_BLOCK Kcb,
|
||||
IN BOOLEAN LockHeldExclusively)
|
||||
{
|
||||
CMTRACE(CM_REFERENCE_DEBUG,
|
||||
"%s - Dereferencing KCB: %p\n", __FUNCTION__, Kcb);
|
||||
|
||||
/* Sanity check */
|
||||
ASSERT_KCB_VALID(Kcb);
|
||||
|
||||
|
|
Loading…
Reference in a new issue