Re: [PATCH 5/7] ftrace, perf: Add support to use functiontracepoint in perf

From: Steven Rostedt
Date: Fri Feb 03 2012 - 09:07:42 EST


On Fri, 2012-02-03 at 14:00 +0100, Jiri Olsa wrote:

> and use FTRACE_ENTRY_REG for ftrace event like:
>
> FTRACE_ENTRY_REG(function, ftrace_entry,
> TRACE_FN,
> F_STRUCT(
> __field( unsigned long, ip )
> __field( unsigned long, parent_ip )
> ),
> F_printk(" %lx <-- %lx", __entry->ip, __entry->parent_ip),
> perf_ftrace_event_register
> );

This should be fine.

-- Steve


--
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/