Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dbaad431 authored by Liam Mark's avatar Liam Mark
Browse files

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: default avatarLiam Mark <lmark@codeaurora.org>
parent 053fad16
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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) {