Messages in this thread | | | Subject | Re: [PATCH 1/1] ftrace - add support for tracing_thresh to function_graph tracer | From | Steven Rostedt <> | Date | Mon, 22 Feb 2010 20:23:05 -0500 |
| |
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
| |