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: <alpine.DEB.2.00.0905142000540.30591@gandalf.stny.rr.com>
Date:	Thu, 14 May 2009 20:01:20 -0400 (EDT)
From:	Steven Rostedt <rostedt@...dmis.org>
To:	Frederic Weisbecker <fweisbec@...il.com>
cc:	LKML <linux-kernel@...r.kernel.org>,
	Christoph Hellwig <hch@...radead.org>,
	Ingo Molnar <mingo@...e.hu>,
	Mathieu Desnoyers <mathieu.desnoyers@...ymtl.ca>,
	Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [RFC] tracing: adding flags to events




On Fri, 15 May 2009, Frederic Weisbecker wrote:

> On Thu, May 14, 2009 at 07:18:23PM -0400, Steven Rostedt wrote:
> > > > +
> > > >  #undef TRACE_EVENT
> > > >  #define TRACE_EVENT(call, proto, args, tstruct, assign, print)		\
> > > >  enum print_line_t							\
> > > > @@ -127,6 +132,7 @@ ftrace_raw_output_##call(struct trace_iterator *iter, int flags)	\
> > > >  	struct trace_seq *s = &iter->seq;				\
> > > >  	struct ftrace_raw_##call *field;				\
> > > >  	struct trace_entry *entry;					\
> > > > +	struct trace_seq *p;						\
> > > >  	int ret;							\
> > > >  									\
> > > >  	entry = iter->ent;						\
> > > > @@ -138,7 +144,9 @@ ftrace_raw_output_##call(struct trace_iterator *iter, int flags)	\
> > > >  									\
> > > >  	field = (typeof(field))entry;					\
> > > >  									\
> > > > +	p = &get_cpu_var(ftrace_event_seq);				\
> > > >  	ret = trace_seq_printf(s, #call ": " print);			\
> > > > +	put_cpu();							\
> > > 
> > > 
> > > 
> > > I don't understand the role of this per-cpu trace_seq variable.
> > > It doesn't seem to be used.
> > 
> > See it now? ;-)
> 
> 
> Still not :-)
> 
> I don't understand, it doesn't seem to be used. May be I'm too
> much sleepy to understand...

That's because you cut out an important detail ;-)

> > +#define __print_flags(flag, x...) ftrace_print_flags_seq(p, flag, x)


-- Steve

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ