Re: [PATCH v5 10/12] perf util: Reuse thread_map__new_by_uid to enumerate threads from /proc

2017-12-01 Thread Jin, Yao
On 12/1/2017 11:02 PM, Arnaldo Carvalho de Melo wrote: Em Fri, Dec 01, 2017 at 11:44:25AM -0300, Arnaldo Carvalho de Melo escreveu: Em Fri, Dec 01, 2017 at 06:57:34PM +0800, Jin Yao escreveu: Perf already has a function thread_map__new_by_uid() which can enumerate all threads from /proc by ui

Re: [PATCH v5 10/12] perf util: Reuse thread_map__new_by_uid to enumerate threads from /proc

2017-12-01 Thread Jin, Yao
On 12/1/2017 10:44 PM, Arnaldo Carvalho de Melo wrote: Em Fri, Dec 01, 2017 at 06:57:34PM +0800, Jin Yao escreveu: Perf already has a function thread_map__new_by_uid() which can enumerate all threads from /proc by uid. This patch creates a static function enumerate_threads() which reuses the

Re: [PATCH v5 10/12] perf util: Reuse thread_map__new_by_uid to enumerate threads from /proc

2017-12-01 Thread Arnaldo Carvalho de Melo
Em Fri, Dec 01, 2017 at 11:44:25AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, Dec 01, 2017 at 06:57:34PM +0800, Jin Yao escreveu: > > Perf already has a function thread_map__new_by_uid() which can > > enumerate all threads from /proc by uid. > > > > This patch creates a static function en

Re: [PATCH v5 10/12] perf util: Reuse thread_map__new_by_uid to enumerate threads from /proc

2017-12-01 Thread Arnaldo Carvalho de Melo
Em Fri, Dec 01, 2017 at 06:57:34PM +0800, Jin Yao escreveu: > Perf already has a function thread_map__new_by_uid() which can > enumerate all threads from /proc by uid. > > This patch creates a static function enumerate_threads() which > reuses the common code in thread_map__new_by_uid() to enumera

[PATCH v5 10/12] perf util: Reuse thread_map__new_by_uid to enumerate threads from /proc

2017-11-30 Thread Jin Yao
Perf already has a function thread_map__new_by_uid() which can enumerate all threads from /proc by uid. This patch creates a static function enumerate_threads() which reuses the common code in thread_map__new_by_uid() to enumerate threads from /proc. The enumerate_threads() is shared by thread_ma