Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp2988260ybg; Sat, 6 Jun 2020 07:30:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmkmbPPLW0W26V9Hr1r89VBndabQ/YuObRyX0vZRPJt7H++UJmAnv/+FieTGDbcm9CiZfT X-Received: by 2002:a17:906:63c9:: with SMTP id u9mr14053181ejk.487.1591453859070; Sat, 06 Jun 2020 07:30:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591453859; cv=none; d=google.com; s=arc-20160816; b=DhZFWvwVSMTZ5gFdIfsh3EbVL48q+EVS6Uj1n0tR6XXse+RCEsIu1oInVC3kNK1Igp 3XbQ1K0gci+nJDg6/pqmiTQmvpgiQvw6tm/yXP8Vr9PJOEFGk7fDgbC/hXbVGPp8h5Vz DH+VZ27/985s0R+5QkgcZdyQTNqPzMgMVTwuqZs7Mfx80xt8mBOf4rmRZV75i0MKYYMs rd82IBm0qjeW22uk52LP7oDNIirc7LlPkzzK80QMFWw+bgk75BCfWH4gCCGAvbyCgTUJ p7tR3M0+HgIrBC8CPcYLrue8bycvx6dd4tVjhFExiUIv1n6tmCxuqWT43VNj8IMbesjz ZkKQ== 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=7u1qVPU8ei3Ef7PZLfQaMsYcgDjM67BObJJlV4teDsI=; b=qGWa22F8XjqQ0r3ESnMAuf6NdvlwAi5k35fZhBqSWXm85BE7lKQkkpctCQJJmmZ15I 6iGZ4R1pHyzXEp2dFjISfJgXgEMPYgzS7YSJ0hDxvpS4ilIL5pCeZ/4UvbAQpyagb9bT icHaW4LSZuzmdeV4BSmc5EOCGgeDUXyfVLCpowwXhuW1c0aJvfsvGNr2aP+7g4WK1CCG 7TVItG5sPB8givYCiuhjsZET13OuPVO+u4ud6CzSE0hIOuvVHfrYTsdIqg48NcCP3U/r PriYFQkChvlcsyz9g1UVacJSGWOLJKBqKl0v2EDHmb5YlRgTaB9ZyWUcw1nEIhgYs+8y YRpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D0AJy4N7; 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 b5si5690088edu.182.2020.06.06.07.30.37; Sat, 06 Jun 2020 07:30:59 -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=D0AJy4N7; 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 S1728633AbgFFO2m (ORCPT + 99 others); Sat, 6 Jun 2020 10:28:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726133AbgFFO2m (ORCPT ); Sat, 6 Jun 2020 10:28:42 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20C40C03E96A for ; Sat, 6 Jun 2020 07:28:42 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id h95so4057155pje.4 for ; Sat, 06 Jun 2020 07:28:42 -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=7u1qVPU8ei3Ef7PZLfQaMsYcgDjM67BObJJlV4teDsI=; b=D0AJy4N72uYwm4MSASFUmBk8WSw+xgGVFWP57bN3TPQiidVi9aLBNSHW1dliH0Lye1 xEldqYN3wu6vLC7U5KuDsWVls3H/egWaKEwQGhQbWrffxZOdSuUiI9IUv6iyhbW5TOIE mKEWRbF8KK8JNCDemCXkBmwxwvXhVaRZBuX2zwBJKn/zDVgb73DM5nFsQfUF50/ArBbK xVLe3Zgz+EG9buV63bmI1GwM9UwXwtqm/dV0fLbPBn4xlhm53lDgPyFSkbeSv5vZdMXd JdxW8jXrAW/7EpPhCdRp8HU/E9ewuQVGcWsNn3A1eg8hCrFcfr4b6JnGCSxQbp7y1KTq 4LRA== 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=7u1qVPU8ei3Ef7PZLfQaMsYcgDjM67BObJJlV4teDsI=; b=N7MxC7BQ/Xz+CGH7JlMmTTpurTvf8pN/0gZ1HPkV1pomwwjxuWeBv5T6tgjcBm7bP5 KSISzZt6VshyY6LPdVaagc5XQvVeZYGDgNIQvAFH5lnSxjsSWlvrZlBaQM5YGlWzEzHD v5dFjcfumpg9LemwQKtAE1N2twBSktCrW53sQldbbyDrtoCwz+kwX1N7l4IQftWnHPwM EXG5hNnpIOjcXuxBti1nSRyy382XBQkzB6IWxU9nH0Fmcw4ipZe7v5ZgC+iXlqnT+npe bVwKwUy1VmFkWaYvkzQAGgeAvcDrOLH3GBk5vxQu9aN4catCG+iNsNABDs0L89Lhghpx yQew== X-Gm-Message-State: AOAM531+4/HEy8JDnAgdsmTi9sXLOxyicKaVB+U8rXKQpSXp8M8pCaF6 BCCCtbGvol6rGeWY6thUEDU= X-Received: by 2002:a17:902:6804:: with SMTP id h4mr13843016plk.135.1591453721681; Sat, 06 Jun 2020 07:28:41 -0700 (PDT) Received: from mail.google.com ([149.248.10.52]) by smtp.gmail.com with ESMTPSA id q201sm2471637pfq.40.2020.06.06.07.28.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jun 2020 07:28:40 -0700 (PDT) Date: Sat, 6 Jun 2020 22:28:33 +0800 From: Changbin Du To: Namhyung Kim Cc: Changbin Du , Jiri Olsa , Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Steven Rostedt , linux-kernel Subject: Re: [PATCH 03/19] perf ftrace: select function/function_graph tracer automatically Message-ID: <20200606142833.l5amhvmvpi26d6g3@mail.google.com> References: <20200510150628.16610-1-changbin.du@gmail.com> <20200510150628.16610-4-changbin.du@gmail.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 Sun, May 31, 2020 at 02:52:23PM +0900, Namhyung Kim wrote: > Hello, > > On Mon, May 11, 2020 at 12:07 AM Changbin Du wrote: > > > > 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. > > Why? You also removed -t/--tracer option. > To save typing. By this way, we do not need the -t/--tracer option which is redundant. When -G is given, it means graph tracer should be used. If not, function tracer. > > - If '-g' or '-G' option is on, then function_graph tracer is used. > > I'm ok with this. > > > - The perf configuration item 'ftrace.tracer' is removed. > > Why? > As explained above, we don't need this option any longer. > > - The default filter for -G is to trace all functions. > > There's no reason to use -G option then. Also It might be confusing > if it sees an argument - whether it's a function or a workload. > > I just don't know why you want to change this as we have a way to > change the default tracer already. > > Thanks > > Namhyung -- Cheers, Changbin Du