diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-06-04 16:53:44 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-04 17:51:38 +0200 |
commit | 60313ebed739b331e8e61079da27a11ee3b73a30 (patch) | |
tree | 8476fbd05be709595876360765776dd9ca20608d /kernel/fork.c | |
parent | 20c84e959ec11b1803d2b2832eef703d5fbe7f7b (diff) | |
download | kernel_samsung_smdk4412-60313ebed739b331e8e61079da27a11ee3b73a30.zip kernel_samsung_smdk4412-60313ebed739b331e8e61079da27a11ee3b73a30.tar.gz kernel_samsung_smdk4412-60313ebed739b331e8e61079da27a11ee3b73a30.tar.bz2 |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index b7d7a9f..f4466ca 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -1412,12 +1412,12 @@ long do_fork(unsigned long clone_flags, if (clone_flags & CLONE_VFORK) { p->vfork_done = &vfork; init_completion(&vfork); - } else { + } else if (!(clone_flags & CLONE_VM)) { /* * vfork will do an exec which will call * set_task_comm() */ - perf_counter_comm(p); + perf_counter_fork(p); } audit_finish_fork(p); |