[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4F2DBD1F.20909@gmail.com>
Date: Sat, 04 Feb 2012 16:19:59 -0700
From: David Ahern <dsahern@...il.com>
To: Jean-Michel Hautbois <jhautbois@...il.com>,
Arnaldo Carvalho de Melo <acme@...stprotocols.net>
CC: linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: Specifying some processes to record using perf
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
View attachment "perf-allow-multiple-pid-tid.patch" of type "text/x-patch" (21486 bytes)
Powered by blists - more mailing lists