Messages in this thread | | | Subject | Re: [PATCH] trace: Fix build breakage without CONFIG_PERF_EVENTS | From | Steven Rostedt <> | Date | Tue, 13 Mar 2012 18:33:32 -0400 |
| |
On Tue, 2012-02-28 at 15:57 +0100, Jiri Olsa wrote: > > > ook, this one fixies that for me as well ;) I got your replies mixed in > mailbox and thought this one was not actually working.. > > I also added this bit to get rid of the switch warnings, > feel free to use it. > > thanks, > jirka
Can you send me your Signed-off-by for this too. Thanks.
-- Steve
> --- > diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h > index dd478fc..5f3f3be 100644 > --- a/include/linux/ftrace_event.h > +++ b/include/linux/ftrace_event.h > @@ -144,12 +144,14 @@ struct event_filter; > enum trace_reg { > TRACE_REG_REGISTER, > TRACE_REG_UNREGISTER, > +#ifdef CONFIG_PERF_EVENTS > TRACE_REG_PERF_REGISTER, > TRACE_REG_PERF_UNREGISTER, > TRACE_REG_PERF_OPEN, > TRACE_REG_PERF_CLOSE, > TRACE_REG_PERF_ADD, > TRACE_REG_PERF_DEL, > +#endif > }; > > struct ftrace_event_call;
| |