freedreno/drm/virtio: Use MESA_TRACE_SCOPE instead of _BEGIN/_END
The MESA_TRACE_SCOPE macro is an exact replacement for this. Signed-off-by: Corentin Noël <corentin.noel@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25308>
This commit is contained in:
@@ -369,11 +369,10 @@ out_unlock:
|
|||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if (sync) {
|
if (sync) {
|
||||||
MESA_TRACE_BEGIN("virtio_execbuf sync");
|
MESA_TRACE_SCOPE("virtio_execbuf sync");
|
||||||
sync_wait(fence_fd, -1);
|
sync_wait(fence_fd, -1);
|
||||||
close(fence_fd);
|
close(fence_fd);
|
||||||
virtio_host_sync(dev, req);
|
virtio_host_sync(dev, req);
|
||||||
MESA_TRACE_END();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@@ -86,9 +86,8 @@ struct virtio_device {
|
|||||||
FD_DEFINE_CAST(fd_device, virtio_device);
|
FD_DEFINE_CAST(fd_device, virtio_device);
|
||||||
|
|
||||||
#define virtio_ioctl(fd, name, args) ({ \
|
#define virtio_ioctl(fd, name, args) ({ \
|
||||||
MESA_TRACE_BEGIN(#name); \
|
MESA_TRACE_SCOPE(#name); \
|
||||||
int ret = drmIoctl((fd), DRM_IOCTL_ ## name, (args)); \
|
int ret = drmIoctl((fd), DRM_IOCTL_ ## name, (args)); \
|
||||||
MESA_TRACE_END(); \
|
|
||||||
ret; \
|
ret; \
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user