Re: [PATCH 1/1] ftrace - add support for tracing_thresh tofunction_graph tracer

From: Steven Rostedt
Date: Mon Feb 22 2010 - 20:23:22 EST


On Mon, 2010-02-22 at 17:18 -0800, Tim Bird wrote:

> > Yeah, this is going to optimize both types of tracing. And I would
> > also like to prevent from adding new checks in the common graph
> > tracing if possible. User's cpus and cachelines deserve better :)
>
> I'll take a look at doing it this way, and see what I come
> up with. If I can re-use most of trace_graph_entry and
> trace_graph_return (and I don't see why not), it should be
> a pretty small patch.

Yeah, I did something similar with the function pid tracing. When you
select that the function tracer should test pids, it registers the
function that does the pid test, and then if the pid matches, it calls
the original function tracer callback.

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