From 2dec10c297588bc6d356188fa4d0264215f397e1 Mon Sep 17 00:00:00 2001 From: Friedrich Vock Date: Wed, 18 Jan 2023 18:14:37 +0100 Subject: [PATCH] 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: --- src/amd/vulkan/radv_rmv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_rmv.c b/src/amd/vulkan/radv_rmv.c index 82d7c03ee65..0711fe1a5db 100644 --- a/src/amd/vulkan/radv_rmv.c +++ b/src/amd/vulkan/radv_rmv.c @@ -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; }