aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2020-05-13 18:04:02 +0200
committerJens Axboe <axboe@kernel.dk>2020-05-20 07:38:26 -0600
commita021a33b405b5101eec6c389e1dacd7934fdd35e (patch)
treeb9fba44fdafc7774a8a834a1da3721cb11f81865
parentf442a044c0c2752d6fa916dd1e0366ba83eef998 (diff)
downloadblktrace-a021a33b405b5101eec6c389e1dacd7934fdd35e.tar.gz
blkparse: Print PID information for TN_MESSAGE events
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@suse.cz> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--blkparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blkparse.c b/blkparse.c
index 40e7bc2..33dd023 100644
--- a/blkparse.c
+++ b/blkparse.c
@@ -663,7 +663,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;