Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2705328pxa; Fri, 7 Aug 2020 19:26:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPuiayTSiJsL8V+a8koAP6ReFHa7j+hgclLd6wd5yIGBgdaIT2PeBfV5qCTHuRn2xxi2ul X-Received: by 2002:a17:906:386:: with SMTP id b6mr12029742eja.538.1596853593022; Fri, 07 Aug 2020 19:26:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596853593; cv=none; d=google.com; s=arc-20160816; b=Q6CfSEHkLXQ0/YMzTd6cIW5DOfbqWqR40cPJJi+kpZQAiry3mhqzh5GvPw/hOfqjE5 6Evp4EQLOgxXFaI4fbmjziKf8kZ6Eb8FpTjRitsF++lgE1ma9K1VUZEy0o4anoQ/sRjg 64v9Kmkyq1LT8SCCAuh0x+B/P1yUgdt7y3y3ll/F4HWUCx7lfo8LbPIaDJ+CaPxA1UK6 3fYFNxQYdIX3m8i6ZitrO19P0+v9BvW8c6sgVtEvh0Qee3PgRMasGZ4VejIaFTfS+hea e15ysxTaJCVjNNdXeEIglcvMDHIcPnM4p5dq7ZD3JU2XC0VKdjqsjR+e/7fg9b1JUamN Yu7A== 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=ecrnqYOvc4eCeauMfs2J6ltj0dBor5l9FCOKfk/i2NE=; b=IB7ful4+g9Wrgd4VwCb6eHmdOReTLaUC7tCzhMB23EAwjBExAJZwHjFlvwE4oD502u /ctqn+s41Pue2jXV1p6yFQljGQ7RQboDECJ7SPtIctKCXK1pSMNlamnf0VCwXcLgLn/a S5v5c9+OEwqcfkRiQP+GvZOAynWqd2j+I3IwfUkUR7j3TTD1ckiviEEde0aCYzXbWH0E E2ZJyWZ7BEfAhtM2w7iojHWan7Kuy5FXTETyvcDdS/UVBP3SC3MHHRxmIm1WNHzd6bhj kubeSBBxFQy6XyfMIUbkXtcL2GlzGKs4m7xQsehcZg+Sj8xQNcmUhMikcGIxc6Duxjje x7vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IsbJCfT9; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w4si6604727ejb.443.2020.08.07.19.26.09; Fri, 07 Aug 2020 19:26:33 -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=@gmail.com header.s=20161025 header.b=IsbJCfT9; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726307AbgHHCWT (ORCPT + 99 others); Fri, 7 Aug 2020 22:22:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726186AbgHHCWS (ORCPT ); Fri, 7 Aug 2020 22:22:18 -0400 Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36B76C061756 for ; Fri, 7 Aug 2020 19:22:18 -0700 (PDT) Received: by mail-qt1-x841.google.com with SMTP id b25so2782767qto.2 for ; Fri, 07 Aug 2020 19:22:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ecrnqYOvc4eCeauMfs2J6ltj0dBor5l9FCOKfk/i2NE=; b=IsbJCfT9oVZ5agxDiVijRJYQ9e6JAKIQZC1Wx5njAoRkdcMK1YNS/yaBEJVw9hyJ+1 O41sdyPfGqA1ihXW3L4Z92E57qUtjHb0azYl+jTGL/0b+r80ycB32zdcHepRTJZ6Zv+c NJNYv6+FTcpAMqRrh2XRp3nGn9i9Z2B76FI9zCscozBtGfOcGEVyx3WsoL6/krziaQju sYfDUEI1a7DWTDkAPQRASLvRVwHo0tSWFdl/SiNBpS/UpddzIJhghPGTARUxVz3X/KjY MtqtGg3CXuuB1IGA6i/A3mgJigRTBO7hl3cKduviJ4YCJ0q7ZcA7k+2DFzyLL2+kU17U V3sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ecrnqYOvc4eCeauMfs2J6ltj0dBor5l9FCOKfk/i2NE=; b=qxYqYtXfLnkSu6msvCkKj0xp9os9y28l+W2MglsB2tsdVnbafiwG/o4ugYcdtOHFEB xucuasdegbRXdeGljt+fPcZb1xqi9uis+8etPL6W9ELJ0xG74QAEfxpPaX35Fs49kq8h 9TXXVfi8WWVVUP794zPg3yLjLop77RqCmpYTqnhyU2caHZ8ei78Ej4I83TlkMnfb8rHO 1Yj9Fq52pEUCPoISz7rCiT7zx4GsBJPXpSpaif8rK8bgzA4xY0v1AqbM52rML/zy6gET GFk9thzxwqwWWFKBl8LRcxl5eyYVa8wI3sOJZcVbjX+oQkxX6+HWwpGHLnYiQqyYVF3a CHVg== X-Gm-Message-State: AOAM533qPPQTrkmDz1TBvYLs7Igc0F06hPgxYsoPqRtfZe2rZBcFF0l9 xU8mgWWAYGK+58JBM8KWmr4= X-Received: by 2002:ac8:4c8e:: with SMTP id j14mr17652215qtv.381.1596853337361; Fri, 07 Aug 2020 19:22:17 -0700 (PDT) Received: from mail.google.com ([66.42.85.36]) by smtp.gmail.com with ESMTPSA id e4sm9412771qts.57.2020.08.07.19.22.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Aug 2020 19:22:16 -0700 (PDT) Date: Sat, 8 Aug 2020 10:22:03 +0800 From: Changbin Du To: Arnaldo Carvalho de Melo Cc: Changbin Du , Jiri Olsa , Peter Zijlstra , Ingo Molnar , Namhyung Kim , Steven Rostedt , linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 01/18] perf ftrace: select function/function_graph tracer automatically Message-ID: <20200808022203.yqadm2verquocjrg@mail.google.com> References: <20200718064826.9865-1-changbin.du@gmail.com> <20200718064826.9865-2-changbin.du@gmail.com> <20200804125115.GF3440834@kernel.org> <20200806001448.ln2u7qyc4fnuk5lh@mail.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 05, 2020 at 10:05:03PM -0300, Arnaldo Carvalho de Melo wrote: > > > On August 5, 2020 9:14:48 PM GMT-03:00, Changbin Du wrote: > >On Tue, Aug 04, 2020 at 09:51:15AM -0300, Arnaldo Carvalho de Melo > >wrote: > >> Em Sat, Jul 18, 2020 at 02:48:09PM +0800, Changbin Du escreveu: > >> > The '-g/-G' options have already implied function_graph tracer > >should be > >> > used instead of function tracer. So the extra option '--tracer' can > >be > >> > killed. > >> > > >> > This patch changes the behavior as below: > >> > - By default, function tracer is used. > >> > - If '-g' or '-G' option is on, then function_graph tracer is > >used. > >> > - The perf configuration item 'ftrace.tracer' is marked as > >deprecated. > >> > - The option '--tracer' is marked as deprecated. > >> > >> You should try to be more granular, for instance, I think the > >decision > >> to change the default is questionable, but could be acceptable. > >> > >> But why deprecate the perf configuration for the default tracer? > >> > >> Say people who already use 'perf ftrace ls' go and use with this > >patch > >> and see that it changed the default from the function_graph tracer to > >> the function tracer and disagree with you, they want the default to > >be > >> the function graph tracer, know that there is (or there was) a > >> ftrace.tracer in ~/.prefconfig, and then try that, only to find out > >that > >> it is not possible, frustrating :-\ > >> > >> So can we please remove this deprecation of ftrace.tracer so that > >people > >> used to how it was can get that behaviour back? > >> > >Agreed. If no -F or -G is given, we can use the ftrace.tracer as > >default tracer. > >Let me update it. Thanks. > > Thanks, I'm general try to be as granular as possible, doing one thing per patch, this way the reviewer can do some preliminary cherry picking and we also improve git bisectability. > Arnaldo, I changed the policy as below: - Preserve the default tracerr which is function_graph. - If '-g' or '-G' option is on, then function_graph tracer is used. - If '-T' or '-N' option is on, then function tracer is used. - The option '--tracer' or configuration ftrace.tracer only takes effect if neither -g/-G nor -T/-N is specified. - The function_graph has priority over function tracer if both -G/-g and -T/-N are given. Please check updatae in v8. Thanks. > - Arnaldo > > -- > Sent from my Android device with K-9 Mail. Please excuse my brevity. -- Cheers, Changbin Du