Re: [PATCH 3/3] perf events: Change perf parameter --pid to process-wide collection instead of thread-wide

2010-03-25 Thread Li Zefan
Zhang, Yanmin wrote: From: Zhang, Yanmin yanmin_zh...@linux.intel.com Parameter --pid (or -p) of perf currently means a thread-wide collection. For exmaple, if a process whose id is has 10 threads, 'perf top -p ' just collects the main thread statistics. That's misleading. Users are

Re: [PATCH 3/3] perf events: Change perf parameter --pid to process-wide collection instead of thread-wide

2010-03-25 Thread Zhang, Yanmin
On Thu, 2010-03-25 at 16:02 +0800, Li Zefan wrote: Zhang, Yanmin wrote: From: Zhang, Yanmin yanmin_zh...@linux.intel.com Parameter --pid (or -p) of perf currently means a thread-wide collection. For exmaple, if a process whose id is has 10 threads, 'perf top -p ' just

Re: [PATCH 3/3] perf events: Change perf parameter --pid to process-wide collection instead of thread-wide

2010-03-25 Thread Li Zefan
Parameter --pid (or -p) of perf currently means a thread-wide collection. For exmaple, if a process whose id is has 10 threads, 'perf top -p ' just collects the main thread statistics. That's misleading. Users are used to attach a whole process when debugging a process by gdb. To

Re: [PATCH 3/3] perf events: Change perf parameter --pid to process-wide collection instead of thread-wide

2010-03-25 Thread Arnaldo Carvalho de Melo
Em Thu, Mar 25, 2010 at 04:47:44PM +0800, Zhang, Yanmin escreveu: On Thu, 2010-03-25 at 16:02 +0800, Li Zefan wrote: Thanks for reporting it. Arnaldo, could you pick up below patch? Zefan, Could you try it? Sure thing, will stash them in today's push to Ingo, thanks! - Arnaldo -- To

[PATCH 3/3] perf events: Change perf parameter --pid to process-wide collection instead of thread-wide

2010-03-18 Thread Zhang, Yanmin
From: Zhang, Yanmin yanmin_zh...@linux.intel.com Parameter --pid (or -p) of perf currently means a thread-wide collection. For exmaple, if a process whose id is has 10 threads, 'perf top -p ' just collects the main thread statistics. That's misleading. Users are used to attach a whole

Re: [PATCH 3/3] perf events: Change perf parameter --pid to process-wide collection instead of thread-wide

2010-03-18 Thread Arnaldo Carvalho de Melo
Em Thu, Mar 18, 2010 at 05:31:06PM +0800, Zhang, Yanmin escreveu: From: Zhang, Yanmin yanmin_zh...@linux.intel.com Parameter --pid (or -p) of perf currently means a thread-wide collection. For exmaple, if a process whose id is has 10 threads, 'perf top -p ' just collects the main

Re: [PATCH 3/3] perf events: Change perf parameter --pid to process-wide collection instead of thread-wide

2010-03-18 Thread Arnaldo Carvalho de Melo
Em Thu, Mar 18, 2010 at 10:35:48AM -0300, Arnaldo Carvalho de Melo escreveu: Em Thu, Mar 18, 2010 at 05:31:06PM +0800, Zhang, Yanmin escreveu: From: Zhang, Yanmin yanmin_zh...@linux.intel.com Parameter --pid (or -p) of perf currently means a thread-wide collection. For exmaple, if a