aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/uprobes.h
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2015-07-21 15:40:13 +0200
committerIngo Molnar <mingo@kernel.org>2015-07-31 10:38:04 +0200
commita83cfeb92132c279b20bbc8ed3cef833b0fe417e (patch)
tree993d56e06db2cf0b927ba39b578cb9310720fdff /include/linux/uprobes.h
parentuprobes: Change prepare_uretprobe() to use uprobe_warn() (diff)
downloadlinux-dev-a83cfeb92132c279b20bbc8ed3cef833b0fe417e.tar.xz
linux-dev-a83cfeb92132c279b20bbc8ed3cef833b0fe417e.zip
uprobes: Change handle_trampoline() to find the next chain beforehand
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_utask(), so lets do this later. Change the main loop in handle_trampoline() to unwind the stack until ri is equal to the pointer returned by this new helper. Tested-by: Pratyush Anand <panand@redhat.com> Signed-off-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Acked-by: Anton Arapov <arapov@gmail.com> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/20150721134013.GA4755@redhat.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/uprobes.h')
0 files changed, 0 insertions, 0 deletions