mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* RFC: How to adjust the trace pid?
@ 2020-08-07 13:36 Christian König
  2020-08-07 13:36 ` [PATCH] drm/amdgpu: adjust the pid in the grab_id trace point Christian König
  2020-08-12 13:42 ` RFC: How to adjust the trace pid? Christian König
  0 siblings, 2 replies; 9+ messages in thread
From: Christian König @ 2020-08-07 13:36 UTC (permalink / raw)
  To: amd-gfx, dri-devel, linux-kernel
  Cc: Shashank.Sharma, daniel.vetter, alexander.deucher

Hi everybody,

in amdgpu we got the following issue which I'm seeking advise how to cleanly handle it.

We have a bunch of trace points which are related to the VM subsystem and executed in either a work item, kthread or foreign process context.

Now tracing the pid of the context which we are executing in is not really that useful, so I'm wondering if we could just overwrite the pid recorded in the trace entry?

The following patch does exactly that for the vm_grab_id() trace point, but I'm not 100% sure if that is legal or not.

Any ideas? Comments?

Thanks,
Christian.



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

end of thread, other threads:[~2020-08-12 15:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-07 13:36 RFC: How to adjust the trace pid? Christian König
2020-08-07 13:36 ` [PATCH] drm/amdgpu: adjust the pid in the grab_id trace point Christian König
2020-08-12 14:17   ` Steven Rostedt
2020-08-12 14:36     ` Christian König
2020-08-12 15:19       ` Steven Rostedt
2020-08-12 15:33         ` Christian König
2020-08-12 13:42 ` RFC: How to adjust the trace pid? Christian König
2020-08-12 13:49   ` Daniel Vetter
2020-08-12 14:06     ` Christian König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®