Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1166028ybk; Sun, 10 May 2020 08:08:56 -0700 (PDT) X-Google-Smtp-Source: APiQypIIZwRurxMFriEqeMjWP5P3kUvM+CV5OuJ9dpV6cf89nl0hwnlM6WhiUZiIK3ozHcHx+7W2 X-Received: by 2002:a17:906:4553:: with SMTP id s19mr9746477ejq.295.1589123336676; Sun, 10 May 2020 08:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589123336; cv=none; d=google.com; s=arc-20160816; b=fGqnH5MS9twxRquI34snhSS7GtHiGdVgNz3LfxxCuH0v/pgTMJ26C0T6jHRCTWNh5C YTYPLtlYww31NCvTVWkTkkSNgPSQg/7+lRRxgBzznQT/wfDRT0egGOIC7nuO3Es1Khah a3jYWnMNQsLPGo3K9geSR+Zv4jUwvKJOCQv8dtZQsjyP881OtOEKlt0C8BABw4mOqAHf U56iqpF5hKWPlrAVyiSuAGcSqCw6Wa1zuwIQtHD1P821aQ18rr+7dgkInbYNEcI6wGSu Lz/OeWSaZP1BX27uVi0fmFUiF1D2Y7xoOPwk3alDdJgc4Lm+Gl5KjlYfvfVBfvP48YmE 7oMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9uC5ywdwhC6QhJdb040LifTd+jWrOXKwSoJG87krF0M=; b=ybr2TeZ4t/DBpq3UIpW7kg3YuCS8JLav3F5247gr0x9LWi3CvXZ39R0EtoDM7qVGO/ tU7wLVG0pKujI/dGBYd8Z1T401ZcFRKFk5lvDrXWQzp5N/geE+en0Oqcyhlptjf/H6rK eMtS0x/A1JNFptJxcQeLYCAKCnQ3So6JLiAXRQ1H8OD0wZfWpcLmVLOli8v12u6wEblL gbbDyudsr10iZJoNFOJ+TIpiJWUfIfGdrUOvgbxpJZ+y5BLQSLFnBbXaDlxoHzdr0vTN PFD5mSciMzVpXqZOIJOOGe7ijHYOcQrRglk826+EBw3QDAjL7KWZMGJXYb/21NumIyh4 RYow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WVRLolBe; 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 j19si4408355eds.208.2020.05.10.08.08.33; Sun, 10 May 2020 08:08:56 -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=WVRLolBe; 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 S1729132AbgEJPG7 (ORCPT + 99 others); Sun, 10 May 2020 11:06:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726104AbgEJPG6 (ORCPT ); Sun, 10 May 2020 11:06:58 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB0E0C061A0C for ; Sun, 10 May 2020 08:06:58 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id u10so2812346pls.8 for ; Sun, 10 May 2020 08:06:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9uC5ywdwhC6QhJdb040LifTd+jWrOXKwSoJG87krF0M=; b=WVRLolBea36VTFfp7GQ/0SjwqfNb0SXj2jlD4in55TDGbD0zqkMDVpsAL5mWHnB3V7 ttnKV+1gLd8VyxwOu+B1OQYK1zpIyJGvIJd7Ykjy6jM7GKVvnGmFEGgDtpA4hT+kxyE5 Gj3QTZ0d6rD5c74JrSmRxPP+hFZjQmyQAqQ0XzZIGWlAxzgbO0i3lIyvfFHAphGvoiRS QK3J5nxQWDrTKwF5QlTmw9mOsnjdin45NG1x00MGaTqyWfJPJQburTdqptU1dhPLxh4v LWHdg/hfo15aKk85DEKT0Y1E1OVMKAuoAlGexyaAtEpjbs+5b/Oc6v2juGBWqMef9Akw qsFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9uC5ywdwhC6QhJdb040LifTd+jWrOXKwSoJG87krF0M=; b=E0YMgItAbREK/wA9M4ATpEhFLrtZHDb4GELbex+wjAW/uHbPCT37+XO8ZctsgFb2pr e7PvDabI/PzttED2dOgvNRsd0MJW8zjXX379cv09x7Ws/WZd4jQU8mtA0c4G5dbqd2lp +Zbrqt35Hi2LQHIlkRr+7qzGlHaQLoLdVrBzd36m8lDd/kkPLO9fmIhaC7mulJyv7Ui+ XYW1+2U4JuRE9uySARHAn4WawfNPidmnCT9pNW4PwNKxfoxiOxV6A2YyGRih+ki2Yq4F LIEmzGMyCxvapbuUfa4w4B9wEr670+gEcWV++sFIV9nG2klHqnRzXCoLKSercdRToVJ7 E1Gw== X-Gm-Message-State: AGi0PuYTjBJBzO9tMianusEXxBiMqCL9aJjLFesKwxYkKTtCGhurkUdy KM/qgtLqcikDhOVlKG4bMGs= X-Received: by 2002:a17:90a:23e2:: with SMTP id g89mr17243006pje.105.1589123218126; Sun, 10 May 2020 08:06:58 -0700 (PDT) Received: from vultr.guest ([149.248.10.52]) by smtp.gmail.com with ESMTPSA id v7sm6870909pfm.146.2020.05.10.08.06.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 May 2020 08:06:57 -0700 (PDT) From: Changbin Du To: Jiri Olsa , Arnaldo Carvalho de Melo Cc: Peter Zijlstra , Ingo Molnar , Namhyung Kim , Steven Rostedt , linux-kernel@vger.kernel.org, Changbin Du Subject: [PATCH 01/19] perf ftrace: trace system wide if no target is given Date: Sun, 10 May 2020 23:06:10 +0800 Message-Id: <20200510150628.16610-2-changbin.du@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200510150628.16610-1-changbin.du@gmail.com> References: <20200510150628.16610-1-changbin.du@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This align ftrace to other perf sub-commands that if no target specified then we trace all functions. Signed-off-by: Changbin Du --- tools/perf/builtin-ftrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/builtin-ftrace.c b/tools/perf/builtin-ftrace.c index d5adc417a4ca..11fc02037899 100644 --- a/tools/perf/builtin-ftrace.c +++ b/tools/perf/builtin-ftrace.c @@ -493,7 +493,7 @@ int cmd_ftrace(int argc, const char **argv) argc = parse_options(argc, argv, ftrace_options, ftrace_usage, PARSE_OPT_STOP_AT_NON_OPTION); if (!argc && target__none(&ftrace.target)) - usage_with_options(ftrace_usage, ftrace_options); + ftrace.target.system_wide = true; ret = target__validate(&ftrace.target); if (ret) { -- 2.25.1