From 838f5813003d66b3949cf1c825bfc3aae8cb33ce Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 30 Aug 2022 20:58:51 -0400 Subject: [PATCH] tracing: ctf: change timer values to us instead of ms Be consistent with timeout values and use micro seconds. Signed-off-by: Anas Nashif --- subsys/tracing/ctf/ctf_top.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/subsys/tracing/ctf/ctf_top.c b/subsys/tracing/ctf/ctf_top.c index 100e770ba7..cf2bad5aef 100644 --- a/subsys/tracing/ctf/ctf_top.c +++ b/subsys/tracing/ctf/ctf_top.c @@ -181,7 +181,7 @@ void sys_trace_k_sem_take_enter(struct k_sem *sem, k_timeout_t timeout) { ctf_top_semaphore_take_enter( (uint32_t)(uintptr_t)sem, - k_ticks_to_ms_floor32((uint32_t)timeout.ticks) + k_ticks_to_us_floor32((uint32_t)timeout.ticks) ); } @@ -190,7 +190,7 @@ void sys_trace_k_sem_take_blocking(struct k_sem *sem, k_timeout_t timeout) { ctf_top_semaphore_take_blocking( (uint32_t)(uintptr_t)sem, - k_ticks_to_ms_floor32((uint32_t)timeout.ticks) + k_ticks_to_us_floor32((uint32_t)timeout.ticks) ); } @@ -198,7 +198,7 @@ void sys_trace_k_sem_take_exit(struct k_sem *sem, k_timeout_t timeout, int ret) { ctf_top_semaphore_take_exit( (uint32_t)(uintptr_t)sem, - k_ticks_to_ms_floor32((uint32_t)timeout.ticks), + k_ticks_to_us_floor32((uint32_t)timeout.ticks), (uint32_t)ret ); } @@ -237,7 +237,7 @@ void sys_trace_k_mutex_lock_enter(struct k_mutex *mutex, k_timeout_t timeout) { ctf_top_mutex_lock_enter( (uint32_t)(uintptr_t)mutex, - k_ticks_to_ms_floor32((uint32_t)timeout.ticks) + k_ticks_to_us_floor32((uint32_t)timeout.ticks) ); } @@ -245,7 +245,7 @@ void sys_trace_k_mutex_lock_blocking(struct k_mutex *mutex, k_timeout_t timeout) { ctf_top_mutex_lock_blocking( (uint32_t)(uintptr_t)mutex, - k_ticks_to_ms_floor32((uint32_t)timeout.ticks) + k_ticks_to_us_floor32((uint32_t)timeout.ticks) ); } @@ -253,7 +253,7 @@ void sys_trace_k_mutex_lock_exit(struct k_mutex *mutex, k_timeout_t timeout, int { ctf_top_mutex_lock_exit( (uint32_t)(uintptr_t)mutex, - k_ticks_to_ms_floor32((uint32_t)timeout.ticks), + k_ticks_to_us_floor32((uint32_t)timeout.ticks), (int32_t)ret ); }