Re: [PATCH v5] trace: acquire buffer from temparary trace sequence

From: Steven Rostedt
Date: Mon Jan 30 2023 - 14:30:54 EST


On Mon, 30 Jan 2023 21:14:01 +0800
Linyu Yuan <quic_linyyuan@xxxxxxxxxxx> wrote:

> @Steven current design is not safe, as user still can write to buffer
> which have no enough space.

I'm assuming that it would never use more that DWC3_MSG_MAX, and that's set
to 500. The size of the trace_seq() is 4096 (or PAGE_SIZE), I doubt it will
ever be an issue.

How do you think the user can still write more than enough?

-- Steve

>
> do you think it is better to improve dwc3 trace in fast assign path ?
>