}
/* LCOV_EXCL_START */
+static int last_chk_bo_cnt = 0;
+static void
+_tbm_util_check_bo_cnt(tbm_bufmgr bufmgr)
+{
+ if (bufmgr->bo_cnt >= 500 && ((bufmgr->bo_cnt % 20) == 0)) {
+ if (bufmgr->bo_cnt > last_chk_bo_cnt) {
+ TBM_DEBUG("============TBM BO CNT DEBUG: bo_cnt=%d\n", bufmgr->bo_cnt);
+ tbm_bufmgr_debug_show(bufmgr);
+ last_chk_bo_cnt = bufmgr->bo_cnt;
+ }
+ }
+}
+
static void
_tbm_util_get_appname_brief(char *brief)
{
LIST_DEL(&bo->item_link);
free(bo);
bo = NULL;
+
+ bufmgr->bo_cnt--;
}
}
return NULL;
}
+ _tbm_util_check_bo_cnt(bufmgr);
+ bufmgr->bo_cnt++;
+
bo->bufmgr = bufmgr;
pthread_mutex_lock(&bufmgr->lock);
tbm_bo tmp = NULL;
void *bo_priv = NULL;
+ _tbm_util_check_bo_cnt(bufmgr);
+
pthread_mutex_lock(&bufmgr->lock);
bo = calloc(1, sizeof(struct _tbm_bo));
return NULL;
}
+ bufmgr->bo_cnt++;
+
bo->bufmgr = bufmgr;
bo_priv = bufmgr->backend->bo_import(bo, key);
tbm_bo tmp = NULL;
void *bo_priv = NULL;
+ _tbm_util_check_bo_cnt(bufmgr);
+
pthread_mutex_lock(&bufmgr->lock);
bo = calloc(1, sizeof(struct _tbm_bo));
return NULL;
}
+ bufmgr->bo_cnt++;
+
bo->bufmgr = bufmgr;
bo_priv = bufmgr->backend->bo_import_fd(bo, fd);
int lock_type; /* lock_type of bufmgr */
+ unsigned int bo_cnt; /* number of bos */
+
struct list_head bo_list; /* list of bos belonging to bufmgr */
struct list_head surf_list; /* list of surfaces belonging to bufmgr */