axeld + bonefish + mmlr:
* Added trace entry for block reads from disk. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26534 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f83297ba2d
commit
2f14f5ee99
12
src/system/kernel/cache/block_cache.cpp
vendored
12
src/system/kernel/cache/block_cache.cpp
vendored
@ -225,6 +225,17 @@ public:
|
||||
virtual const char* _Action() const { return "put"; }
|
||||
};
|
||||
|
||||
class Read : public Action {
|
||||
public:
|
||||
Read(block_cache *cache, cached_block* block)
|
||||
: Action(cache, block)
|
||||
{
|
||||
Initialized();
|
||||
}
|
||||
|
||||
virtual const char* _Action() const { return "read"; }
|
||||
};
|
||||
|
||||
class Write : public Action {
|
||||
public:
|
||||
Write(block_cache *cache, cached_block* block)
|
||||
@ -1123,6 +1134,7 @@ get_cached_block(block_cache *cache, off_t blockNumber, bool *_allocated,
|
||||
blockNumber, bytesRead, strerror(errno)));
|
||||
return NULL;
|
||||
}
|
||||
TB(Read(cache, block));
|
||||
}
|
||||
|
||||
if (block->unused) {
|
||||
|
Loading…
Reference in New Issue
Block a user