]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Feb 2023 22:36:44 +0000 (17:36 -0500)
commit0082e2fcd71c13208fcedd75b0599ff09cb5a940
tree150637e93b3eba416e495c53ba0a9c93329b4b70
parent35e67ca67635d48ce373ae51f93e4672216adc9d
drm/amdgpu: Use the TGID for trace_amdgpu_vm_update_ptes

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>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c