lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3CD19752AA18BE4A91FBEE9F90EBB89D70C135AB@ORSMSX106.amr.corp.intel.com>
Date:   Thu, 7 Sep 2017 01:15:58 +0000
From:   "Liu, Baohong" <baohong.liu@...el.com>
To:     Steven Rostedt <rostedt@...dmis.org>,
        Tom Zanussi <tom.zanussi@...ux.intel.com>
CC:     "tglx@...utronix.de" <tglx@...utronix.de>,
        "mhiramat@...nel.org" <mhiramat@...nel.org>,
        "namhyung@...nel.org" <namhyung@...nel.org>,
        "Patel, Vedang" <vedang.patel@...el.com>,
        "bigeasy@...utronix.de" <bigeasy@...utronix.de>,
        "joel.opensrc@...il.com" <joel.opensrc@...il.com>,
        "joelaf@...gle.com" <joelaf@...gle.com>,
        "mathieu.desnoyers@...icios.com" <mathieu.desnoyers@...icios.com>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "linux-rt-users@...r.kernel.org" <linux-rt-users@...r.kernel.org>
Subject: RE: [PATCH v2 07/40] tracing: Apply absolute timestamps to instance
 max buffer

On Wed, 6 Sep 2017 20:49:46 -0400 Steven Rostedt wrote:
> On Tue,  5 Sep 2017 16:57:19 -0500
> Tom Zanussi <tom.zanussi@...ux.intel.com> wrote:
> 
> > From: Baohong Liu <baohong.liu@...el.com>
> >
> > Currently absolute timestamps are applied to both regular and max
> > buffers only for global trace. For instance trace, absolute timestamps
> > are applied only to regular buffer. But, regular and max buffers can
> > be swapped, for example, following a snapshot. So, for instance trace,
> > bad timestamps can be seen following a snapshot.
> > Let's apply absolute timestamps to instance max buffer as well.
> >
> > Similarly, buffer clock change is applied to instance max buffer as
> > well.
> >
> > Signed-off-by: Baohong Liu <baohong.liu@...el.com>
> > ---
> >  kernel/trace/trace.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index
> > 66d465e..719e4c1 100644
> > --- a/kernel/trace/trace.c
> > +++ b/kernel/trace/trace.c
> > @@ -6223,7 +6223,7 @@ static int tracing_set_clock(struct trace_array *tr,
> const char *clockstr)
> >  	tracing_reset_online_cpus(&tr->trace_buffer);
> >
> >  #ifdef CONFIG_TRACER_MAX_TRACE
> > -	if (tr->flags & TRACE_ARRAY_FL_GLOBAL && tr->max_buffer.buffer)
> > +	if (tr->max_buffer.buffer)
> >  		ring_buffer_set_clock(tr->max_buffer.buffer,
> trace_clocks[i].func);
> >  	tracing_reset_online_cpus(&tr->max_buffer);
> >  #endif
> 
> 
> 
> 
> > @@ -6307,7 +6307,7 @@ int tracing_set_time_stamp_abs(struct trace_array
> *tr, bool abs)
> >  	tracing_reset_online_cpus(&tr->trace_buffer);
> >
> >  #ifdef CONFIG_TRACER_MAX_TRACE
> > -	if (tr->flags & TRACE_ARRAY_FL_GLOBAL && tr->max_buffer.buffer)
> > +	if (tr->max_buffer.buffer)
> >  		ring_buffer_set_time_stamp_abs(tr->max_buffer.buffer, abs);
> >  	tracing_reset_online_cpus(&tr->max_buffer);
> >  #endif
> 
> Please fold this part into the previous patch. I'm adding the first part to my tree
> now and will start testing it tonight, and push it to Linus by the weekend.

Will do.

Thanks,

Baohong

> 
> -- Steve
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the
> body of a message to majordomo@...r.kernel.org More majordomo info at
> http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ