Re: [PATCH] perf record: Allow passing perf's own pid to '--filter'

From: Arnaldo Carvalho de Melo
Date: Mon Jul 06 2015 - 14:58:26 EST


Em Mon, Jul 06, 2015 at 12:37:02PM -0400, Steven Rostedt escreveu:
> On Mon, 6 Jul 2015 10:56:50 -0300 Arnaldo Carvalho de Melo <acme@xxxxxxxxxx> wrote:
> > > This patch introduces '@PERFPID' placeholder to '--filter' options. Now
> > > user is allowed to the above work with:

> > > # perf record -e ... --filter="common_pid != @PERFPID' sleep 10

> What about using '$' instead. That is more common to shell scripts of
> being a variable.

Agreed.

- Arnaldo
--
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/