perf_counter: Add scale information to the mmap control page
Add the needed time scale to the self-profile mmap information. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:

committed by
Ingo Molnar

parent
41f95331b9
commit
7f8b4e4e09
@@ -1782,6 +1782,12 @@ void perf_counter_update_userpage(struct perf_counter *counter)
|
||||
if (counter->state == PERF_COUNTER_STATE_ACTIVE)
|
||||
userpg->offset -= atomic64_read(&counter->hw.prev_count);
|
||||
|
||||
userpg->time_enabled = counter->total_time_enabled +
|
||||
atomic64_read(&counter->child_total_time_enabled);
|
||||
|
||||
userpg->time_running = counter->total_time_running +
|
||||
atomic64_read(&counter->child_total_time_running);
|
||||
|
||||
barrier();
|
||||
++userpg->lock;
|
||||
preempt_enable();
|
||||
|
Reference in New Issue
Block a user