On Tue, 2009-04-07 at 01:06 +0400, Fedor Sakharov wrote:
> Hello!
> Is it possible to use utrace to breakpoint user-spase tasks as it is in 
> the case of ptrace? And if it is, what is the possible way to do it?
> 
> Fedor Sakharov
> 

Uprobes does exactly that.  It's been around for a couple of years, and
this past summer SystemTap was enhanced to exploit uprobes to do
user-space tracing.  SystemTap is the easiest way to use uprobes, but if
you're into bare-knuckles instrumentation modules, the API is:
   [un]register_u[ret]probe(struct u[ret]probe*) 

Uprobes is a client of utrace.  It's been tucked into the SystemTap
runtime (runtime/uprobes[2]) since October 2007, but for various reasons
(LONG story) it hasn't debuted on LKML yet.

The uprobes API is documented in the SystemTap source:
runtime/uprobes/uprobes.txt.

Jim Keniston

Reply via email to