From: "Christian König" <ckoenig.leichtzumerken@gmail.com>
To: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org
Cc: Shashank.Sharma@amd.com, daniel.vetter@ffwll.ch,
alexander.deucher@amd.com
Subject: [PATCH] drm/amdgpu: adjust the pid in the grab_id trace point
Date: Fri, 7 Aug 2020 15:36:58 +0200 [thread overview]
Message-ID: <20200807133658.1866-2-christian.koenig@amd.com> (raw)
In-Reply-To: <20200807133658.1866-1-christian.koenig@amd.com>
Trace something useful instead of the pid of a kernel thread here.
Signed-off-by: Christian König <christian.koenig@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
index 5da20fc166d9..07f99ef69d91 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
@@ -228,6 +228,7 @@ TRACE_EVENT(amdgpu_vm_grab_id,
),
TP_fast_assign(
+ __entry->ent.pid = vm->task_info.pid;
__entry->pasid = vm->pasid;
__assign_str(ring, ring->name)
__entry->vmid = job->vmid;
--
2.17.1
next prev parent reply other threads:[~2020-08-07 13:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-07 13:36 RFC: How to adjust the trace pid? Christian König
2020-08-07 13:36 ` Christian König [this message]
2020-08-12 14:17 ` [PATCH] drm/amdgpu: adjust the pid in the grab_id trace point 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200807133658.1866-2-christian.koenig@amd.com \
--to=ckoenig.leichtzumerken@gmail.com \
--cc=Shashank.Sharma@amd.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=daniel.vetter@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®