Skip to content

Commit 26fd808

Browse files
peppsacalexdeucher
authored andcommitted
drm/amdgpu: print bo inode number instead of ptr
This allows to correlate the infos printed by /sys/kernel/debug/dri/n/amdgpu_gem_info to the ones found in /proc/.../fdinfo and /sys/kernel/debug/dma_buf/bufinfo. Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 071f526 commit 26fd808

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_object.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1574,9 +1574,9 @@ u64 amdgpu_bo_print_info(int id, struct amdgpu_bo *bo, struct seq_file *m)
15741574
attachment = READ_ONCE(bo->tbo.base.import_attach);
15751575

15761576
if (attachment)
1577-
seq_printf(m, " imported from %p", dma_buf);
1577+
seq_printf(m, " imported from ino:%lu", file_inode(dma_buf->file)->i_ino);
15781578
else if (dma_buf)
1579-
seq_printf(m, " exported as %p", dma_buf);
1579+
seq_printf(m, " exported as ino:%lu", file_inode(dma_buf->file)->i_ino);
15801580

15811581
amdgpu_bo_print_flag(m, bo, CPU_ACCESS_REQUIRED);
15821582
amdgpu_bo_print_flag(m, bo, NO_CPU_ACCESS);

0 commit comments

Comments
 (0)