diff options
| author | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2012-03-21 11:26:18 +0400 | 
|---|---|---|
| committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2012-03-21 11:26:18 +0400 | 
| commit | 3d04d42312eacc68fbcddea337f7eb34bc035dfb (patch) | |
| tree | 7211df5704b743a7667159748c670a9744164482 /fs/exec.c | |
| parent | c98291ee1ceac03912e24b3219fa6e7dc0d52f5e (diff) | |
| parent | 69a7aebcf019ab3ff5764525ad6858fbe23bb86d (diff) | |
| download | linux-3d04d42312eacc68fbcddea337f7eb34bc035dfb.tar.xz | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Diffstat (limited to 'fs/exec.c')
| -rw-r--r-- | fs/exec.c | 14 | 
1 files changed, 9 insertions, 5 deletions
diff --git a/fs/exec.c b/fs/exec.c index 153dee14fe55..95551c6da090 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -63,6 +63,8 @@  #include <trace/events/task.h>  #include "internal.h" +#include <trace/events/sched.h> +  int core_uses_pid;  char core_pattern[CORENAME_MAX_SIZE] = "core";  unsigned int core_pipe_limit; @@ -848,6 +850,7 @@ static int exec_mmap(struct mm_struct *mm)  	if (old_mm) {  		up_read(&old_mm->mmap_sem);  		BUG_ON(active_mm != old_mm); +		setmax_mm_hiwater_rss(&tsk->signal->maxrss, old_mm);  		mm_update_next_owner(old_mm);  		mmput(old_mm);  		return 0; @@ -975,8 +978,8 @@ static int de_thread(struct task_struct *tsk)  	sig->notify_count = 0;  no_thread_group: -	if (current->mm) -		setmax_mm_hiwater_rss(&sig->maxrss, current->mm); +	/* we have changed execution domain */ +	tsk->exit_signal = SIGCHLD;  	exit_itimers(sig);  	flush_itimer_signals(); @@ -1402,9 +1405,10 @@ int search_binary_handler(struct linux_binprm *bprm,struct pt_regs *regs)  			 */  			bprm->recursion_depth = depth;  			if (retval >= 0) { -				if (depth == 0) -					ptrace_event(PTRACE_EVENT_EXEC, -							old_pid); +				if (depth == 0) { +					trace_sched_process_exec(current, old_pid, bprm); +					ptrace_event(PTRACE_EVENT_EXEC, old_pid); +				}  				put_binfmt(fmt);  				allow_write_access(bprm->file);  				if (bprm->file)  | 
