* Fixed kernel tracing.
* Re-added tracing for cache creation. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26580 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -61,22 +61,17 @@ class VMCacheTraceEntry : public AbstractTraceEntry {
|
|||||||
|
|
||||||
class Create : public VMCacheTraceEntry {
|
class Create : public VMCacheTraceEntry {
|
||||||
public:
|
public:
|
||||||
Create(VMCache* cache, vm_store* store)
|
Create(VMCache* cache)
|
||||||
:
|
:
|
||||||
VMCacheTraceEntry(cache),
|
VMCacheTraceEntry(cache)
|
||||||
fStore(store)
|
|
||||||
{
|
{
|
||||||
Initialized();
|
Initialized();
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void AddDump(TraceOutput& out)
|
virtual void AddDump(TraceOutput& out)
|
||||||
{
|
{
|
||||||
out.Print("vm cache create: store: %p -> cache: %p", fStore,
|
out.Print("vm cache create: -> cache: %p", fCache);
|
||||||
fCache);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
|
||||||
vm_store* fStore;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -987,6 +982,8 @@ VMCacheFactory::CreateAnonymousCache(VMCache*& _cache, bool canOvercommit,
|
|||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
T(Create(cache));
|
||||||
|
|
||||||
_cache = cache;
|
_cache = cache;
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
@@ -1005,6 +1002,8 @@ VMCacheFactory::CreateVnodeCache(VMCache*& _cache, struct vnode* vnode)
|
|||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
T(Create(cache));
|
||||||
|
|
||||||
_cache = cache;
|
_cache = cache;
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
@@ -1023,6 +1022,8 @@ VMCacheFactory::CreateDeviceCache(VMCache*& _cache, addr_t baseAddress)
|
|||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
T(Create(cache));
|
||||||
|
|
||||||
_cache = cache;
|
_cache = cache;
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
@@ -1041,6 +1042,8 @@ VMCacheFactory::CreateNullCache(VMCache*& _cache)
|
|||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
T(Create(cache));
|
||||||
|
|
||||||
_cache = cache;
|
_cache = cache;
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user