From: Peter Zijlstra Date: Fri, 8 May 2009 16:52:22 +0000 (+0200) Subject: perf_counter: rework ioctl()s X-Git-Tag: v2.6.31-rc1~383^2~293 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3df5edad87a998273aa5a9a8c728c05d855ad00e;p=pandora-kernel.git perf_counter: rework ioctl()s 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: Corey Ashford Signed-off-by: Peter Zijlstra Cc: Paul Mackerras LKML-Reference: <20090508170028.837558214@chello.nl> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed