Re: [PATCH 1/3] ftrace: add function tracing to single thread

From: Steven Rostedt
Date: Tue Nov 25 2008 - 19:16:58 EST



On Wed, 26 Nov 2008, Fr?d?ric Weisbecker wrote:

> 2008/11/25 Steven Rostedt <rostedt@xxxxxxxxxxx>:
> > From: Steven Rostedt <srostedt@xxxxxxxxxx>
> >
> > Impact: feature to function trace a single thread
> >
> > This patch adds the ability to function trace a single thread.
> > The file:
> >
> > /debugfs/tracing/set_ftrace_pid
>
>
> That's a good idea!
>
> About the pid, I think they are unique (which is not the case for tgid
> for multiple threads).
> pid are tgid + number of the thread....
>
> But perhaps I'm wrong....

Hmm, I can see that there could be times we would want to trace all
threads, and times to trace only a single thread. This should default to
the tgid.

We could echo in "t:pid" to trace per thread. and just "pid" to trace non
all threads in a group.

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