Re: [PATCH] trace: Fix build breakage without CONFIG_PERF_EVENTS

From: Steven Rostedt
Date: Tue Mar 13 2012 - 18:33:33 EST


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;


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