lkml.org 
[lkml]   [2012]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 5/7] ftrace, perf: Add support to use function tracepoint in perf
From
Date
On Sat, 2012-02-04 at 14:21 +0100, Frederic Weisbecker wrote:
> struct ftrace_event_call __used event_##call = { \
> > @@ -170,4 +179,9 @@ struct ftrace_event_call __used event_##call = { \
> > struct ftrace_event_call __used \
> > __attribute__((section("_ftrace_events"))) *__event_##call = &event_##call;
> >
> > +#undef FTRACE_ENTRY
> > +#define FTRACE_ENTRY(call, struct_name, etype, tstruct, print) \
> > + FTRACE_ENTRY_REG(call, struct_name, etype, \
> > + PARAMS(tstruct), PARAMS(print), NULL)
> > +
> > #include "trace_entries.h"
>
>
> Yeah looks good. I wouldn't mind having only FTRACE_ENTRY() with one
> more parameter but I'm fine with the two macros as well.

I prefer the two macros. It's cleaner.

-- Steve




\
 
 \ /
  Last update: 2012-02-06 20:37    [W:0.100 / U:0.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site