criu/plugins
Tvrtko Ursulin be9165b6c1
plugins/amdgpu: Consolidate vm_info collection
Instead of open coding the same ioctl twice we can put it in a loop from
which we break out once we have allocated enough space for all objects.

While at it we add error handling for the memory allocation.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Reviewed-By: David Francis <David.Francis@amd.com>
---
v2:
 * s/for(;;)/while(1)/ (David)
2026-07-21 13:40:20 +02:00
..
amdgpu plugins/amdgpu: Consolidate vm_info collection 2026-07-21 13:40:20 +02:00
cuda amdgpu: use fseeko with large-file support instead of fseeko64 2026-07-21 13:40:17 +02:00