Re: Specifying some processes to record using perf

From: David Ahern
Date: Thu Feb 02 2012 - 11:33:12 EST



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.
> I don't know if the "--cgroup" is intended to do that, but I didn't
> succeed to use it...
>
> I would also like to exclude one specific process (or thread) when I
> do a system-wide record, and I think it is not possible either ?
>
> Thanks in advance !
> Regards,
> JM
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

Right now pef-record can only do only 1 process or 1 thread. I started
working on a patch to support multiple of both (e.g., allow multiple -t
or -p arguments), but I have not finished it.

Other options: Arnaldo recently added a uid option or you can record for
all processes and filter the output to just your processes/threads of
interest.

David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/