Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1817049ybm; Sat, 30 May 2020 22:55:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyA/rlS8aJivOLp1Mryy15m9OlBD2GLKZA9dXHquXEm4YhpXtiriTIRLDOyNTD1IZW7nz3c X-Received: by 2002:a17:906:7f05:: with SMTP id d5mr5597468ejr.70.1590904543158; Sat, 30 May 2020 22:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590904543; cv=none; d=google.com; s=arc-20160816; b=a3PajunnSbBnI2nDQ8sR6M3jplyTq/eZMb7s7Gz8X/AYybuNbX+J/W7RmQmc2V6ZGs zZeJ9jrOWrnJpBj6WdIwumpqw1I362vqQhHyMdNnZ6SkRI0YVXWPxX4AAKPzjabb32TB +8P2UglhpRVLdCzgs04LaVHN4lbmSJJ/hYAPG/LBfYrx9z2vrLKfzMxljkA4OLKzsbQg ER6QoyBWoIysBlm7x76UcUwlduNkraNgfTU0OICus1IO7TQzR7xlz8rZ5zIERLSYxhgP GGpzVfGJ0UqGR/2hwaBOLFn7EUpPVdoQ8ouYS9NzawHM1CWiy8CvgehPlHB+bFemUujT sUig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=lEESxdWkBaFZaHt1Qo9sGBPt3NVRbxITfikSAaK4xFw=; b=WgrWxU+PpKftHadn64Rld5qr79szK7/9k7oAj3VfOuCdXUayd5JR3xeVi3ZUWUqIVD JKtTB4Gw++qSWYCdh1Uv0I/ACZaOLw2cWfRYwkI7ou/nXu4x6pT9YDrd/dJErtc/JqJt vZj3XJBAdbJMWwpAMXT8qvjJ0Cv4icjUQdb8GswuB8fZ1uxD7uiJ3fGFWJ6j7xwhVJBb 2eKCpnXXZJvl+fkI2bMxgabVnqvsOb3rQxZWDa0K4ftbqBlKSqfBwsx+EXNz4p0efDzv X3AZmlt4MUq8T8LraQfoC/FlX/rtT8W47VCJD6RLZuTrDgxCwi+EjGHkMwa5zfeVi3Xs uMXA== ARC-Authentication-Results: i=1; mx.google.com; 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 b17si8476090eja.150.2020.05.30.22.55.06; Sat, 30 May 2020 22:55:43 -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; 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 S1726020AbgEaFwh (ORCPT + 99 others); Sun, 31 May 2020 01:52:37 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:45862 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725898AbgEaFwh (ORCPT ); Sun, 31 May 2020 01:52:37 -0400 Received: by mail-ed1-f68.google.com with SMTP id s19so4786286edt.12 for ; Sat, 30 May 2020 22:52:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lEESxdWkBaFZaHt1Qo9sGBPt3NVRbxITfikSAaK4xFw=; b=Gs028hPWlUOhIRwh6kYt9kMoZPHPsTMnaVkFikkwNVEI5HBlrf4a/CKZOz9xXlsyTj CpgaZcNKAIA+FfZGjEUHWzkRU2OYHvJ9u15lejmazyy++HIcY16f7KQ9WrtvS5B+kh0r CLWU65jGnWdI/nXPvtHPBQSHb5gKDulZ7s8awCE9RFSz1OXDZ95lnJp4nE7XzsIH8ZfD 6PVDjE4vpkzs1qnbvI/4rcC1b4r7me1lkrIWc8h+OfsWQREBB3ggilFcxrGVwFoi5dUn qIoP4EN6UjeC3796WnItEzQ2tuW1hMnHM7fJY99lckBZxT+c1eQtPt2WownpahyY3k/m p/ew== X-Gm-Message-State: AOAM531IfM81gSpKqsIEYyW4YqkX4cfvayvlTSttUGv9J/30soNcZO7I 7sJDRJi3PyarVgJDhwtlEZ03tiVwvVPytEsiP4o9Uw== X-Received: by 2002:adf:a50e:: with SMTP id i14mr4342367wrb.21.1590904354886; Sat, 30 May 2020 22:52:34 -0700 (PDT) MIME-Version: 1.0 References: <20200510150628.16610-1-changbin.du@gmail.com> <20200510150628.16610-4-changbin.du@gmail.com> In-Reply-To: <20200510150628.16610-4-changbin.du@gmail.com> From: Namhyung Kim Date: Sun, 31 May 2020 14:52:23 +0900 Message-ID: Subject: Re: [PATCH 03/19] perf ftrace: select function/function_graph tracer automatically To: Changbin Du Cc: Jiri Olsa , Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Steven Rostedt , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > - 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? > - 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