On Mon, 2012-07-09 at 17:10 -0700, Anton Vorontsov wrote:
+static struct tracer_flags func_flags;
static void function_trace_call(unsigned long ip, unsigned long parent_ip) { @@ -97,6 +106,12 @@ function_trace_call(unsigned long ip, unsigned long parent_ip) disabled = atomic_inc_return(&data->disabled); if (likely(disabled == 1)) {
/*
* So far tracing doesn't support multiple buffers, so
* we make an explicit call for now.
I'm working on it ;-)
-- Steve
*/
if (unlikely(func_flags.val & TRACE_FUNC_OPT_PSTORE))
pc = preempt_count(); trace_function(tr, ip, parent_ip, flags, pc); }pstore_ftrace_call(ip, parent_ip);