Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310591
b: refs/heads/master
c: a59e64a
h: refs/heads/master
i:
  310589: bb4fe2a
  310587: 225261c
  310583: 1c6be29
  310575: 58acb5f
  310559: 6a309fe
  310527: d40fcc4
v: v3
  • Loading branch information
Namhyung Kim authored and Arnaldo Carvalho de Melo committed May 31, 2012
1 parent 48e525f commit 01b4ff9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aa5cdd308ddbb08959534be408eba8ef040b5989
refs/heads/master: a59e64a13a927fb7530bef39e9f5e7de8268137e
7 changes: 4 additions & 3 deletions trunk/tools/perf/design.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 01b4ff9

Please sign in to comment.