Re: [PATCH RFC 02/10] perf tools: using scandir to replace readdir

2017-09-08 Thread Arnaldo Carvalho de Melo
Em Thu, Sep 07, 2017 at 10:55:46AM -0700, kan.li...@intel.com escreveu: > From: Kan Liang > > For perf_event__synthesize_threads, perf goes through all proc files > serially by readdir. > scandir did a snapshoot of proc, which is multithreading friendly. > > It's possible

Re: [PATCH RFC 02/10] perf tools: using scandir to replace readdir

2017-09-08 Thread Arnaldo Carvalho de Melo
Em Thu, Sep 07, 2017 at 10:55:46AM -0700, kan.li...@intel.com escreveu: > From: Kan Liang > > For perf_event__synthesize_threads, perf goes through all proc files > serially by readdir. > scandir did a snapshoot of proc, which is multithreading friendly. > > It's possible that some threads

[PATCH RFC 02/10] perf tools: using scandir to replace readdir

2017-09-07 Thread kan . liang
From: Kan Liang For perf_event__synthesize_threads, perf goes through all proc files serially by readdir. scandir did 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

[PATCH RFC 02/10] perf tools: using scandir to replace readdir

2017-09-07 Thread kan . liang
From: Kan Liang For perf_event__synthesize_threads, perf goes through all proc files serially by readdir. scandir did 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.