Re: [PATCH v3 0/10] Uprobes v3

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ananth N Mavinakayanahalli
Date: Wednesday, May 12, 2010 - 6:27 am

On Wed, May 12, 2010 at 02:13:05PM +0200, Peter Zijlstra wrote:

Yes, this helps for breakpoint insertion, but...

The question is whether only INT3 special or single-byte changes are
also guaranteed to be atomic. In http://lkml.org/lkml/2010/1/27/275
Peter Anvin states 'specific case of a more generic rule'.

For restoring the old instruction, we technically need to put back just
one byte, irrespective of the actual length of the underlying
instruction. Now, as long as we have the housekeeping code to handle the
possibility of a thread hitting the said breakpoint when its being
removed, is it safe to assume atomicity for replacing one byte of
possibly a longer instruction?

Ananth
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v3 0/10] Uprobes v3, Srikar Dronamraju, (Thu May 6, 11:01 am)
[PATCH v3 1/10] X86 instruction analysis: Move Macro W to ..., Srikar Dronamraju, (Thu May 6, 11:01 am)
[PATCH v3 2/10] User Space Breakpoint Assistance Layer, Srikar Dronamraju, (Thu May 6, 11:02 am)
[PATCH v3 3/10] x86 support for User space breakpoint assi ..., Srikar Dronamraju, (Thu May 6, 11:02 am)
[PATCH v3 4/10] Slot allocation for execution out of line ..., Srikar Dronamraju, (Thu May 6, 11:02 am)
[PATCH v3 5/10] Uprobes Implementation, Srikar Dronamraju, (Thu May 6, 11:02 am)
[PATCH v3 6/10] x86 support for Uprobes, Srikar Dronamraju, (Thu May 6, 11:02 am)
[PATCH v3 7/10] samples: Uprobes samples, Srikar Dronamraju, (Thu May 6, 11:03 am)
[PATCH v3 8/10] Uprobes documentation., Srikar Dronamraju, (Thu May 6, 11:03 am)
[PATCH v3 9/10] trace: uprobes trace_event interface, Srikar Dronamraju, (Thu May 6, 11:03 am)
[PATCH v3 10/10] perf: perf interface for uprobes., Srikar Dronamraju, (Thu May 6, 11:03 am)
Re: [PATCH v3 10/10] perf: perf interface for uprobes., Masami Hiramatsu, (Thu May 6, 4:13 pm)
Re: [PATCH v3 10/10] perf: perf interface for uprobes., Srikar Dronamraju, (Thu May 6, 7:24 pm)
Re: [PATCH v3 10/10] perf: perf interface for uprobes., Masami Hiramatsu, (Fri May 7, 10:53 am)
Re: [PATCH v3 10/10] perf: perf interface for uprobes., Srikar Dronamraju, (Sun May 9, 4:18 am)
Re: [PATCH v3 0/10] Uprobes v3, Peter Zijlstra, (Tue May 11, 1:59 pm)
Re: [PATCH v3 0/10] Uprobes v3, Srikar Dronamraju, (Wed May 12, 3:25 am)
Re: [PATCH v3 0/10] Uprobes v3, Frederic Weisbecker, (Wed May 12, 3:38 am)
Re: [PATCH v3 0/10] Uprobes v3, Peter Zijlstra, (Wed May 12, 5:13 am)
Re: [PATCH v3 0/10] Uprobes v3, Ananth N Mavinakayan ..., (Wed May 12, 6:27 am)
Re: [PATCH v3 0/10] Uprobes v3, Peter Zijlstra, (Wed May 12, 6:39 am)
Re: [PATCH v3 0/10] Uprobes v3, Srikar Dronamraju, (Wed May 12, 6:39 am)
Re: [PATCH v3 0/10] Uprobes v3, Ananth N Mavinakayan ..., (Wed May 12, 7:04 am)
Re: [PATCH v3 0/10] Uprobes v3, Mathieu Desnoyers, (Wed May 12, 7:46 am)
Re: [PATCH v3 0/10] Uprobes v3, Frederic Weisbecker, (Wed May 12, 7:53 am)
Re: [PATCH v3 0/10] Uprobes v3, H. Peter Anvin, (Wed May 12, 9:55 am)
Re: [PATCH v3 0/10] Uprobes v3, Mathieu Desnoyers, (Wed May 12, 10:59 am)
Re: [PATCH v3 0/10] Uprobes v3, Srikar Dronamraju, (Thu May 13, 5:07 am)