mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
dma-buf: Display buffer name in debugfs
Now that the dma-buf buffer name is unique, display it for each buffer in the dma-buf debugfs so that clients can easily identify which buffer is being referred to. Change-Id: I83db2dd385523db9c0df9360084c4f3d4a0571e4 Signed-off-by: Liam Mark <lmark@codeaurora.org>
This commit is contained in:
parent
053fad1617
commit
dbaad4314e
@ -1192,8 +1192,8 @@ static int dma_buf_debug_show(struct seq_file *s, void *unused)
|
||||
return ret;
|
||||
|
||||
seq_puts(s, "\nDma-buf Objects:\n");
|
||||
seq_printf(s, "%-8s\t%-8s\t%-8s\t%-8s\texp_name\n",
|
||||
"size", "flags", "mode", "count");
|
||||
seq_printf(s, "%-8s\t%-8s\t%-8s\t%-8s\t%-12s\t%-s\n",
|
||||
"size", "flags", "mode", "count", "exp_name", "buf name");
|
||||
|
||||
list_for_each_entry(buf_obj, &db_list.head, list_node) {
|
||||
ret = mutex_lock_interruptible(&buf_obj->lock);
|
||||
@ -1204,11 +1204,11 @@ static int dma_buf_debug_show(struct seq_file *s, void *unused)
|
||||
continue;
|
||||
}
|
||||
|
||||
seq_printf(s, "%08zu\t%08x\t%08x\t%08ld\t%s\n",
|
||||
seq_printf(s, "%08zu\t%08x\t%08x\t%08ld\t%-12s\t%-s\n",
|
||||
buf_obj->size,
|
||||
buf_obj->file->f_flags, buf_obj->file->f_mode,
|
||||
file_count(buf_obj->file),
|
||||
buf_obj->exp_name);
|
||||
buf_obj->exp_name, buf_obj->name);
|
||||
|
||||
robj = buf_obj->resv;
|
||||
while (true) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user