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:
+12
@@ -225,6 +225,17 @@ public:
|
|||||||
virtual const char* _Action() const { return "put"; }
|
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 {
|
class Write : public Action {
|
||||||
public:
|
public:
|
||||||
Write(block_cache *cache, cached_block* block)
|
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)));
|
blockNumber, bytesRead, strerror(errno)));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
TB(Read(cache, block));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (block->unused) {
|
if (block->unused) {
|
||||||
|
|||||||
Reference in New Issue
Block a user