path: root/blktrace.h
diff options
authorChristof Schmitt <>2008-04-02 09:21:08 +0200
committerJens Axboe <>2008-04-02 09:21:08 +0200
commit801646d63fe28ae2c50ab5bd0e9ea4f75ff64d97 (patch)
tree9a1bcec6db861b403b34496813ffb996357ccb32 /blktrace.h
parentc82a8c9d6d21b15732a92f9481ea1bcb45c9ce8c (diff)
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 <> Signed-off-by: Jens Axboe <>
Diffstat (limited to 'blktrace.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/blktrace.h b/blktrace.h
index 7e844ca..816ce61 100644
--- a/blktrace.h
+++ b/blktrace.h
@@ -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;