Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169752
b: refs/heads/master
c: acd1d7c
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Nov 23, 2009
1 parent 0794a81 commit 3fc92e9
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 4ed7c92d68a5387ba5f7030dc76eab03558e27f5
refs/heads/master: acd1d7c1f8f3d848a3c5327dc09f8c1efb971678
7 changes: 6 additions & 1 deletion trunk/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,12 @@ static void update_event_times(struct perf_event *event)
event->group_leader->state < PERF_EVENT_STATE_INACTIVE)
return;

event->total_time_enabled = ctx->time - event->tstamp_enabled;
if (ctx->is_active)
run_end = ctx->time;
else
run_end = event->tstamp_stopped;

event->total_time_enabled = run_end - event->tstamp_enabled;

if (event->state == PERF_EVENT_STATE_INACTIVE)
run_end = event->tstamp_stopped;
Expand Down

0 comments on commit 3fc92e9

Please sign in to comment.