[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230130143041.713c4c7b@gandalf.local.home>
Date: Mon, 30 Jan 2023 14:30:41 -0500
From: Steven Rostedt <rostedt@...dmis.org>
To: Linyu Yuan <quic_linyyuan@...cinc.com>
Cc: Masami Hiramatsu <mhiramat@...nel.org>,
<linux-kernel@...r.kernel.org>,
<linux-trace-kernel@...r.kernel.org>
Subject: Re: [PATCH v5] trace: acquire buffer from temparary trace sequence
On Mon, 30 Jan 2023 21:14:01 +0800
Linyu Yuan <quic_linyyuan@...cinc.com> 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 ?
>
Powered by blists - more mailing lists