]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Use the TGID for trace_amdgpu_vm_update_ptes
authorFriedrich Vock <friedrich.vock@gmx.de>
Thu, 2 Feb 2023 16:21:03 +0000 (17:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Feb 2023 18:11:53 +0000 (19:11 +0100)
commita2e60fee4b7681bb9664f6a638d9630102ac978b
treeb0fa9e428d3ca31eb317f015739bca02f6e70242
parent6f097c24815e67909a1fcc2c605586d02babd673
drm/amdgpu: Use the TGID for trace_amdgpu_vm_update_ptes

commit e53448e0a1efa5133c7db78f1df1f4caf177676b upstream.

The pid field corresponds to the result of gettid() in userspace.
However, userspace cannot reliably attribute PTE events to processes
with just the thread id. This patch allows userspace to easily
attribute PTE update events to specific processes by comparing this
field with the result of getpid().

For attributing events to specific threads, the thread id is also
contained in the common fields of each trace event.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Friedrich Vock <friedrich.vock@gmx.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c