Re: [PATCH v1 7/10] Uprobes Implementation

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Tuesday, March 23, 2010 - 6:46 am

On Tue, 2010-03-23 at 17:53 +0530, Srikar Dronamraju wrote:


Well userspace would simply specify something like: /lib/libc.so:malloc,
we'd probably communicate that to the kernel using a filedesc and
offset.

And yes, all processes that share that DSO, consumers can install
filters.


Don't do that ;-)

What reason would you have to sleep from a int3 anyway? You want to log
bits and get on with life, right? The only interesting case is faulting
when some memory references you want are not currently available, and
that can be done as suggested.


The per task slot (note the singular, each task needs only ever have a
single slot since a task can only ever hit one trap at a time) would
live in the task TLS or task stack.


I'm so not going to read ancient emails on a funky list. What re-use?
uprobe should be the only interface to this, there's no second interface
to kprobes either is there?
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v1 0/10] Uprobes patches., Srikar Dronamraju, (Sat Mar 20, 7:24 am)
[PATCH v1 1/10] Move Macro W to insn.h, Srikar Dronamraju, (Sat Mar 20, 7:25 am)
[PATCH v1 2/10] Move replace_page() to mm/memory.c, Srikar Dronamraju, (Sat Mar 20, 7:25 am)
[PATCH v1 3/10] Enhance replace_page() to support pagecache, Srikar Dronamraju, (Sat Mar 20, 7:25 am)
[PATCH v1 4/10] User Space Breakpoint Assistance Layer, Srikar Dronamraju, (Sat Mar 20, 7:25 am)
[PATCH v1 5/10] X86 details for user space breakpoint assi ..., Srikar Dronamraju, (Sat Mar 20, 7:25 am)
[PATCH v1 6/10] Slot allocation for Execution out of line, Srikar Dronamraju, (Sat Mar 20, 7:26 am)
[PATCH v1 7/10] Uprobes Implementation, Srikar Dronamraju, (Sat Mar 20, 7:26 am)
[PATCH v1 8/10] X86 details for uprobes., Srikar Dronamraju, (Sat Mar 20, 7:26 am)
[PATCH v1 9/10] Uprobes Documentation patch, Srikar Dronamraju, (Sat Mar 20, 7:26 am)
[PATCH v1 10/10] Uprobes samples., Srikar Dronamraju, (Sat Mar 20, 7:26 am)
Re: [PATCH v1 1/10] Move Macro W to insn.h, Masami Hiramatsu, (Sat Mar 20, 8:50 am)
Re: [PATCH v1 9/10] Uprobes Documentation patch, Randy Dunlap, (Sun Mar 21, 8:00 pm)
Re: [PATCH v1 9/10] Uprobes Documentation patch, Srikar Dronamraju, (Sun Mar 21, 10:34 pm)
Re: [PATCH v1 1/10] Move Macro W to insn.h, Srikar Dronamraju, (Sun Mar 21, 11:24 pm)
Re: [PATCH v1 1/10] Move Macro W to insn.h, Masami Hiramatsu, (Mon Mar 22, 7:11 am)
Re: [PATCH v1 9/10] Uprobes Documentation patch, Randy Dunlap, (Mon Mar 22, 7:51 am)
Re: [PATCH v1 0/10] Uprobes patches., Andrew Morton, (Mon Mar 22, 6:38 pm)
Re: [PATCH v1 0/10] Uprobes patches., Srikar Dronamraju, (Tue Mar 23, 3:55 am)
Re: [PATCH v1 7/10] Uprobes Implementation, Peter Zijlstra, (Tue Mar 23, 4:01 am)
Re: [PATCH v1 7/10] Uprobes Implementation, Peter Zijlstra, (Tue Mar 23, 4:04 am)
Re: [PATCH v1 4/10] User Space Breakpoint Assistance Layer, Srikar Dronamraju, (Tue Mar 23, 4:26 am)
Re: [PATCH v1 7/10] Uprobes Implementation, Srikar Dronamraju, (Tue Mar 23, 5:23 am)
Re: [PATCH v1 7/10] Uprobes Implementation, Peter Zijlstra, (Tue Mar 23, 6:46 am)
Re: [PATCH v1 7/10] Uprobes Implementation, Masami Hiramatsu, (Tue Mar 23, 7:20 am)
Re: [PATCH v1 7/10] Uprobes Implementation, Ananth N Mavinakayan ..., (Tue Mar 23, 8:05 am)
Re: [PATCH v1 7/10] Uprobes Implementation, Peter Zijlstra, (Tue Mar 23, 8:15 am)
Re: [PATCH v1 7/10] Uprobes Implementation, Peter Zijlstra, (Tue Mar 23, 8:15 am)
Re: [PATCH v1 7/10] Uprobes Implementation, Frank Ch. Eigler, (Tue Mar 23, 8:26 am)
Re: [PATCH v1 7/10] Uprobes Implementation, Masami Hiramatsu, (Tue Mar 23, 10:36 am)
Re: [PATCH v1 7/10] Uprobes Implementation, Ananth N Mavinakayan ..., (Tue Mar 23, 10:59 pm)
Re: [PATCH v1 7/10] Uprobes Implementation, Srikar Dronamraju, (Wed Mar 24, 12:58 am)
Re: [PATCH v1 7/10] Uprobes Implementation, Srikar Dronamraju, (Wed Mar 24, 3:22 am)
Re: [PATCH v1 7/10] Uprobes Implementation, Peter Zijlstra, (Wed Mar 24, 6:00 am)
Re: [PATCH v1 7/10] Uprobes Implementation, Srikar Dronamraju, (Thu Mar 25, 12:56 am)
Re: [PATCH v1 7/10] Uprobes Implementation, Srikar Dronamraju, (Thu Mar 25, 1:41 am)