The kernel now provides PID information for TN_MESSAGE events. Print it. Old kernels fill 0 there so the behavior is unaffected for them. Signed-off-by: Jan Kara <jack@xxxxxxx> --- blkparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blkparse.c b/blkparse.c index ae4cb4433944..911309e26a15 100644 --- a/blkparse.c +++ b/blkparse.c @@ -643,7 +643,7 @@ static void handle_notify(struct blk_io_trace *bit) MAJOR(bit->device), MINOR(bit->device), bit->cpu, "0", (int)SECONDS(bit->time), (unsigned long)NANO_SECONDS(bit->time), - 0, cgidstr, "m", "N", msg); + bit->pid, cgidstr, "m", "N", msg); } break; -- 2.16.4