mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
perf: Add non-exec mmap() tracking
Add the capacility to track data mmap()s. This can be used together with PERF_SAMPLE_ADDR for data profiling. Signed-off-by: Anton Blanchard <[email protected]> [Updated code for stable perf ABI] Signed-off-by: Eric B Munson <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Steven Rostedt <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
8ed92280be
commit
3af9e85928
5 changed files with 35 additions and 22 deletions
|
|
@ -653,6 +653,7 @@ int setup_arg_pages(struct linux_binprm *bprm,
|
|||
else
|
||||
stack_base = vma->vm_start - stack_expand;
|
||||
#endif
|
||||
current->mm->start_stack = bprm->p;
|
||||
ret = expand_stack(vma, stack_base);
|
||||
if (ret)
|
||||
ret = -EFAULT;
|
||||
|
|
|
|||
Loading…
Reference in a new issue