Re: [PATCH 2/3] utrace core

2009-03-21 Thread Andrew Morton
On Fri, 20 Mar 2009 18:41:40 -0700 (PDT) Roland McGrath wrote: > This adds the utrace facility, a new modular interface in the kernel for > implementing user thread tracing and debugging. This fits on top of the > tracehook_* layer, so the new code is well-isolated. > > The new interface is in

Re: [PATCH 2/3] utrace core

2009-03-21 Thread Renzo Davoli
Tracing does not mean only debug. Some tracing facilities can be used for virtualization. For example User-Mode Linux is based on ptrace. I have a prototype of kernel module for virtualization (kmview) based on utrace. Using kmview (module+VMM) it is possible for a user (not root) to mount a fil

Re: [PATCH 2/3] utrace core

2009-03-21 Thread Ingo Molnar
* Renzo Davoli wrote: > Tracing does not mean only debug. Some tracing facilities can be > used for virtualization. For example User-Mode Linux is based on > ptrace. > > I have a prototype of kernel module for virtualization (kmview) > based on utrace. [...] Hm, i cannot find the source cod

Re: [PATCH 2/3] utrace core

2009-03-21 Thread Renzo Davoli
On Sat, Mar 21, 2009 at 03:34:57PM +0100, Ingo Molnar wrote: > > * Renzo Davoli wrote: > > > Tracing does not mean only debug. Some tracing facilities can be > > used for virtualization. For example User-Mode Linux is based on > > ptrace. > > > > I have a prototype of kernel module for virtua

Re: [PATCH 2/3] utrace core

2009-03-21 Thread Ingo Molnar
* Renzo Davoli wrote: > On Sat, Mar 21, 2009 at 03:34:57PM +0100, Ingo Molnar wrote: > > > > * Renzo Davoli wrote: > > > > > Tracing does not mean only debug. Some tracing facilities can be > > > used for virtualization. For example User-Mode Linux is based on > > > ptrace. > > > > > > I h

Re: [PATCH 2/3] utrace core

2009-03-22 Thread Roland McGrath
> That's btw. what i see as the biggest value of utrace: it's a > comprehesive, all-encompassing framework all around process state > events and process state manipulation. Me too! And while we're on the btw's, I want to let everyone know that Ingo is the one who came up with the name "utrace

Re: [PATCH 2/3] utrace core

2009-03-22 Thread Roland McGrath
> I'd be interested in seeing a bit of discussion regarding the overall value > of utrace - it has been quite a while since it floated past. Me too! > I assume that redoing ptrace to be a client of utrace _will_ happen, and > that this is merely a cleanup exercise with no new user-visible feature

Re: [PATCH 2/3] utrace core

2009-03-23 Thread Will Newton
On Sat, Mar 21, 2009 at 8:49 AM, Andrew Morton wrote: > On Fri, 20 Mar 2009 18:41:40 -0700 (PDT) Roland McGrath > wrote: > >> This adds the utrace facility, a new modular interface in the kernel for >> implementing user thread tracing and debugging.  This fits on top of the >> tracehook_* layer,