blkparse: Introduce optional accounting of PC requests
authorChristof Schmitt <christof.schmitt@de.ibm.com>
Wed, 2 Apr 2008 07:21:08 +0000 (09:21 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 2 Apr 2008 07:21:08 +0000 (09:21 +0200)
commit801646d63fe28ae2c50ab5bd0e9ea4f75ff64d97
tree9a1bcec6db861b403b34496813ffb996357ccb32
parentc82a8c9d6d21b15732a92f9481ea1bcb45c9ce8c
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>
blkparse.c
blktrace.h