diff mbox series

blkparse: Print PID information for TN_MESSAGE events

Message ID 20200513160402.8050-1-jack@suse.cz (mailing list archive)
State New, archived
Headers show
Series blkparse: Print PID information for TN_MESSAGE events | expand

Commit Message

Jan Kara May 13, 2020, 4:04 p.m. UTC
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(-)

Comments

Jens Axboe May 19, 2020, 3:53 p.m. UTC | #1
On 5/13/20 10:04 AM, Jan Kara wrote:
> The kernel now provides PID information for TN_MESSAGE events. Print it.
> Old kernels fill 0 there so the behavior is unaffected for them.

Doesn't apply to the current repo, can you resend?
Jan Kara May 20, 2020, 1:20 p.m. UTC | #2
On Tue 19-05-20 09:53:23, Jens Axboe wrote:
> On 5/13/20 10:04 AM, Jan Kara wrote:
> > The kernel now provides PID information for TN_MESSAGE events. Print it.
> > Old kernels fill 0 there so the behavior is unaffected for them.
> 
> Doesn't apply to the current repo, can you resend?

Likely because it is based on top of my blkparse fixes to deal with cgroup
information in blktrace events. Did you pick up those? Rebasing this
on-liner is simple enough but I'm just wondering...

								Honza
Jens Axboe May 20, 2020, 1:38 p.m. UTC | #3
On 5/20/20 7:20 AM, Jan Kara wrote:
> On Tue 19-05-20 09:53:23, Jens Axboe wrote:
>> On 5/13/20 10:04 AM, Jan Kara wrote:
>>> The kernel now provides PID information for TN_MESSAGE events. Print it.
>>> Old kernels fill 0 there so the behavior is unaffected for them.
>>
>> Doesn't apply to the current repo, can you resend?
> 
> Likely because it is based on top of my blkparse fixes to deal with cgroup
> information in blktrace events. Did you pick up those? Rebasing this
> on-liner is simple enough but I'm just wondering...

Indeed, applied this one too. Thanks!
diff mbox series

Patch

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;