summaryrefslogtreecommitdiffstats
path: root/domx
diff options
context:
space:
mode:
authorFrederic Turgis <f-turgis@ti.com>2012-06-12 19:39:36 +0200
committerBrijesh Nekkare <b-nekkare@ti.com>2012-06-22 13:37:01 +0530
commit687406b4806bfc5a0bd25b99aaac8cfd393ffd65 (patch)
tree1cec44e0952f7c16ac194f86fe190d2b76230039 /domx
parent854a8fb23aee9f53cf2107883e7f8b2b00f23945 (diff)
downloadhardware_ti_omap4-687406b4806bfc5a0bd25b99aaac8cfd393ffd65.zip
hardware_ti_omap4-687406b4806bfc5a0bd25b99aaac8cfd393ffd65.tar.gz
hardware_ti_omap4-687406b4806bfc5a0bd25b99aaac8cfd393ffd65.tar.bz2
DOMX: Update trace level at component init and introduce PROFILING level
* Profiling trace level introduced after WARN and before INFO levels * Cleaning of trace level usage through enum * "Trace level update" functionality called at every proxy common init * Trace level can be updated through Android property debug.domx.trace_level. Environment variable still has precedence over Android property To modify trace level, do on terminal either: - export TIMM_OSAL_TRACE_DEBUG_LEVEL=<trace level> - setprop debug.domx.trace_level <trace level> (Android only) For example setprop debug.domx.trace_level 3 to set PROFILING level The new value is taken into account only at init of a new component. Change-Id: I04de66a6160c11e9339a8f5a63ca0676755a17e0 Signed-off-by: Frederic Turgis <f-turgis@ti.com>
Diffstat (limited to 'domx')
-rw-r--r--domx/omx_proxy_common/src/omx_proxy_common.c2
-rwxr-xr-xdomx/omx_rpc/inc/omx_rpc_utils.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/domx/omx_proxy_common/src/omx_proxy_common.c b/domx/omx_proxy_common/src/omx_proxy_common.c
index d0abe56..3aa03c9 100644
--- a/domx/omx_proxy_common/src/omx_proxy_common.c
+++ b/domx/omx_proxy_common/src/omx_proxy_common.c
@@ -2211,6 +2211,8 @@ OMX_ERRORTYPE OMX_ProxyCommonInit(OMX_HANDLETYPE hComponent)
DOMX_ENTER("hComponent = %p", hComponent);
+ TIMM_OSAL_UpdateTraceLevel();
+
PROXY_require((hComp->pComponentPrivate != NULL),
OMX_ErrorBadParameter, NULL);
diff --git a/domx/omx_rpc/inc/omx_rpc_utils.h b/domx/omx_rpc/inc/omx_rpc_utils.h
index 66a3c64..d8334c9 100755
--- a/domx/omx_rpc/inc/omx_rpc_utils.h
+++ b/domx/omx_rpc/inc/omx_rpc_utils.h
@@ -66,6 +66,7 @@ extern "C"
#define DOMX_ERROR(fmt,...) TIMM_OSAL_Error(fmt, ##__VA_ARGS__)
#define DOMX_WARN(fmt,...) TIMM_OSAL_Warning(fmt, ##__VA_ARGS__)
+#define DOMX_PROF(fmt,...) TIMM_OSAL_Profiling(fmt, ##__VA_ARGS__)
#define DOMX_INFO(fmt,...) TIMM_OSAL_Info(fmt, ##__VA_ARGS__)
#define DOMX_DEBUG(fmt,...) TIMM_OSAL_Debug(fmt, ##__VA_ARGS__)
#define DOMX_ENTER(fmt,...) TIMM_OSAL_Entering(fmt, ##__VA_ARGS__)