Re: [PATCH 4/8] tracing/function: Introduce persistent trace option

From: Steven Rostedt
Date: Tue Jul 10 2012 - 08:58:55 EST


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))
> + pstore_ftrace_call(ip, parent_ip);
> pc = preempt_count();
> trace_function(tr, ip, parent_ip, flags, pc);
> }


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