blkparse: add support sort program by io event
authorWeiping Zhang <zhangweiping@didiglobal.com>
Tue, 21 May 2019 13:29:13 +0000 (21:29 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 May 2019 14:06:08 +0000 (08:06 -0600)
commita7263b8fb22f07f4f1a3ec54f0c37193c5908b22
treead31a3832b367d3c81b3d5766aaa6f0c13b84790
parent10df4b691a68dd440547e393b6d241fc54fd2fad
blkparse: add support sort program by io event

Displays each program's data sorted by program name or io event, like
Queued, Read, Write and Complete. When -S is specified the -s will be ignored.
The capital letters Q,R,W,C stand for KB, then q/r/w/c stand for IO.
The N is used for sorting programs by name, same to -s.

If you want to sort programs by how many data they queued, you can use:

blkparse -i sda.blktrace. -q -S Q -o sda.parse

Signed-off-by: Weiping Zhang <zhangweiping@didiglobal.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
blkparse.c
doc/blkparse.1