Imporve tbm_bufmgr_debug_tbm_info_get() to show gem name 44/139644/1
authorYoungJun Cho <yj44.cho@samsung.com>
Thu, 20 Jul 2017 00:51:58 +0000 (09:51 +0900)
committerYoungJun Cho <yj44.cho@samsung.com>
Thu, 20 Jul 2017 00:59:32 +0000 (09:59 +0900)
This patch improves tbm_bufmgr_debug_tbm_info_get() to show gem name.

Change-Id: Ib7b17c134c6be8516e5815b7c07a76e86b79e94a
Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
src/tbm_bufmgr.c

index 105cff3..130f29c 100644 (file)
@@ -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");