Skip to content

Commit 4419c95

Browse files
committed
Trace the executionpath
1 parent 3d7b19d commit 4419c95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml/src/ggml-remotingfrontend/virtgpu-shm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ virtgpu_ioctl_map(struct virtgpu *gpu, uint32_t gem_handle, size_t size)
5353
.handle = gem_handle,
5454
.pad = 0,
5555
};
56-
printf("Say hello world\n");
56+
printf("virtgpu_ioctl_map(%ld)\n", size);
5757
if (virtgpu_ioctl(gpu, DRM_IOCTL_VIRTGPU_MAP, &args))
5858
return NULL;
5959

6060
void *ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, gpu->fd,
6161
args.offset);
6262
if (ptr == MAP_FAILED)
6363
return NULL;
64-
64+
printf("virtgpu_ioctl_map(%ld) --> %p | %p\n", size, ptr, *(void **)ptr);
6565
return ptr;
6666
}
6767

0 commit comments

Comments
 (0)