diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/perf_counter.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c index c2b19c111718..23614adab475 100644 --- a/kernel/perf_counter.c +++ b/kernel/perf_counter.c | |||
@@ -1782,6 +1782,12 @@ void perf_counter_update_userpage(struct perf_counter *counter) | |||
1782 | if (counter->state == PERF_COUNTER_STATE_ACTIVE) | 1782 | if (counter->state == PERF_COUNTER_STATE_ACTIVE) |
1783 | userpg->offset -= atomic64_read(&counter->hw.prev_count); | 1783 | userpg->offset -= atomic64_read(&counter->hw.prev_count); |
1784 | 1784 | ||
1785 | userpg->time_enabled = counter->total_time_enabled + | ||
1786 | atomic64_read(&counter->child_total_time_enabled); | ||
1787 | |||
1788 | userpg->time_running = counter->total_time_running + | ||
1789 | atomic64_read(&counter->child_total_time_running); | ||
1790 | |||
1785 | barrier(); | 1791 | barrier(); |
1786 | ++userpg->lock; | 1792 | ++userpg->lock; |
1787 | preempt_enable(); | 1793 | preempt_enable(); |