linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] blkparse: Print PID information for TN_MESSAGE events
@ 2020-05-13 16:04 Jan Kara
  2020-05-19 15:53 ` Jens Axboe
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Kara @ 2020-05-13 16:04 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-block, Paolo Valente, Jan Kara

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>
---
 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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-20 13:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-13 16:04 [PATCH] blkparse: Print PID information for TN_MESSAGE events Jan Kara
2020-05-19 15:53 ` Jens Axboe
2020-05-20 13:20   ` Jan Kara
2020-05-20 13:38     ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).