diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2009-05-29 17:03:07 -0300 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2009-05-30 11:34:00 +0200 |
| commit | c44613a4c1092e85841b78b7ab52a06654fcd321 (patch) | |
| tree | 364605b0662b25f6a3abe3238489bdb5dfe001f5 /tools/perf/scripts/python | |
| parent | b78c07d45a7e71be7b5c5d7486f922355ccf23a8 (diff) | |
perf_counter tools: Add locking to perf top
perf_counter tools: Add locking to perf top
We need to protect the active_symbols list as two threads change it:
the main thread adding entries to the head and the display thread
decaying entries from any place in the list.
Also related: take a snapshot of syme->count[0] before using it to
calculate the weight and to show the same number used in this calc when
displaying the symbol usage.
Reported-by: Mike Galbraith <[email protected]>
Tested-by: Mike Galbraith <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Steven Rostedt <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions