Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754420AbbGFS6U (ORCPT ); Mon, 6 Jul 2015 14:58:20 -0400 Received: from mail.kernel.org ([198.145.29.136]:41565 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753766AbbGFS6R (ORCPT ); Mon, 6 Jul 2015 14:58:17 -0400 Date: Mon, 6 Jul 2015 15:58:13 -0300 From: Arnaldo Carvalho de Melo To: Steven Rostedt Cc: Wang Nan , a.p.zijlstra@chello.nl, mingo@redhat.com, jolsa@kernel.org, peterz@infradead.org, namhyung@kernel.org, kan.liang@intel.com, adrian.hunter@intel.com, ak@linux.intel.com, cody@linux.vnet.ibm.com, jacob.w.shin@gmail.com, standby24x7@gmail.com, lizefan@huawei.com, yunlong.song@huawei.com, linux-kernel@vger.kernel.org, pi3orama@163.com Subject: Re: [PATCH] perf record: Allow passing perf's own pid to '--filter' Message-ID: <20150706185813.GJ16826@kernel.org> References: <1436156251-147535-1-git-send-email-wangnan0@huawei.com> <20150706135650.GG16826@kernel.org> <20150706123702.6c0a361a@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150706123702.6c0a361a@gandalf.local.home> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 709 Lines: 18 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 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/