From 36b7e549591505ccda01139011b35bd0da608ce0 Mon Sep 17 00:00:00 2001 From: YoungJun Cho Date: Thu, 20 Jul 2017 09:51:58 +0900 Subject: [PATCH] Imporve tbm_bufmgr_debug_tbm_info_get() to show gem name This patch improves tbm_bufmgr_debug_tbm_info_get() to show gem name. Change-Id: Ib7b17c134c6be8516e5815b7c07a76e86b79e94a Signed-off-by: YoungJun Cho --- src/tbm_bufmgr.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tbm_bufmgr.c b/src/tbm_bufmgr.c index 105cff3..130f29c 100644 --- a/src/tbm_bufmgr.c +++ b/src/tbm_bufmgr.c @@ -1588,7 +1588,7 @@ tbm_bufmgr_debug_tbm_info_get(tbm_bufmgr bufmgr, char *str, int *len) TBM_SNPRINTF(str, len, "\n"); TBM_SNPRINTF(str, len, "[tbm_bo information]\n"); - TBM_SNPRINTF(str, len, "no bo refcnt size lock_cnt map_cnt flags surface\n"); + TBM_SNPRINTF(str, len, "no bo refcnt size lock_cnt map_cnt flags surface name\n"); /* show the tbm_bo information in bo_list */ if (!LIST_IS_EMPTY(&bufmgr->bo_list)) { @@ -1596,7 +1596,7 @@ tbm_bufmgr_debug_tbm_info_get(tbm_bufmgr bufmgr, char *str, int *len) tbm_bo bo = NULL; LIST_FOR_EACH_ENTRY(bo, &bufmgr->bo_list, item_link) { - TBM_SNPRINTF(str, len, "%-4d%-11p %-4d %-6d %-5d %-4u %-3d %-11p\n", + TBM_SNPRINTF(str, len, "%-4d%-11p %-4d %-6d %-5d %-4u %-3d %-11p %-4d\n", ++bo_cnt, bo, bo->ref_cnt, @@ -1604,7 +1604,8 @@ tbm_bufmgr_debug_tbm_info_get(tbm_bufmgr bufmgr, char *str, int *len) bo->lock_cnt, bo->map_cnt, bo->flags, - bo->surface); + bo->surface, + tbm_bo_export(bo)); } } else TBM_SNPRINTF(str, len, "no tbm_bos.\n"); -- 2.7.4