Skip to content

Commit 89add20

Browse files
committed
tracing: ctf: add missing return value for mutex_unlock
Add missing return for mutex_unlock. Signed-off-by: Anas Nashif <[email protected]>
1 parent 8abb8f7 commit 89add20

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

subsys/tracing/ctf/ctf_top.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ static inline void ctf_top_mutex_unlock_enter(uint32_t mutex_id)
401401

402402
static inline void ctf_top_mutex_unlock_exit(uint32_t mutex_id, int32_t ret)
403403
{
404-
CTF_EVENT(CTF_LITERAL(uint8_t, CTF_EVENT_MUTEX_UNLOCK_EXIT), mutex_id);
404+
CTF_EVENT(CTF_LITERAL(uint8_t, CTF_EVENT_MUTEX_UNLOCK_EXIT), mutex_id, ret);
405405
}
406406

407407
/* Timer */

subsys/tracing/ctf/tsdl/metadata

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ event {
274274
id = 0x2D;
275275
fields := struct {
276276
uint32_t id;
277+
int32_t ret;
277278
};
278279
};
279280

0 commit comments

Comments
 (0)