Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp168114ybn; Thu, 3 Oct 2019 03:20:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyEYwqYYuIJ8hdvEaqzF2qUIv92fiijD/dZMFOR23luZqsCZrGSy0qirKotSufYKq7wqNYI X-Received: by 2002:a17:906:d926:: with SMTP id rn6mr6808079ejb.175.1570098024449; Thu, 03 Oct 2019 03:20:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570098024; cv=none; d=google.com; s=arc-20160816; b=VfBA+BOt9G2iM7I/xOv7BRPguYIqAbuw4lmJWbM71v1uvfIVwaGLQBLL9N+7rgqnw4 TQy2CLCRoXPBP3G/vLOWgNwIhH4hFf8EcKk9CF66wCkFTNiIVhqxhTB2qOdtJSlxT6/W ZRvwIBzKqN4yKREE77qVwhf3z5ukesBBRCxd+ZJZ1IAJ8u5ySsOx/dqBqCifbI+6TRyz mkGqt4gIZGDRaRGaI4csdj/HpI8mhZqg5J5kQtuWkxHH6t5DpHRy0oHzJelSvHBJLwm0 kbUqiTJ5bYXDtQJZ+/ZbIsbbHJMDTYh8bs30VE9mtigGZpSffJd57IaIwtvPArrFkvbw vv0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=QoWmXAq3PLbdzhwHOe5ekk29f4s+U33hZHL9z4CKl0g=; b=j5OHqKZWIkg78FwYyr2IFHJMQDuXg0aNa7KnrCdWxLTqxJHZ5BiBm/qOW42EUAcG+Q c/7Rm+SqjUgWfOIKGRy2AJcpBNsvZM0qGyq4hnVrn8uglK/76V+MvsrLpbtlP4p8ZHHo k+W+MDayRO13dJxbCMjxqxk9z1rExXHBRFD5eSERub3B/CbOZKznm0wxlMcJKsQnwI8J 1Ta7GG8DtFnCun/iMEqm+Kpo4uApx4K07fvZFCVXV1FL5P2ugesjvvYQmSMm1i5sn6/J Bm9UNDYMPsAjbY3kYOA9AsR9yuHayTRm3+ZRT9klVqHOtf91kTeqps1oKgpo25Vh9rI8 oZZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k16si960551ejo.7.2019.10.03.03.19.59; Thu, 03 Oct 2019 03:20:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729094AbfJCKS3 (ORCPT + 99 others); Thu, 3 Oct 2019 06:18:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35916 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726978AbfJCKS3 (ORCPT ); Thu, 3 Oct 2019 06:18:29 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 92A753098215; Thu, 3 Oct 2019 10:18:29 +0000 (UTC) Received: from krava (unknown [10.43.17.55]) by smtp.corp.redhat.com (Postfix) with SMTP id 719C4608C2; Thu, 3 Oct 2019 10:18:28 +0000 (UTC) Date: Thu, 3 Oct 2019 12:18:27 +0200 From: Jiri Olsa To: Andi Kleen Cc: acme@kernel.org, jolsa@kernel.org, linux-kernel@vger.kernel.org, Andi Kleen Subject: Re: [PATCH] perf script: Allow --time with --reltime Message-ID: <20191003101827.GA23291@krava> References: <20191002164642.1719-1-andi@firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191002164642.1719-1-andi@firstfloor.org> User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Thu, 03 Oct 2019 10:18:29 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 02, 2019 at 09:46:42AM -0700, Andi Kleen wrote: > From: Andi Kleen > > The original --reltime patch forbid --time with --reltime. > > But it turns out --time doesn't really care about --reltime, because > the relative time is only used at final output, while > the time filtering always works earlier on absolute time. > > So just remove the check and allow combining the two options. > > Fixes: 90b10f47c0ee ("perf script: Support relative time") > Signed-off-by: Andi Kleen Acked-by: Jiri Olsa thanks, jirka > --- > tools/perf/builtin-script.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c > index 32b17d51c982..7481003b2761 100644 > --- a/tools/perf/builtin-script.c > +++ b/tools/perf/builtin-script.c > @@ -3601,11 +3601,6 @@ int cmd_script(int argc, const char **argv) > } > } > > - if (script.time_str && reltime) { > - fprintf(stderr, "Don't combine --reltime with --time\n"); > - return -1; > - } > - > if (itrace_synth_opts.callchain && > itrace_synth_opts.callchain_sz > scripting_max_stack) > scripting_max_stack = itrace_synth_opts.callchain_sz; > -- > 2.21.0 >