Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Dominique Toupin <dominique.toupin@ericsson.com>
To: "Frank Ch. Eigler" <fche@redhat.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>,
	        "systemtap@sourceware.org" 	<systemtap@sourceware.org>
Subject: RE: Static/dynamic userspace/kernel trace
Date: Mon, 19 Apr 2010 19:50:00 -0000	[thread overview]
Message-ID: <D58A856745AB5A47B1448181D1A8BBFA01CB208AA0@EUSAACMS0701.eamcs.ericsson.se> (raw)
In-Reply-To: <20100419141356.GC4823@redhat.com>


I agree that GDB could use a better ptrace.

Regarding tracing, for me the main use case is to get the data out of the system very fast and with very low overhead, besides conditional tracing and a few minor things, most of the analysis is done on the host side, either after the fact or in streaming mode. Doing historical analysis on the target or big actions are not an option for me. I guess in the IT industry more cycles are available to do those kinds of analysis directly on the target server.


> -----Original Message-----
> From: Frank Ch. Eigler [mailto:fche@redhat.com] 
> Sent: 19-Apr-10 10:14
> To: Dominique Toupin
> Cc: gdb@sourceware.org; systemtap@sourceware.org
> Subject: Re: Static/dynamic userspace/kernel trace
> 
> Hi -
> 
> On Mon, Apr 19, 2010 at 09:16:04AM -0400, Dominique Toupin wrote:
> 
> > I had a chat with Tom at the collaboration summit on 
> tracing, he was 
> > suggesting I send you a mail on a recent GDB improvement.  
> You might 
> > not be aware that user space dynamic tracepoint are now 
> available in 
> > GDB, in process tracing if a few byte space is available to put a 
> > jump, if that space is not available then a trap between 
> gdbserver and 
> > the process. With this addition all aspects of tracing seem to be 
> > covered:
> >
> >  - static user space: LTTng UST
> >  - dynamic user space: GDB dynamic tracepoint
> >  - static kernel: kernel static tracepoint/trace event
> >  - dynamic kernel: kprobe
> >
> > and conditional tracing is available for both kernel and user space.
> 
> All right.
> 
> 
> > Tom was saying uprobes/utrace can bring nice improvements 
> for ptrace, 
> > for tracing it was not clear to me or Tom why we need 
> uprobe/utrace or 
> > why systemtap needs it. Do you have a use case where the 
> above tracing 
> > cannot be use and uprobe/utrace is needed instead?
> 
> Recall that systemtap goes beyond just tracing with simple 
> local conditions.  There are dozens of nontrivial systemtap 
> scripts that involve conditions based on history, searching 
> through live data structures, taking actions, making state 
> changes.  The above technologies do not stretch that far, nor 
> are they integrated.
> 
> The main motivating dependence by systemtap on utrace has 
> been due to uprobes.  We shall see to what extent lkml is 
> receptive to a utrace-free-uprobes implementation being 
> worked on now.  If it is merged and usable, this would moot 
> one particular dependence.  But there are other needs: proper 
> process control facility like utrace enables scripted 
> operations such as clean thread suspend/resume or signal 
> generation/suppression.
> 
> And of course utrace in general has ambitions beyond 
> systemtap.  As oft repeated on lkml etc., some sort of 
> process control multiplexing facility is necessary so that a 
> single ptrace-client tool does not monopolize target 
> processes.  That newfangled gdb tracing stuff does not work 
> if someone was already strace'ing the same process.  This is 
> why we prototyped the gdbstub-in-kernel for userspace 
> processes, based on utrace.  It already demonstrated 
> concurrent gdb+strace on the same threads.
> 
> 
> - FChE
> 


  reply	other threads:[~2010-04-19 19:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <D58A856745AB5A47B1448181D1A8BBFA01CB20875C@EUSAACMS0701.eamcs.ericsson.se>
2010-04-19 14:14 ` Frank Ch. Eigler
2010-04-19 19:50   ` Dominique Toupin [this message]
2010-04-20  7:59     ` Mark Wielaard
2010-04-22 19:46       ` Dominique Toupin
2010-04-20 17:28     ` Frank Ch. Eigler
2010-04-20 14:01   ` Srikar Dronamraju
2010-04-20 18:06     ` Stan Shebs

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=D58A856745AB5A47B1448181D1A8BBFA01CB208AA0@EUSAACMS0701.eamcs.ericsson.se \
    --to=dominique.toupin@ericsson.com \
    --cc=fche@redhat.com \
    --cc=gdb@sourceware.org \
    --cc=systemtap@sourceware.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