drivers: sip_svc: sip_smc_intel_socfpga: Log execution time
Log execution time for each svc call. Signed-off-by: Mahesh Rao <mahesh.rao@intel.com>
This commit is contained in:
parent
629a6bf106
commit
f816f787e2
1 changed files with 8 additions and 2 deletions
|
@ -172,8 +172,9 @@ static void intel_sip_secure_monitor_call(const struct device *dev, unsigned lon
|
||||||
{
|
{
|
||||||
__ASSERT_NO_MSG(dev != NULL);
|
__ASSERT_NO_MSG(dev != NULL);
|
||||||
__ASSERT_NO_MSG(res != NULL);
|
__ASSERT_NO_MSG(res != NULL);
|
||||||
|
uint64_t start, end;
|
||||||
|
|
||||||
LOG_INF("Before %s call", DT_PROP(DT_SIP_SMC, method));
|
LOG_DBG("Before %s call", DT_PROP(DT_SIP_SMC, method));
|
||||||
LOG_DBG("\tfunction_id %08lx", function_id);
|
LOG_DBG("\tfunction_id %08lx", function_id);
|
||||||
LOG_DBG("\targ0 %08lx", arg0);
|
LOG_DBG("\targ0 %08lx", arg0);
|
||||||
LOG_DBG("\targ1 %08lx", arg1);
|
LOG_DBG("\targ1 %08lx", arg1);
|
||||||
|
@ -183,9 +184,14 @@ static void intel_sip_secure_monitor_call(const struct device *dev, unsigned lon
|
||||||
LOG_DBG("\targ5 %08lx", arg5);
|
LOG_DBG("\targ5 %08lx", arg5);
|
||||||
LOG_DBG("\targ6 %08lx", arg6);
|
LOG_DBG("\targ6 %08lx", arg6);
|
||||||
|
|
||||||
|
start = k_cycle_get_64();
|
||||||
arm_smccc_smc(function_id, arg0, arg1, arg2, arg3, arg4, arg5, arg6, res);
|
arm_smccc_smc(function_id, arg0, arg1, arg2, arg3, arg4, arg5, arg6, res);
|
||||||
|
end = k_cycle_get_64();
|
||||||
|
|
||||||
LOG_INF("After %s call", DT_PROP(DT_SIP_SMC, method));
|
LOG_INF("Time taken for %08lx is %08lld ns", function_id,
|
||||||
|
k_cyc_to_ns_ceil64(end - start));
|
||||||
|
|
||||||
|
LOG_DBG("After %s call", DT_PROP(DT_SIP_SMC, method));
|
||||||
LOG_DBG("\tres->a0 %08lx", res->a0);
|
LOG_DBG("\tres->a0 %08lx", res->a0);
|
||||||
LOG_DBG("\tres->a1 %08lx", res->a1);
|
LOG_DBG("\tres->a1 %08lx", res->a1);
|
||||||
LOG_DBG("\tres->a2 %08lx", res->a2);
|
LOG_DBG("\tres->a2 %08lx", res->a2);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue