Re: [PATCH v1 7/10] Uprobes Implementation

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Srikar Dronamraju
Date: Thursday, March 25, 2010 - 1:41 am

> 

Yes, when we allow two or more probes to co-exist at a probepoint, we
will be able to do this.



double scribble as in two apps writing to the same address? Uprobes
handles this by failing into insert probes at location where there is a
breakpoint already inserted. So if both apps were to use the uprobes
interface, then they could co-operate and co-exist. (This would need the
feature in uprobes to have multiple probes per probepoint which is
excluded in this RFC).


Yes, thats certainly possible. However lets consider the case when we
allow multiple probes per probepoint and one handler faults (handler
detects it could be sleeping) while the other handler may or may not
fault (handler could be doing a copy_from_user). 
When the thread switches to task context and runs the first handler but
it has no state information about the second handler having run in the
interrupt context. So here we may be unable to decide if we should run
the second handler or not.

--
Thanks and Regards
Srikar
--
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)