@@ -343,10 +343,10 @@ void sys_trace_thread_info(struct k_thread *thread);
343343#define sys_port_trace_k_condvar_broadcast_exit (condvar , ret ) \
344344 SEGGER_SYSVIEW_RecordEndCallU32(TID_CONDVAR_BROADCAST, (uint32_t)ret)
345345
346- #define sys_port_trace_k_condvar_wait_enter (condvar ) \
347- SEGGER_SYSVIEW_RecordU32 (TID_CONDVAR_WAIT, (uint32_t)(uintptr_t)condvar)
346+ #define sys_port_trace_k_condvar_wait_enter (condvar , timeout ) \
347+ SEGGER_SYSVIEW_RecordU32x2 (TID_CONDVAR_WAIT, (uint32_t)(uintptr_t)condvar, (uint32_t)timeout.ticks )
348348
349- #define sys_port_trace_k_condvar_wait_exit (condvar , ret ) \
349+ #define sys_port_trace_k_condvar_wait_exit (condvar , timeout , ret ) \
350350 SEGGER_SYSVIEW_RecordEndCallU32(TID_CONDVAR_WAIT, (uint32_t)ret)
351351
352352#define sys_port_trace_k_queue_init (queue ) \
@@ -505,22 +505,50 @@ void sys_trace_thread_info(struct k_thread *thread);
505505#define sys_port_trace_k_stack_pop_blocking (stack , timeout )
506506#define sys_port_trace_k_stack_pop_exit (stack , timeout , ret )
507507
508- #define sys_port_trace_k_msgq_init (msgq )
509- #define sys_port_trace_k_msgq_alloc_init_enter (msgq )
510- #define sys_port_trace_k_msgq_alloc_init_exit (msgq , ret )
511- #define sys_port_trace_k_msgq_cleanup_enter (msgq )
512- #define sys_port_trace_k_msgq_cleanup_exit (msgq , ret )
513- #define sys_port_trace_k_msgq_put_enter (msgq , timeout )
508+ #define sys_port_trace_k_msgq_init (msgq ) \
509+ SEGGER_SYSVIEW_RecordU32(TID_MSGQ_INIT, (uint32_t)(uintptr_t)msgq)
510+
511+ #define sys_port_trace_k_msgq_alloc_init_enter (msgq ) \
512+ SEGGER_SYSVIEW_RecordU32(TID_MSGQ_INIT, (uint32_t)(uintptr_t)msgq)
513+
514+ #define sys_port_trace_k_msgq_alloc_init_exit (msgq , ret ) \
515+ SEGGER_SYSVIEW_RecordEndCall(TID_MSGQ_INIT)
516+
517+ #define sys_port_trace_k_msgq_cleanup_enter (msgq ) \
518+ SEGGER_SYSVIEW_RecordU32(TID_MSGQ_CLEANUP, (uint32_t)(uintptr_t)msgq)
519+
520+ #define sys_port_trace_k_msgq_cleanup_exit (msgq , ret ) \
521+ SEGGER_SYSVIEW_RecordEndCall(TID_MSGQ_CLEANUP)
522+
523+ #define sys_port_trace_k_msgq_put_enter (msgq , timeout ) \
524+ SEGGER_SYSVIEW_RecordU32x2(TID_MSGQ_PUT, (uint32_t)(uintptr_t)msgq, (uint32_t)timeout.ticks)
525+
514526#define sys_port_trace_k_msgq_put_blocking (msgq , timeout )
515- #define sys_port_trace_k_msgq_put_exit (msgq , timeout , ret )
516- #define sys_port_trace_k_msgq_put_front_enter (msgq , timeout )
527+
528+ #define sys_port_trace_k_msgq_put_exit (msgq , timeout , ret ) \
529+ SEGGER_SYSVIEW_RecordEndCall(TID_MSGQ_PUT)
530+
531+ #define sys_port_trace_k_msgq_put_front_enter (msgq , timeout ) \
532+ SEGGER_SYSVIEW_RecordU32x2(TID_MSGQ_PUT_FRONT, (uint32_t)(uintptr_t)msgq, (uint32_t)timeout.ticks)
533+
517534#define sys_port_trace_k_msgq_put_front_blocking (msgq , timeout )
518- #define sys_port_trace_k_msgq_put_front_exit (msgq , timeout , ret )
519- #define sys_port_trace_k_msgq_get_enter (msgq , timeout )
535+
536+ #define sys_port_trace_k_msgq_put_front_exit (msgq , timeout , ret ) \
537+ SEGGER_SYSVIEW_RecordEndCall(TID_MSGQ_PUT_FRONT)
538+
539+ #define sys_port_trace_k_msgq_get_enter (msgq , timeout ) \
540+ SEGGER_SYSVIEW_RecordU32x2(TID_MSGQ_GET, (uint32_t)(uintptr_t)msgq, (uint32_t)timeout.ticks)
541+
520542#define sys_port_trace_k_msgq_get_blocking (msgq , timeout )
521- #define sys_port_trace_k_msgq_get_exit (msgq , timeout , ret )
522- #define sys_port_trace_k_msgq_peek (msgq , ret )
523- #define sys_port_trace_k_msgq_purge (msgq )
543+
544+ #define sys_port_trace_k_msgq_get_exit (msgq , timeout , ret ) \
545+ SEGGER_SYSVIEW_RecordEndCall(TID_MSGQ_GET)
546+
547+ #define sys_port_trace_k_msgq_peek (msgq , ret ) \
548+ SEGGER_SYSVIEW_RecordU32(TID_MSGQ_PEEK, (uint32_t)(uintptr_t)msgq)
549+
550+ #define sys_port_trace_k_msgq_purge (msgq ) \
551+ SEGGER_SYSVIEW_RecordU32(TID_MSGQ_PURGE, (uint32_t)(uintptr_t)msgq)
524552
525553#define sys_port_trace_k_mbox_init (mbox )
526554#define sys_port_trace_k_mbox_message_put_enter (mbox , timeout )
0 commit comments