Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1140247ybt; Tue, 7 Jul 2020 08:37:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9uw/+D4eMQLbTJOqxMlDmmWL9XjdPMZk8eu/IXxJGyeceM9xjfSOWNmKWQUM8LDSS2ZCW X-Received: by 2002:a17:906:a892:: with SMTP id ha18mr48932506ejb.462.1594136274956; Tue, 07 Jul 2020 08:37:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594136274; cv=none; d=google.com; s=arc-20160816; b=tkp9Kg3a6toP5hyb0wRc7Fcd2HyF3cd4NU7DxEACLCU2LmxQqDcaLXl2of/a/FdU/s UfWLtO8GqH18VxmVnIDuB1FKbQX/zEGrAPjQTK1jU9JGnSMrunwdUo7nAJHHBDe7RXG1 EI6Cxg16SBYPi7/jmXRTPZQjPYKxQr+WorFXalsi2Op2ZVPP3l2HsLDznBUyaE4Vghf9 LQHhBys0HTFIm1AAaFOWgs1V0g/cgDki8tGJoIaqeRNpTEHpbfETnGipyxdleLFni6tJ 3kVAxR1urxaTpsoH7E/DneyPA2QRaDvHOfEl78js3SY0jRxxRggX1UUCEyb7rqWOG8Fm ysHg== 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=FubiaJrJ/ejtjKW9q0vU+V2MToP8DXY+XUIRZUJinp8=; b=Ir0gP658aG2iz8TnU1UUPQy/2Tf380vELy3kXUqrF8OKnSkiOVIXWAq48KcNA8IXY/ d5PW+DXOYLwgo/k/tdrpFxIeGkBgoVKnAkj/T9sLA6NRyNGlQBQbAOcH7ch2PIH9A7OT bpVikhsdtiNSoBu+6thglHlotcODSsrdsXYyka0gF7ATg8NL2FDJxeGdunxLso+3CJSq l0T5QJdhfHmHCWld27Dp0yGEFHISfx5EDBpbbLIYBxB1MxOQRH26W0sHcP0c+LDeBN5I KFB/4k9FPC3dSpORIOHwoceDR/wEda3sHRBrbm+dlrzi5BM3AStGFAaz3dQrheX0xYsa 7LgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fDpGjwrr; 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 dc14si15042883edb.240.2020.07.07.08.37.31; Tue, 07 Jul 2020 08:37:54 -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=fDpGjwrr; 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 S1728864AbgGGPfa (ORCPT + 99 others); Tue, 7 Jul 2020 11:35:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727079AbgGGPf3 (ORCPT ); Tue, 7 Jul 2020 11:35:29 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B889C061755 for ; Tue, 7 Jul 2020 08:35:29 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id j19so13307661pgm.11 for ; Tue, 07 Jul 2020 08:35:29 -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=FubiaJrJ/ejtjKW9q0vU+V2MToP8DXY+XUIRZUJinp8=; b=fDpGjwrr9PbxsqA9cOKIZCO9++B3t8yE7X3wFtUdSvnwuOSuA/ciPhpme3sBYfY9Qy 2twgcO/+i43ksLjp+auYoXYzztBJemEitU6isiEdS2WHqp9+V4RbGb6soj2TUTQ5AG4S lEcP2OdKa4iy/x5u/nOcTi259UG24jMuLAEFVZBNiHvzdEUVg0gLijlKTFXwfHj3sEzH WAQ2+Aw+qI9KaoFewznJRFD69JlPiisgZJ71gbXlv4l+4jfDSxF/jZLPGWEnwVLwHWEL 2/v7/gdmZFCMSJExmXi+K9zMIqCRYqNcg4t+0fO/F/ZnsQZ7RbQfzz4SO9fh5sXHL6Jj V02w== 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=FubiaJrJ/ejtjKW9q0vU+V2MToP8DXY+XUIRZUJinp8=; b=dU2fW51wzKDJM7Rs0tWq+WmkDUEnAqMRiuBSHwE6MfnRbncsnRHmrtrlMbJMnZSeyF +VkUv5JdPWtH61sZMJtIQPg498KveaY4KzubS3V+MrETeThnv8cfFm72QDVPsMpfM4SN 7Svn4RCDTO3GGV8qtvwgbKEJ65g6rMtzBK20wFiKOLzlHZhK+TvGDU1EiqlcX9SVrzWf TdwzmZXLx17sHdzWB2Nb9SF2jpHAqhZgumBX82IFYhrSDL8fs2pzg1YZIJWpyhfQh41N 6EM9A24/nol21IBZ6XdtZ/lt39kmLgRxsntIFEL0k8TDbaXM2sGwSTfZRcCDhazWpVtS cVYw== X-Gm-Message-State: AOAM533IAVrOdSspk5QQFcE+f4B8/iUGrt2kk3giilQTAExKy6h972jm c/CfMUumWKTm9uopIaf7MVs= X-Received: by 2002:a63:e057:: with SMTP id n23mr44598167pgj.368.1594136129095; Tue, 07 Jul 2020 08:35:29 -0700 (PDT) Received: from mail.google.com ([149.248.10.52]) by smtp.gmail.com with ESMTPSA id q6sm22773719pfg.76.2020.07.07.08.35.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 08:35:27 -0700 (PDT) Date: Tue, 7 Jul 2020 23:35:14 +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 v2 10/15] perf ftrace: add support for trace option sleep-time Message-ID: <20200707152539.ldhgqf6vmnttqnfn@mail.google.com> References: <20200627133654.64863-1-changbin.du@gmail.com> <20200627133654.64863-11-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 Fri, Jul 03, 2020 at 03:40:59PM +0900, Namhyung Kim wrote: > On Sat, Jun 27, 2020 at 10:38 PM Changbin Du wrote: > > > > This adds an option '--graph-nosleep-time' which allow us only to measure > > on-CPU time. This option is function_graph tracer only. > > I'd suggest --graph-sleep-time instead and set it by default. > Then we can have --no-graph-sleep-time as well. > If so can we make --graph-sleep-time as default. Seems there is no something like OPT_BOOLEAN_DEFAULT(). > By the way, didn't we agree to have something like --graph-opts instead? > As I mentioned in previous version, --graph-opts make the parsing a little complex. --graph-opts depth=,nosleep_time,noirqs,no_tail,verbose While the exsiting style is '--graph-depth '. The cons is we must type more characters. The pros is don't need to reimplement parsing and align with old behaviour. --graph-depth --graph-nosleep-time --graph-noirqs --graph-notail --graph-verbose > Thanks > Namhyung > > > > > Signed-off-by: Changbin Du > > -- Cheers, Changbin Du