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_zhang@xxxxxxxxxxxxxxx> > > > > Parameter --pid (or -p) of perf currently means a thread-wide collection. > > For exmaple, if a process whose id is 8888 has 10 threads, 'perf top -p 8888' > > just collects the main thread statistics. That's misleading. Users are > > used to attach a whole process when debugging a process by gdb. To follow > > normal usage style, the patch change --pid to process-wide collection and > > add --tid (-t) to mean a thread-wide collection. > > > > Usage example is: > > #perf top -p 8888 > > #perf record -p 8888 -f sleep 10 > > #perf stat -p 8888 -f sleep 10 > > Above commands collect the statistics of all threads of process 8888. > > > > Signed-off-by: Zhang Yanmin <yanmin_zhang@xxxxxxxxxxxxxxx> > > Just did visual inspection of the three patches, all sane, except for > some coding style nits, don't worry right now for that, I'll fix them up Nah, didn't fix them up, left it for some followup patch to avoid risking introducing problems, applied as is, did some testing and pushed to Ingo, thanks! > myself, but please take those into account int the future, highlight > below. - Arnaldo -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html