mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
perf: Fix mmap_page capabilities and docs
Complete the syscall-less self-profiling feature and address
all complaints, namely:
- capabilities, so we can detect what is actually available at runtime
Add a capabilities field to perf_event_mmap_page to indicate
what is actually available for use.
- on x86: RDPMC weirdness due to being 40/48 bits and not sign-extending
properly.
- ABI documentation as to how all this stuff works.
Also improve the documentation for the new features.
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Vince Weaver <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Link: http://lkml.kernel.org/r/1332433596.2487.33.camel@twins
Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
c5bc437702
commit
c7206205d0
3 changed files with 84 additions and 13 deletions
|
|
@ -3348,7 +3348,7 @@ static void calc_timer_values(struct perf_event *event,
|
|||
*running = ctx_time - event->tstamp_running;
|
||||
}
|
||||
|
||||
void __weak perf_update_user_clock(struct perf_event_mmap_page *userpg, u64 now)
|
||||
void __weak arch_perf_update_userpage(struct perf_event_mmap_page *userpg, u64 now)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -3398,7 +3398,7 @@ void perf_event_update_userpage(struct perf_event *event)
|
|||
userpg->time_running = running +
|
||||
atomic64_read(&event->child_total_time_running);
|
||||
|
||||
perf_update_user_clock(userpg, now);
|
||||
arch_perf_update_userpage(userpg, now);
|
||||
|
||||
barrier();
|
||||
++userpg->lock;
|
||||
|
|
|
|||
Loading…
Reference in a new issue