Re: [GIT PULL] tracing: histogram fix and take 2 on the __string_len() marcros

From: Steven Rostedt
Date: Mon Jul 19 2021 - 09:46:07 EST


On Sat, 17 Jul 2021 16:51:58 +0000
Chuck Lever III <chuck.lever@xxxxxxxxxx> wrote:

> Thanks. I can carry whichever version of this patch that both you
> and Linus are happy with. I will apply my changes to use __string_len()
> on top of it, and send the whole mess when v5.15 opens in a couple
> months.

The version in this email is the one that I believe is something that
myself and Linus can live with. It uses memcpy() as it replaces a
memcpy() and I added documentation about it in the
samples/trace_events/ directory.

-- Steve


>
>
> > Hopefully
> > it wont conflict with other work I'm doing. But if it does, we'll work
> > it out. I don't have any code that relies on it.
> >
> > -- Steve
> >
> > From: "Steven Rostedt (VMware)" <rostedt@xxxxxxxxxxx>
> > Subject: [PATCH] tracing: Add trace_event helper macros __string_len() and
> > __assign_str_len()
> >