aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2015-09-09 20:48:22 +0200
committerIngo Molnar <[email protected]>2015-09-18 09:20:26 +0200
commitf73e22ab450140830005581c2c7ec389791a1b8d (patch)
tree78ff75731998d7b9cf2857b91ad4a944ce996f2c /tools/perf/scripts/python/Perf-Trace-Util
parenta723968c0ed36db676478c3d26078f13484fe01c (diff)
perf: Fix races in computing the header sizes
There are two races with the current code: - Another event can join the group and compute a larger header_size concurrently, if the smaller store wins we'll have an incorrect header_size set. - We compute the header_size after the event becomes active, therefore its possible to use the size before its computed. Remedy the first by moving the computation inside the ctx::mutex lock, and the second by placing it _before_ perf_install_in_context(). Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions