diff options
author | Christof Schmitt <christof.schmitt@de.ibm.com> | 2008-04-02 09:21:08 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-04-02 09:21:08 +0200 |
commit | 801646d63fe28ae2c50ab5bd0e9ea4f75ff64d97 (patch) | |
tree | 9a1bcec6db861b403b34496813ffb996357ccb32 /blktrace.h | |
parent | c82a8c9d6d21b15732a92f9481ea1bcb45c9ce8c (diff) | |
download | blktrace-801646d63fe28ae2c50ab5bd0e9ea4f75ff64d97.tar.gz blktrace-801646d63fe28ae2c50ab5bd0e9ea4f75ff64d97.tar.bz2 |
blkparse: Introduce optional accounting of PC requests
The current blkparse lists only PC requests, but does not account for
number of PC requests and the size of the attached data. This patch
introduces optional accounting for PC requests. If any PC event was
encountered, the summary output will also include data from PC
requests.
For PC completion events the amount of transferred data is not
available, since the kernel uses the data_len field as residual bytes
count on event completion.
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'blktrace.h')
-rw-r--r-- | blktrace.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -32,6 +32,9 @@ struct io_stats { unsigned long long qread_kb, qwrite_kb, cread_kb, cwrite_kb; unsigned long long iread_kb, iwrite_kb; unsigned long long mread_kb, mwrite_kb; + unsigned long qreads_pc, qwrites_pc, ireads_pc, iwrites_pc; + unsigned long rrqueue_pc, wrqueue_pc, creads_pc, cwrites_pc; + unsigned long long qread_kb_pc, qwrite_kb_pc, iread_kb_pc, iwrite_kb_pc; unsigned long io_unplugs, timer_unplugs; }; |