diff options
| author | Kan Liang <[email protected]> | 2017-09-29 07:47:52 -0700 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-10-03 09:27:27 -0300 |
| commit | b32ee9e522f7ba26339856a047cfe9efc0be0ff3 (patch) | |
| tree | dcc085afc2c85c1bdfb1689ef75cbe94a3916ec7 /tools/perf/scripts/python/bin/export-to-sqlite-report | |
| parent | 22905582f6dd4bbd0c370fe5732c607452010c04 (diff) | |
perf tools: Lock to protect namespaces and comm list
Add two locks to protect namespaces_list and comm_list.
The lock is only needed for multithreaded code, so using mutex wrappers
provided by perf tool.
Not all the comm_list/namespaces_list accessing are protected, e.g.
thread__exec_comm. Because the multithread code for perf top event
synthesizing does not touch them. They don't need a lock.
Signed-off-by: Kan Liang <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: He Kuang <[email protected]>
Cc: Lukasz Odzioba <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-sqlite-report')
0 files changed, 0 insertions, 0 deletions