aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2013-09-11 14:24:38 -0700
committerLinus Torvalds <[email protected]>2013-09-11 15:59:03 -0700
commit5d1baf3b63bfc8c709dc44df85ff1475c7ef489d (patch)
treec22cad96687d70a544674f7eb823026aecf4ceeb /tools/perf/scripts/python
parent96d0df79f2644fc823f26c06491e182d87a90c2a (diff)
exec: introduce exec_binprm() for "depth == 0" code
task_pid_nr_ns() and trace/ptrace code in the middle of the recursive search_binary_handler() looks confusing and imho annoying. We only need this code if "depth == 0", lets add a simple helper which calls search_binary_handler() and does trace_sched_process_exec() + ptrace_event(). The patch also moves the setting of task->did_exec, we need to do this only once. Note: we can kill either task->did_exec or PF_FORKNOEXEC. Signed-off-by: Oleg Nesterov <[email protected]> Acked-by: Kees Cook <[email protected]> Cc: Al Viro <[email protected]> Cc: Evgeniy Polyakov <[email protected]> Cc: Zach Levis <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions