diff options
author | Peter Zijlstra <[email protected]> | 2017-09-05 16:26:44 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2017-10-27 10:31:59 +0200 |
commit | 0c1cbc18df9e38182a0604b15535699c84d7342a (patch) | |
tree | 85c7d42284fd594af32ca8d176aa8fc44e618a60 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 7f0ec32526d2446fdd79b0c6c6d08e64ef9fb1f3 (diff) |
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/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions