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

2013-03-04 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

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

2013-03-04 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