Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp869551ybk; Wed, 20 May 2020 14:14:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRzRuhexTUXYdOybA1OgB1Jh1cx3uK0zshdOZs/TPyY/V2jAhm018sxTpiEJ8ZRHkGpgg6 X-Received: by 2002:a05:6402:c0f:: with SMTP id co15mr5076773edb.286.1590009278718; Wed, 20 May 2020 14:14:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590009278; cv=none; d=google.com; s=arc-20160816; b=nDhmpM4wxU91BJeEHMg1TxPMFIELNDAF3K6gr/8+ZZuLqBlHWW+MsIUULg8CTuQW4N 1joAul+SfKM16lIpFwyXo6PxCd8+qCJXpClRnk+T/eXbscI4H1tbFEneKMJ8pdIwDoDV oDD3zdqeEad+kFjkLaFoR5zxQ8iFoCE4//trr10RSiPPP3kyZSkw7Tn2oFB60XSyG6db We83857S2ZmojoQrwdf0x/R+N8EAkP1x+l3t5/bxrZlBcoZhWa5ST0OKYRwOx+TRj2oQ FwoUPaRaW+nCeG4h/nv4hHn7BzyCEKMeXi1dz3uWVPZ/XcMAHZrM3+8XeTA+3GTM0KhG c22g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=cvvVaFFqi0m487AJ+uUwMZYWYTOlp2ak5kcD5EqBlbE=; b=ffSsjs2xJIJSRtCSq68T1uUuCT3tPOwcZuVkFwpiXWUJ906Ul+PqdGU/+IYDbwdH2D F5NikZdkBqlAgHu17+TsN1YKMbwGTNpfMdYnMyn5tBGwtuyQU2WUkwAB0qL/mMqcXvi7 wNWbsQ7XTV4wwbQGReDo6v0Ak/U3raxBxWVFGshunjU3WNc2BTy0HmHHN14Ww1d2jhMT 3PHUVaYKMC6KN75hEGV6H3yE5LuirXTNpxbB5ayk+eY750D8bXZpznaz+1jImm6KlH/e oEjPCgLMhADPnuwQrrsOTThlqwA4jysbbOzFIDvWqquXbFtSSU/L7EZWU9U5Y2shKx+0 k61A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sj9iEj94; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 39si2347872edq.195.2020.05.20.14.14.16; Wed, 20 May 2020 14:14:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sj9iEj94; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728176AbgETVMb (ORCPT + 99 others); Wed, 20 May 2020 17:12:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:34730 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727018AbgETVMa (ORCPT ); Wed, 20 May 2020 17:12:30 -0400 Received: from quaco.ghostprotocols.net (unknown [179.97.37.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5A85B207E8; Wed, 20 May 2020 21:12:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590009150; bh=zLuusxvkC3SyINCgh0xthoz+hc/q1pInV443m0AO10A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sj9iEj94CxDfU5vwFNq0cHwmX8CyIAFqswgo9D+tK56EkCGAS37Bxte6eQaJyka4F doxTjqswFaaXcd9IsCCG3QQaGKdtz1TmH8MEdcDKik/mw4UOVO36nOyb+VdLo41LsM m/DXofwQqusL1ChxV6Vp6JrFys1BIrWunQjkLLsk= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 8E04E40AFD; Wed, 20 May 2020 18:12:28 -0300 (-03) Date: Wed, 20 May 2020 18:12:28 -0300 From: Arnaldo Carvalho de Melo To: Changbin Du Cc: Jiri Olsa , Peter Zijlstra , Ingo Molnar , Namhyung Kim , Steven Rostedt , linux-kernel@vger.kernel.org Subject: Re: [PATCH 16/19] perf ftrace: add option -t/--tid to filter by thread id Message-ID: <20200520211228.GE32678@kernel.org> References: <20200510150628.16610-1-changbin.du@gmail.com> <20200510150628.16610-17-changbin.du@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200510150628.16610-17-changbin.du@gmail.com> X-Url: http://acmel.wordpress.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Sun, May 10, 2020 at 11:06:25PM +0800, Changbin Du escreveu: > This allows us to trace single thread instead of the whole process. I was going to adjust the patch to add, but you forgot to add the entry to tools/perf/Documentation/perf-ftrace.txt, Please do so, - Arnaldo > Signed-off-by: Changbin Du > --- > tools/perf/builtin-ftrace.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/perf/builtin-ftrace.c b/tools/perf/builtin-ftrace.c > index 0b39b6a88026..8d04e5afe2d3 100644 > --- a/tools/perf/builtin-ftrace.c > +++ b/tools/perf/builtin-ftrace.c > @@ -707,6 +707,8 @@ int cmd_ftrace(int argc, const char **argv) > "List available functions to filter"), > OPT_STRING('p', "pid", &ftrace.target.pid, "pid", > "trace on existing process id"), > + OPT_STRING('t', "tid", &ftrace.target.tid, "tid", > + "trace on existing thread id (exclusive to --pid)"), > OPT_INCR('v', "verbose", &verbose, > "be more verbose"), > OPT_BOOLEAN('a', "all-cpus", &ftrace.target.system_wide, > -- > 2.25.1 > -- - Arnaldo