lkml.org 
[lkml]   [2009]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    SubjectRe: [PATCH 6/7] perf_counter: change pctrl() behaviour
    From
    Date
    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.




    \
     
     \ /
      Last update: 2009-05-23 21:07    [W:4.323 / U:0.048 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site