aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-06-04 10:53:44 -0400
committerIngo Molnar <mingo@elte.hu>2009-06-04 11:51:38 -0400
commit60313ebed739b331e8e61079da27a11ee3b73a30 (patch)
tree8476fbd05be709595876360765776dd9ca20608d /kernel/fork.c
parent20c84e959ec11b1803d2b2832eef703d5fbe7f7b (diff)
perf_counter: Add fork event
Create a fork event so that we can easily clone the comm and dso maps without having to generate all those events. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index b7d7a9f0bd7a..f4466ca37ece 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1412,12 +1412,12 @@ long do_fork(unsigned long clone_flags,
1412 if (clone_flags & CLONE_VFORK) { 1412 if (clone_flags & CLONE_VFORK) {
1413 p->vfork_done = &vfork; 1413 p->vfork_done = &vfork;
1414 init_completion(&vfork); 1414 init_completion(&vfork);
1415 } else { 1415 } else if (!(clone_flags & CLONE_VM)) {
1416 /* 1416 /*
1417 * vfork will do an exec which will call 1417 * vfork will do an exec which will call
1418 * set_task_comm() 1418 * set_task_comm()
1419 */ 1419 */
1420 perf_counter_comm(p); 1420 perf_counter_fork(p);
1421 } 1421 }
1422 1422
1423 audit_finish_fork(p); 1423 audit_finish_fork(p);