diff options
author | Frederic Weisbecker <[email protected]> | 2013-07-13 17:10:18 +0200 |
---|---|---|
committer | Frederic Weisbecker <[email protected]> | 2013-08-14 17:14:50 +0200 |
commit | 54461562c90e0ac104764c5a9de637fd9151a1c1 (patch) | |
tree | df04e7b576eb54a29e80f9827c73d473c87ec0bf /tools/perf/util/trace-event-scripting.c | |
parent | 7621d1f8bcb418e7a7ac583e89e38ec01b7ed182 (diff) |
vtime: Fix racy cputime delta update
get_vtime_delta() must be called under the task vtime_seqlock
with the code that does the cputime accounting flush.
Otherwise the cputime reader can be fooled and run into
a race where it sees the snapshot update but misses the
cputime flush. As a result it can report a cputime that is
way too short.
Fix vtime_account_user() that wasn't complying to that rule.
Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Li Zhong <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Kevin Hilman <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions