public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Prasanna S Panchamukhi <prasanna@in.ibm.com>
To: Arjan van de Ven <arjan@infradead.org>
Cc: Andrew Morton <akpm@osdl.org>, Andi Kleen <ak@suse.de>,
	davem@davemloft.net, suparna@in.ibm.com,
	richardj_moore@uk.ibm.com, linux-kernel@vger.kernel.org,
	Christoph Hellwig <hch@infradead.org>,
	"Theodore Ts'o" <tytso@mit.edu>,
	Nick Piggin <nickpiggin@yahoo.com.au>
Subject: Re: RFC - Approaches to user-space probes
Date: Mon, 27 Mar 2006 15:30:19 +0530	[thread overview]
Message-ID: <20060327100019.GA30427@in.ibm.com> (raw)
In-Reply-To: <1143445068.2886.20.camel@laptopd505.fenrus.org>

On Mon, Mar 27, 2006 at 09:37:48AM +0200, Arjan van de Ven wrote:
> On Mon, 2006-03-27 at 12:24 +0530, Prasanna S Panchamukhi wrote:
> 
> > - Low overhead and user can have thousands of active probes on the
> >   system and detect any instance when the probe was hit including
> >   probes on shared library etc.
> 
> I suspect this is the only reason for doing it inside the kernel;
> anything else still really shouts "do it in userspace via ptrace" to me.
> 

Other reasons would be:

- to view some privilaged data, such as system regs while you are
  debugging in user-space
- to view many arbitrary process address-space that use a common set
  of modules - user or kernel space

> 
> > ===========================================================
> > LOCAL PROBES(PER PROCESS) VS GLOBAL PROBES(EXECUTABLE FILE)
> > ===========================================================
> > 
> > - All processes take a trap since the same executable file
> >   gets mapped into different address_space.
> 
> is that true for breakpoints inserted after start?

Yes, insertion of the breakpoint happens at the physical
page level and it gets written back to the disc.

> The reason I ask because... what if half the processed took a COW on the
> page with the instruction you want to trap on. Are you going to edit all
> those COW'd pages?

The current prototype does not insert probes on COW pages, but yes eventually
we will provide probes insertions on COW'd pages feature too.

Thanks
Prasanna
-- 
Prasanna S Panchamukhi
Linux Technology Center
India Software Labs, IBM Bangalore
Email: prasanna@in.ibm.com
Ph: 91-80-51776329

  reply	other threads:[~2006-03-27 10:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-27  6:54 RFC - Approaches to user-space probes Prasanna S Panchamukhi
2006-03-27  7:37 ` Arjan van de Ven
2006-03-27 10:00   ` Prasanna S Panchamukhi [this message]
2006-03-27 20:03     ` Arjan van de Ven
2006-03-28  9:42       ` Richard J Moore
2006-03-28  9:47         ` Andi Kleen
2006-03-28 10:10           ` Richard J Moore
2006-03-28 14:54       ` Prasanna S Panchamukhi
2006-03-28 17:29         ` Arjan van de Ven
2006-03-28 20:35         ` Frank Ch. Eigler
2006-03-28 20:44           ` Andi Kleen
2006-03-31 11:55           ` Prasanna S Panchamukhi
2006-03-31 16:25             ` Frank Ch. Eigler

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=20060327100019.GA30427@in.ibm.com \
    --to=prasanna@in.ibm.com \
    --cc=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=arjan@infradead.org \
    --cc=davem@davemloft.net \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nickpiggin@yahoo.com.au \
    --cc=richardj_moore@uk.ibm.com \
    --cc=suparna@in.ibm.com \
    --cc=tytso@mit.edu \
    /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