public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Randy Dunlap <randy.dunlap@oracle.com>,
	Elias Oltmanns <eo@nebensachen.de>,
	LKML <linux-kernel@vger.kernel.org>, Ingo Molnar <mingo@elte.hu>,
	Thomas Gleixner <tglx@linutronix.de>,
	Peter Zijlstra <peterz@infradead.org>,
	Clark Williams <clark.williams@gmail.com>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Jon Masters <jonathan@jonmasters.org>
Subject: Re: [PATCH -v2] ftrace: Documentation
Date: Mon, 14 Jul 2008 18:59:05 -0700	[thread overview]
Message-ID: <m13ambkivq.fsf@frodo.ebiederm.org> (raw)
In-Reply-To: <Pine.LNX.4.58.0807142142070.4223@gandalf.stny.rr.com> (Steven Rostedt's message of "Mon, 14 Jul 2008 21:43:46 -0400 (EDT)")

Steven Rostedt <rostedt@goodmis.org> writes:

> On Mon, 14 Jul 2008, Eric W. Biederman wrote:
>
>>
>> Steven Rostedt <rostedt@goodmis.org> writes:
>>
>> > Actually it is a /debug (or /sys/mount/debug if you prefer) file.
>>
>> Got it.  I haven't ever actually seen anyone use debugfs.
>>
>> > I'd be interested in knowing who would want namespaces in traces. I've
>> > basically only used tracing to see "what's happening in the kernel here?".
>> > Where I only use the pid to differentiate between the tasks I know are
>> > running.
>>
>> > Hence, tracing is much like printk. Does it really matter with these
>> > outputs. But ftrace is pluggable, pid namespaces may matter in future
>> > plugins.
>
> Bare with me, I'm new to the namespace concept of pids.

Sure.  Just bare with me as I am new to the concept of ftrace.

>> So it would not be hard to capture the pid namespace in mount or
>> even look at current to get it (although the last is a little odd).
>
>>From userspace or from with the kernel (doing the trace)
>
>>
>> I'm not at all certain if it makes sense.  If this is something
>> an ordinary user could use then we definitely want to do something.
>>
>> Is tracing possible without inserting kernel modules?
>
> The tracer is built into the kernel (no module needed).

Ok.  So this is something simpler to use then SystemTap.  Yeah.

It sounds like it is reasonable or at least semi reasonable to use
this as an unprivileged user.

The easiest model to think of this in is a chroot that does pids as
well as the filesystem.  In which case if you are inside one and
you use the tracer.  You want pids that are meaningful in your
subset of userspace, and not the global ones.

Eric


  reply	other threads:[~2008-07-15  2:02 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-10 16:46 [PATCH] ftrace: Documentation Steven Rostedt
2008-07-10 18:16 ` Jon Masters
2008-07-10 19:59 ` Elias Oltmanns
2008-07-10 20:28   ` Randy Dunlap
2008-07-11  0:02     ` Steven Rostedt
2008-07-11  0:37       ` [PATCH -v2] " Steven Rostedt
2008-07-11 19:16         ` Andrew Morton
2008-07-11 20:59           ` Steven Rostedt
2008-07-11 22:37             ` Andrew Morton
2008-07-11 23:16               ` Eric W. Biederman
2008-07-15  1:08                 ` Steven Rostedt
2008-07-15  1:26                   ` Eric W. Biederman
2008-07-15  1:43                     ` Steven Rostedt
2008-07-15  1:59                       ` Eric W. Biederman [this message]
2008-07-15  2:18                         ` Steven Rostedt
2008-07-15  2:41                           ` Eric W. Biederman
2008-07-15  3:05                             ` Steven Rostedt
2008-07-15  3:29                               ` Eric W. Biederman
2008-07-12 10:16               ` John Kacur
2008-07-16 10:10         ` Florian Weimer
2008-07-16 11:39           ` Steven Rostedt
2008-07-17 14:19             ` Christoph Hellwig
2008-07-18  2:47               ` Steven Rostedt
2008-07-20 11:16                 ` Christoph Hellwig
2008-07-10 23:55   ` [PATCH] " Steven Rostedt
2008-07-11  7:51     ` Elias Oltmanns
2008-07-12 12:49 ` Abhishek Sagar
2008-07-15 14:39   ` Steven Rostedt
2008-07-15 15:33     ` Abhishek Sagar
2008-07-14  9:38 ` Peter Zijlstra
2008-07-14 18:02 ` David Teigland
2008-07-14 19:59   ` Steven Rostedt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m13ambkivq.fsf@frodo.ebiederm.org \
    --to=ebiederm@xmission.com \
    --cc=akpm@linux-foundation.org \
    --cc=clark.williams@gmail.com \
    --cc=eo@nebensachen.de \
    --cc=jonathan@jonmasters.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=peterz@infradead.org \
    --cc=randy.dunlap@oracle.com \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox