aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-script.c
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2017-09-05 14:26:44 +0000
committerIngo Molnar <[email protected]>2017-10-27 08:31:59 +0000
commit0c1cbc18df9e38182a0604b15535699c84d7342a (patch)
tree85c7d42284fd594af32ca8d176aa8fc44e618a60 /tools/perf/builtin-script.c
parentperf/core: Remove wrong barrier (diff)
downloadkernel-0c1cbc18df9e38182a0604b15535699c84d7342a.tar.gz
kernel-0c1cbc18df9e38182a0604b15535699c84d7342a.zip
perf/core: Fix perf_event_read()
perf_event_read() has a number of issues regarding the timekeeping bits. - The IPI didn't update group times when it found INACTIVE - The direct call would not re-check ->state after taking ctx->lock which can result in ->count and timestamps getting out of sync. And we can make use of the ordering introduced for perf_event_stop() to make it more accurate for ACTIVE. Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/builtin-script.c')
0 files changed, 0 insertions, 0 deletions