Messages in this thread Patch in this message | | | Subject | Re: [PATCH 6/7] perf_counter: change pctrl() behaviour | From | Peter Zijlstra <> | Date | Sat, 23 May 2009 21:04:08 +0200 |
| |
On Sat, 2009-05-23 at 18:29 +0200, Peter Zijlstra wrote: > plain text document attachment (perf_counter-ctrl-all.patch) > Instead of en/dis-abling all counters acting on a particular task, en/dis- > able all counters we created. > > LKML-Reference: <new-submission> > Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> > ---
Please fold in the below so as to avoid an explosion on first sys_perf_counter_open().
Index: linux-2.6/kernel/perf_counter.c =================================================================== --- linux-2.6.orig/kernel/perf_counter.c +++ linux-2.6/kernel/perf_counter.c @@ -3446,6 +3446,9 @@ void perf_counter_init_task(struct task_ child->perf_counter_ctxp = NULL; + mutex_init(&child->perf_counter_mutex); + INIT_LIST_HEAD(&child->perf_counter_list); + /* * This is executed from the parent task context, so inherit * counters that have been marked for cloning.
| |