Re: [RFC PATCH v3 3/6] uretprobes: generalize xol_get_insn_slot()

2013-02-28 Thread Oleg Nesterov
Anton, I'll try to read this series asap. Just one note, On 02/28, Anton Arapov wrote: > > Generalize xol_take_insn_slot() to enable more consumers of the > function, e.g. trampoline implementation for return probes. Yes, this is can work too. But I guess you misunderstood me, or I missed some

[RFC PATCH v3 3/6] uretprobes: generalize xol_get_insn_slot()

2013-02-28 Thread Anton Arapov
Generalize xol_take_insn_slot() to enable more consumers of the function, e.g. trampoline implementation for return probes. The first time a uprobe with return consumer is hit for a process, a trampoline slot is obtained in the xol_area and initialized with a breakpoint instruction. This slot