Re: [PATCH 5/5][RFC] function-graph: add option to calculate graphtime or not

From: Ingo Molnar
Date: Wed Mar 25 2009 - 06:12:30 EST



* Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> --- a/kernel/trace/trace_functions_graph.c
> +++ b/kernel/trace/trace_functions_graph.c
> @@ -104,9 +105,6 @@ ftrace_pop_return_trace(struct ftrace_graph_ret *trace, unsigned long *ret)
> trace->calltime = current->ret_stack[index].calltime;
> trace->overrun = atomic_read(&current->trace_overrun);
> trace->depth = index;
> - barrier();
> - current->curr_ret_stack--;
> -
> }
>
> /*
> @@ -121,6 +119,8 @@ unsigned long ftrace_return_to_handler(void)
> ftrace_pop_return_trace(&trace, &ret);
> trace.rettime = trace_clock_local();
> ftrace_graph_return(&trace);
> + barrier();
> + current->curr_ret_stack--;

this will modify the regular graph tracer too. No discussion of this
change in the changelog - is it a fix?

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