projects
/
platform
/
core
/
uifw
/
libtbm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tbm_bufmgr: arrange tbm_bufmgr debug info
[platform/core/uifw/libtbm.git]
/
src
/
tbm_bufmgr.c
diff --git
a/src/tbm_bufmgr.c
b/src/tbm_bufmgr.c
index
3fe38b1
..
eefe8e8
100644
(file)
--- a/
src/tbm_bufmgr.c
+++ b/
src/tbm_bufmgr.c
@@
-479,16
+479,9
@@
_tbm_bufmgr_init(int fd, int server)
gettimeofday(&start_tv, NULL);
#endif
gettimeofday(&start_tv, NULL);
#endif
- /* LCOV_EXCL_START */
-#ifdef HAVE_DLOG
- env = getenv("TBM_DLOG");
- if (env) {
- bDlog = atoi(env);
- TBM_DBG("TBM_DLOG=%s\n", env);
- } else
- bDlog = 1;
-#endif
+ bDlog = 1;
+ /* LCOV_EXCL_START */
#ifdef TRACE
env = getenv("TBM_TRACE");
if (env) {
#ifdef TRACE
env = getenv("TBM_TRACE");
if (env) {
@@
-728,10
+721,10
@@
tbm_bufmgr_debug_tbm_info_get(tbm_bufmgr bufmgr)
pid = syscall(SYS_getpid);
_tbm_util_get_appname_from_pid(pid, app_name);
_tbm_util_get_appname_brief(app_name);
pid = syscall(SYS_getpid);
_tbm_util_get_appname_from_pid(pid, app_name);
_tbm_util_get_appname_brief(app_name);
- TBM_SNRPRINTF(str, len, c, "============
TBM DEBUG: %s(%ld)
===========================\n",
+ TBM_SNRPRINTF(str, len, c, "============
===============================TBM DEBUG: %s(%ld)================
===========================\n",
app_name, pid);
app_name, pid);
- snprintf(title, 255, "%s", "no surface refcnt width height bpp size n_b n_p flags
format app_name
");
+ snprintf(title, 255, "%s", "no surface refcnt width height bpp size n_b n_p flags
format app_name
");
if (!LIST_IS_EMPTY(&bufmgr->debug_key_list)) {
LIST_FOR_EACH_ENTRY(debug_old_data, &bufmgr->debug_key_list, item_link) {
if (!LIST_IS_EMPTY(&bufmgr->debug_key_list)) {
LIST_FOR_EACH_ENTRY(debug_old_data, &bufmgr->debug_key_list, item_link) {
@@
-767,7
+760,7
@@
tbm_bufmgr_debug_tbm_info_get(tbm_bufmgr bufmgr)
snprintf(app_name, sizeof(app_name), "%d", surf_pid);
}
snprintf(app_name, sizeof(app_name), "%d", surf_pid);
}
- snprintf(data, 255, "%-
2d %-9p %-4d %-5u %-6u %-3u %-6u %-2d %-2d %-3d %-8s %-15
s",
+ snprintf(data, 255, "%-
3d %-11p %-5d %-6u %-7u %-4u %-7u %-3d %-3d %-8d %-9s %-22
s",
++surf_cnt,
surf,
surf->refcnt,
++surf_cnt,
surf,
surf->refcnt,
@@
-814,7
+807,7
@@
tbm_bufmgr_debug_tbm_info_get(tbm_bufmgr bufmgr)
TBM_SNRPRINTF(str, len, c, "\n");
TBM_SNRPRINTF(str, len, c, "[tbm_bo information]\n");
TBM_SNRPRINTF(str, len, c, "\n");
TBM_SNRPRINTF(str, len, c, "[tbm_bo information]\n");
- TBM_SNRPRINTF(str, len, c, "no bo refcnt size lock_cnt map_cnt flags surface name\n");
+ TBM_SNRPRINTF(str, len, c, "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)) {
/* show the tbm_bo information in bo_list */
if (!LIST_IS_EMPTY(&bufmgr->bo_list)) {
@@
-834,7
+827,7
@@
tbm_bufmgr_debug_tbm_info_get(tbm_bufmgr bufmgr)
size = bufmgr->backend->bo_size(bo);
key = bufmgr->backend->bo_export(bo);
}
size = bufmgr->backend->bo_size(bo);
key = bufmgr->backend->bo_export(bo);
}
- TBM_SNRPRINTF(str, len, c, "%-
4d%-11p %-4d %-6d %-5d %-4u %-3d
%-11p %-4d\n",
+ TBM_SNRPRINTF(str, len, c, "%-
3d %-11p %-5d %-7d %-6d %-5u %-7d
%-11p %-4d\n",
++bo_cnt,
bo,
bo->ref_cnt,
++bo_cnt,
bo,
bo->ref_cnt,
@@
-849,7
+842,7
@@
tbm_bufmgr_debug_tbm_info_get(tbm_bufmgr bufmgr)
TBM_SNRPRINTF(str, len, c, "no tbm_bos.\n");
TBM_SNRPRINTF(str, len, c, "\n");
TBM_SNRPRINTF(str, len, c, "no tbm_bos.\n");
TBM_SNRPRINTF(str, len, c, "\n");
- TBM_SNRPRINTF(str, len, c, "===============================================================\n");
+ TBM_SNRPRINTF(str, len, c, "===============================================================
=========================================
\n");
pthread_mutex_unlock(&gLock);
pthread_mutex_unlock(&gLock);