TRACE_EVENT(amdgpu_vm_grab_id,
- TP_PROTO(unsigned vmid, int ring),
- TP_ARGS(vmid, ring),
+ TP_PROTO(struct amdgpu_vm *vm, unsigned vmid, int ring),
+ TP_ARGS(vm, vmid, ring),
TP_STRUCT__entry(
+ __field(struct amdgpu_vm *, vm)
__field(u32, vmid)
__field(u32, ring)
),
TP_fast_assign(
+ __entry->vm = vm;
__entry->vmid = vmid;
__entry->ring = ring;
),
- TP_printk("vmid=%u, ring=%u", __entry->vmid, __entry->ring)
+ TP_printk("vm=%p, id=%u, ring=%u", __entry->vm, __entry->vmid,
+ __entry->ring)
);
TRACE_EVENT(amdgpu_vm_bo_map,
owner = atomic_long_read(&adev->vm_manager.ids[id].owner);
if (owner == (long)vm) {
- trace_amdgpu_vm_grab_id(vm_id->id, ring->idx);
+ trace_amdgpu_vm_grab_id(vm, vm_id->id, ring->idx);
return 0;
}
}
if (fence == NULL) {
/* found a free one */
vm_id->id = i;
- trace_amdgpu_vm_grab_id(i, ring->idx);
+ trace_amdgpu_vm_grab_id(vm, i, ring->idx);
return 0;
}
fence = adev->vm_manager.ids[choices[i]].active;
vm_id->id = choices[i];
- trace_amdgpu_vm_grab_id(choices[i], ring->idx);
+ trace_amdgpu_vm_grab_id(vm, choices[i], ring->idx);
return amdgpu_sync_fence(ring->adev, sync, fence);
}
}