Re: [PATCH 1/5][RFC] tracing: add function profiler

Steven Rostedt
2009-03-25T19:31:41Z

On Wed, 25 Mar 2009, Frederic Weisbecker wrote:
> > +
> > +static const struct file_operations ftrace_profile_fops = {
> > + .open = tracing_open_generic,
> > + .read = ftrace_profile_read,
> > + .write = ftrace_profile_write,
> > +};
>
>
> I should really provide such helper per stat tracer.
>
> Say, something like:
>
> /debug/tracing/trace_stat/name/enable
>

No, because if you notice in the later patches, I add a per cpu tracing.
This is standard operations, and adding too much will unnecessarily limit
what we can do.

-- Steve