Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp3000115ybg; Sat, 6 Jun 2020 07:49:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAY3S0/3wqoIdRzGb7wyNK8FOnd6Q7lo+DYuXLIt8D2b+T2nvalCbBdHPvKd9cZGkMa5PA X-Received: by 2002:a17:906:8387:: with SMTP id p7mr13195872ejx.323.1591454984726; Sat, 06 Jun 2020 07:49:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591454984; cv=none; d=google.com; s=arc-20160816; b=MDY/BGdy0crhV8o+SvWE0CLh9CJTSFfEem/DGtQnOIWJJai9GMJEZwpZG42uxrnT7P sv7kvUzmzN1/beLCdBd8MZDDBnz832+bhiSrjjj0Hj0uwnxlB85bjx4TvQDPSPfsRP4H JBPJTsuI58BI8xwzWL6Sdj+3I4pWwnRW9zlntSP8qtrk3dnR4Q+OZvvlt1g4YteBoPSr JtWj2yUpDUjhhThfNEW514pkvxzqswzvsTmvevAANgGal41IaM2R4N1GKSfcszlyVdBs e0XeaC4qzpgrjotQpD4tVGGIbCwLXIcLAEAt0ruTiqZKwMj7hsWolyD7+/975fgl1zbg zJkw== 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=50yqHb4PNplMXBGZYcRRRB7EcbDjgp32miufY8ZFWsY=; b=PYpuHo3wq7Wz2gvbrBXYhAh74O7t16jRREAFl1kBJagabU5ErEncFJB6i6G4z0OPhD 1hjuubLsin8IKvOqngh8Hc9A31QF2zdIixLGUQOPf3MMs7FGljRU9KxY8IbVdc4F042N 2jPhT1ixmc82Zgo+SkIhAEX82WlIfr5xd9KRXcFt17O2r7xiQ1E1gX8aAluQYs9IG/Bh iTBjmyMC4a3zYKbHwNisp8VajEYJuWbA/IxMYoQ/qtgE1e8iLZJU9jZNVA5vzCgNoRdf yWhAJInmLWg87LQGNLctL6iViCKHRh4g3ufjAj7+WbvNfFxOAzVBLa9M8t5kSKUAoHLL lTgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QveHIXa8; 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 i21si796091ejj.293.2020.06.06.07.49.21; Sat, 06 Jun 2020 07:49:44 -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=QveHIXa8; 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 S1728717AbgFFOrb (ORCPT + 99 others); Sat, 6 Jun 2020 10:47:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727894AbgFFOra (ORCPT ); Sat, 6 Jun 2020 10:47:30 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB3E3C03E96A for ; Sat, 6 Jun 2020 07:47:30 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id k2so3870450pjs.2 for ; Sat, 06 Jun 2020 07:47:30 -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=50yqHb4PNplMXBGZYcRRRB7EcbDjgp32miufY8ZFWsY=; b=QveHIXa8VdURrxPoOZBq9torY1Fe8GctLjoOCXtVGnBedyoMzfNHffMTIrAR2u2pV4 w0S8JGtug6zEhGlkQNum3ALQmY9gh3s+3s7Ykijd+7jzEbX8a3yX2MlRLhlbly9Tyrt9 307a46YfvIdqRTEyFK/b1gJuN+4o0IW6W+zEm/GKzD0GT45PwsLBKHB0nUEkig3WY7mq VBFVG/SD87Z7bI0B58wcC615X7L9NsvNuXuoe/cHCZkFfjz4BmJwyw8ybJ7R+Ktc9UXK SE7GgcfpswxT+Sp5QEtXcMBLOgCJQGcbEr1ceamInJacahJqUiQMp2u852WEMwlyqAHt 1V3g== 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=50yqHb4PNplMXBGZYcRRRB7EcbDjgp32miufY8ZFWsY=; b=BxRQs0l+5dN5CEuy0nUj/ZC/4okzsYpqPVD9Ah+KBiJ1oTDesjweY3CssJ41eBL3Z2 3+78xA6EWwJJx8ZKI0y+uhkVOdLWY6/xiA78WbXkhvPV+6H9AAkibOQydFXEbCevtl5z aAIn8uxsKVVrtM91sKIxJMH4dMDU8AYeWgSin6/yDYrAYNduYpYJ9VpM0sk1DiGwbtxv g9+LDMIDpl52X+EVc/9vk/hparxCBxqUvjfSzCcjO3USpQz/8ZAz1D6yhUkF5X2HcFG2 XnKHCObtJ3pKD+y2Iv9RKArTF7Nufaiu3y/vHDt6g6AHnl04J80J1et7OiY4i3SJtbyU zeuQ== X-Gm-Message-State: AOAM533lJBCR+wDqZu0KmzshrbqkY81uCr7FPnpXkOrkgAjo5tDcGF64 gl1Y5PjDOC7tr7JXf6IzlaI= X-Received: by 2002:a17:90a:b78e:: with SMTP id m14mr7937013pjr.114.1591454850406; Sat, 06 Jun 2020 07:47:30 -0700 (PDT) Received: from mail.google.com ([149.248.10.52]) by smtp.gmail.com with ESMTPSA id s32sm2231157pjd.6.2020.06.06.07.47.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jun 2020 07:47:29 -0700 (PDT) Date: Sat, 6 Jun 2020 22:47:20 +0800 From: Changbin Du To: Changbin Du Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Jiri Olsa , linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf trace: add default value for opt 'call-graph' Message-ID: <20200606144720.44brke7t3ej7ovho@mail.google.com> References: <20200503040056.29683-1-changbin.du@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200503040056.29683-1-changbin.du@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnaldo, Have you checked this one? thanks. On Sun, May 03, 2020 at 04:00:56AM +0000, Changbin Du wrote: > The documentation says the default value of call-graph.record_mode is 'fp'. > But actually we never can omit value of call-graph parameter. This patch > can fix this issue. > > Meanwhile, this patch adds a short name '-g' for opt 'call-graph' since it's > very useful. > > Signed-off-by: Changbin Du > --- > tools/perf/builtin-trace.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c > index 01d542007c8b..21a9656021a0 100644 > --- a/tools/perf/builtin-trace.c > +++ b/tools/perf/builtin-trace.c > @@ -4754,9 +4754,9 @@ int cmd_trace(int argc, const char **argv) > "Trace pagefaults", parse_pagefaults, "maj"), > OPT_BOOLEAN(0, "syscalls", &trace.trace_syscalls, "Trace syscalls"), > OPT_BOOLEAN('f', "force", &trace.force, "don't complain, do it"), > - OPT_CALLBACK(0, "call-graph", &trace.opts, > + OPT_CALLBACK_DEFAULT('g', "call-graph", &trace.opts, > "record_mode[,record_size]", record_callchain_help, > - &record_parse_callchain_opt), > + &record_parse_callchain_opt, "fp"), > OPT_BOOLEAN(0, "libtraceevent_print", &trace.libtraceevent_print, > "Use libtraceevent to print the tracepoint arguments."), > OPT_BOOLEAN(0, "kernel-syscall-graph", &trace.kernel_syscallchains, > -- > 2.17.1 > -- Cheers, Changbin Du