Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288617
b: refs/heads/master
c: 365a403
h: refs/heads/master
i:
  288615: 1d46996
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Dec 21, 2011
1 parent 7319640 commit e869159
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 35edc2a5095efb189e60dc32bbb9d2663aec6d24
refs/heads/master: 365a4038486b57bb2bd516706a80f82f250f5306
2 changes: 1 addition & 1 deletion trunk/kernel/events/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3268,7 +3268,7 @@ void perf_event_update_userpage(struct perf_event *event)
barrier();
userpg->index = perf_event_index(event);
userpg->offset = perf_event_count(event);
if (event->state == PERF_EVENT_STATE_ACTIVE)
if (userpg->index)
userpg->offset -= local64_read(&event->hw.prev_count);

userpg->time_enabled = enabled +
Expand Down

0 comments on commit e869159

Please sign in to comment.