diff options
author | Kan Liang <kan.liang@intel.com> | 2017-09-07 10:55:46 -0700 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-09-13 09:49:15 -0300 |
commit | ecdad24d7a4480c9af0ff6dbe00ac8bbae720d19 (patch) | |
tree | f30ce066f4f7e135123e8cf81197a0dad1f238f0 /tools/perf/builtin-config.c | |
parent | 8233822f403b67bbaa1d58e8fa6b8f821fe7626d (diff) | |
download | linux-stable-ecdad24d7a4480c9af0ff6dbe00ac8bbae720d19.tar.gz linux-stable-ecdad24d7a4480c9af0ff6dbe00ac8bbae720d19.tar.bz2 linux-stable-ecdad24d7a4480c9af0ff6dbe00ac8bbae720d19.zip |
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 <kan.liang@intel.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Lukasz Odzioba <lukasz.odzioba@intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1504806954-150842-3-git-send-email-kan.liang@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-config.c')
0 files changed, 0 insertions, 0 deletions