• Peter Zijlstra's avatar
    perf_counter: rework ioctl()s · 3df5edad
    Peter Zijlstra authored
    Corey noticed that ioctl()s on grouped counters didn't work on
    the whole group. This extends the ioctl() interface to take a
    second argument that is interpreted as a flags field. We then
    provide PERF_IOC_FLAG_GROUP to toggle the behaviour.
    
    Having this flag gives the greatest flexibility, allowing you
    to individually enable/disable/reset counters in a group, or
    all together.
    
    [ Impact: fix group counter enable/disable semantics ]
    Reported-by: default avatarCorey Ashford <cjashfor@linux.vnet.ibm.com>
    Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Paul Mackerras <paulus@samba.org>
    LKML-Reference: <20090508170028.837558214@chello.nl>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    3df5edad
perf_counter.c 79.5 KB