Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169808
b: refs/heads/master
c: b2e74a2
h: refs/heads/master
v: v3
  • Loading branch information
Stephane Eranian authored and Ingo Molnar committed Nov 26, 2009
1 parent 08dc771 commit 2e8d5d9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 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: 4d795fb17a02a87e35782773b88b7a63acfbeaae
refs/heads/master: b2e74a265ded1a185f762ebaab967e9e0d008dd8
11 changes: 10 additions & 1 deletion trunk/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,16 @@ list_del_event(struct perf_event *event, struct perf_event_context *ctx)
event->group_leader->nr_siblings--;

update_event_times(event);
event->state = PERF_EVENT_STATE_OFF;

/*
* If event was in error state, then keep it
* that way, otherwise bogus counts will be
* returned on read(). The only way to get out
* of error state is by explicit re-enabling
* of the event
*/
if (event->state > PERF_EVENT_STATE_OFF)
event->state = PERF_EVENT_STATE_OFF;

/*
* If this was a group event with sibling events then
Expand Down

0 comments on commit 2e8d5d9

Please sign in to comment.