Re: [PATCH v2 05/11] uprobes: Change handle_trampoline() to find the next chain beforehand

2015-07-07 Thread Anton Arapov
On Tue, Jul 07, 2015 at 03:22:50AM +0200, Oleg Nesterov wrote: > No functional changes, preparation. > > Add the new helper, find_next_ret_chain(), which finds the first !chained > entry and returns its ->next. Yes, it is suboptimal. We probably want to > turn ->chained into ->start_of_this_chain

[PATCH v2 05/11] uprobes: Change handle_trampoline() to find the next chain beforehand

2015-07-06 Thread Oleg Nesterov
No functional changes, preparation. Add the new helper, find_next_ret_chain(), which finds the first !chained entry and returns its ->next. Yes, it is suboptimal. We probably want to turn ->chained into ->start_of_this_chain pointer and avoid another loop. But this needs the boring changes in dup_