From 01b4ff973d0cacfe54f07450d40fb58c66d0aef1 Mon Sep 17 00:00:00 2001 From: Namhyung Kim Date: Thu, 31 May 2012 14:51:45 +0900 Subject: [PATCH] --- yaml --- r: 310591 b: refs/heads/master c: a59e64a13a927fb7530bef39e9f5e7de8268137e h: refs/heads/master i: 310589: bb4fe2a3ad12ca01da545f2decc1733927877e6d 310587: 225261c8ce4b34aaa962c9891726b25b2d535df4 310583: 1c6be293867e34aeb044cf56e55ce555ed3419c9 310575: 58acb5f8180c981dda5374d27775d46553a2a201 310559: 6a309fe9f2c987c182a297c9decc668096ec3323 310527: d40fcc47ac7f781867d053c3b0a6f05b14698975 v: v3 --- [refs] | 2 +- trunk/tools/perf/design.txt | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index d77df3b3c4cd..b768598b5662 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: aa5cdd308ddbb08959534be408eba8ef040b5989 +refs/heads/master: a59e64a13a927fb7530bef39e9f5e7de8268137e diff --git a/trunk/tools/perf/design.txt b/trunk/tools/perf/design.txt index bd0bb1b1279b..67e5d0cace85 100644 --- a/trunk/tools/perf/design.txt +++ b/trunk/tools/perf/design.txt @@ -409,14 +409,15 @@ Counters can be enabled and disabled in two ways: via ioctl and via prctl. When a counter is disabled, it doesn't count or generate events but does continue to exist and maintain its count value. -An individual counter or counter group can be enabled with +An individual counter can be enabled with - ioctl(fd, PERF_EVENT_IOC_ENABLE); + ioctl(fd, PERF_EVENT_IOC_ENABLE, 0); or disabled with - ioctl(fd, PERF_EVENT_IOC_DISABLE); + ioctl(fd, PERF_EVENT_IOC_DISABLE, 0); +For a counter group, pass PERF_IOC_FLAG_GROUP as the third argument. Enabling or disabling the leader of a group enables or disables the whole group; that is, while the group leader is disabled, none of the counters in the group will count. Enabling or disabling a member of a