radv/rmv: Also check the other pid field

Sometimes it seems like this field contains the correct pid instead.

Fixes: 8d0e6c02 ("radv: Add RMV tracing utilities")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20820>
(cherry picked from commit 2dec10c297)
This commit is contained in:
Friedrich Vock 2023-01-18 18:14:37 +01:00 committed by Dylan Baker
parent 611a7b9f75
commit b204c4fb23
2 changed files with 2 additions and 2 deletions

View file

@ -337,7 +337,7 @@
"description": "radv/rmv: Also check the other pid field",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "8d0e6c02c7024fd3a1e8f60bde8dd4428943bd46"
},

View file

@ -183,7 +183,7 @@ static void
evaluate_trace_event(struct radv_device *device, uint64_t timestamp, struct util_dynarray *tokens,
struct trace_event_amdgpu_vm_update_ptes *event)
{
if (event->common.pid != getpid()) {
if (event->common.pid != getpid() && event->pid != getpid()) {
return;
}