On 02/02/2012 09:33 AM, David Ahern wrote: > > On 02/02/2012 08:52 AM, Jean-Michel Hautbois wrote: >> Hi all, >> >> I am using perf and I have several process and threads to record. >> I know that some threads in particular are interesting, and I don't >> find a way to specify multiple threads in perf record. >> The "-t" option takes only one thread IIUC. Found some time on the plane ride home to give this a shot. The attached applies on top of the perf/core branch in: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git You can specify multiple threads or multiple processing using a comma-separated list. e.g., -t tid1,tid2,... or -p pid1,pid2,... (not both). It still needs more testing, but let me know how it works for what you need. Arnaldo: would you mind scanning this and see if there are any major problems/objections with the approach? David