Commit 07f5a6fa authored by Erik Tamlin's avatar Erik Tamlin Committed by Benjamin Cabé
Browse files

k_pipe: fix trace point for blocking writes



Fix the trace point in k_pipe wait_for.

Signed-off-by: default avatarErik Tamlin <erik.tamlin@percepio.com>
parent 25b66c97
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -46,7 +46,11 @@ static int wait_for(_wait_q_t *waitq, struct k_pipe *pipe, k_spinlock_key_t *key

	pipe->waiting++;
	*need_resched = false;
	if (waitq == &pipe->space) {
		SYS_PORT_TRACING_OBJ_FUNC_BLOCKING(k_pipe, write, pipe, timeout);
	} else {
		SYS_PORT_TRACING_OBJ_FUNC_BLOCKING(k_pipe, read, pipe, timeout);
	}
	rc = z_pend_curr(&pipe->lock, *key, waitq, timeout);
	*key = k_spin_lock(&pipe->lock);
	pipe->waiting--;