diff options
| author | Kan Liang <[email protected]> | 2017-09-07 10:55:46 -0700 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-09-13 09:49:15 -0300 |
| commit | ecdad24d7a4480c9af0ff6dbe00ac8bbae720d19 (patch) | |
| tree | f30ce066f4f7e135123e8cf81197a0dad1f238f0 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 8233822f403b67bbaa1d58e8fa6b8f821fe7626d (diff) | |
perf tools: Use scandir() to replace readdir()
In perf_event__synthesize_threads() perf goes through all proc files
serially by readdir.
scandir() does a snapshoot of /proc, which is multithreading friendly.
It's possible that some threads which are added during event synthesize.
But the number of lost threads should be small. They should not impact
the final analysis.
Signed-off-by: Kan Liang <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Lukasz Odzioba <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[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/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions