blkparse: Handle cgroup information
authorJan Kara <jack@suse.cz>
Wed, 6 May 2020 13:39:31 +0000 (15:39 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 May 2020 13:37:53 +0000 (07:37 -0600)
commit7238673f3fd6a02812c7a35d1d55cf6f724ac001
treee3987c7942a0f066a1c45555697b9462e1ee50af
parente81829a565162d41e2f551dc5e0f74f22f319554
blkparse: Handle cgroup information

Since Linux kernel commit 35fe6d763229 "block: use standard blktrace API
to output cgroup info for debug notes" the kernel can pass
__BLK_TA_CGROUP flag in the action field of generated events. blkparse
does not count with this and so it will get confused by such events and
either ignore them or misreport them. Teach blkparse how to properly
process events with __BLK_TA_CGROUP flag.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
blkparse.c
blkparse_fmt.c
blktrace_api.h
doc/blkparse.1
doc/blktrace.tex