Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4827288ybl; Wed, 22 Jan 2020 05:29:23 -0800 (PST) X-Google-Smtp-Source: APXvYqyLbpaUfVbDV188cmw7lHjdqmu10joUtH/1yZ1wE8B8EclpRTRmbCSSeLhUI/1z8s3ngOMu X-Received: by 2002:a05:6830:2141:: with SMTP id r1mr7285623otd.39.1579699763426; Wed, 22 Jan 2020 05:29:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579699763; cv=none; d=google.com; s=arc-20160816; b=U6wPGR5TVNbpJbjAfOUlrY8j2IkMGQeQyNFVeT1oQs46TpRS/8eiBPLLosf90/Ulmj ySs0RhqIi7gXrfsWAfo24a5fnNf+54PeRhZ9/zlT3Y68LWX9zrukwKaOC90r0+84Y+Vt yGJMb5oS5NkoomaPW3FwnSi2AUcHzzIvjgNpQSuiqtd0vIS8CwOwU89rVG2O+OPan4cC uyWNG+RC+yYQF7QN/mem28fp60ddzfaalo9QmehaO7f1Zu92vlKNXvQzPssjR79cq8rk xzrQ21Vrq4lsZF/hOaMgpGz/QWN2gNP1FK8AgUzD4I7yWFOFx6za398jYDaSZp3DZ0oG 5LYg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=iic/ZZUZziZuPPxd+NX8ip3xcfREpjYYFvclm0Vk6ww=; b=ZtHiyb5LCCDx/9/8BygjUWdtLlovMZ5t1rsJRyJ/FZK/TBkqjJrDC+03worZHN2iJa D6GWNk6cac0v2d1bOfa5ayGCHem3t0vLI1F9h04Wo3ViCQLT69C/fMs0OrZ7jwXbWU8g awvoki+jzyhx+F8LGM1/f+uYkRnTeovqkKwAVffz0W/e+dtXBu2bRGPEYvsDoGf6u2jr lJuDkWVL4B2Hvxf3uZpqrUJtIypBODiNljgsmtL1r7ywpSNVirM2mQ7necJAc2XFHTes Ccj3PyHO6PLrpeePaBt64vzurADSvmD2lO6Uf/2HD8h47oWbP4cqEEu/RCf7qJGAa5fg ++BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qPsOqkZ9; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 101si24612801otm.168.2020.01.22.05.29.11; Wed, 22 Jan 2020 05:29:23 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=qPsOqkZ9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731963AbgAVN2A (ORCPT + 99 others); Wed, 22 Jan 2020 08:28:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:49824 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729742AbgAVN16 (ORCPT ); Wed, 22 Jan 2020 08:27:58 -0500 Received: from localhost (unknown [84.241.205.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BFC0D205F4; Wed, 22 Jan 2020 13:27:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579699678; bh=c+tAHl7rKqHexa/ZvutCPfX7AcAg56Ionp2mrmpOZMk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qPsOqkZ9u0fmdao8gSY6pkQrQpr88I7jsNEMcBRlqhz/Ch9hjVcYDepbpAeTNi2gn q1jcbEZO8mfevfHSTvFlCnkyR7EWjobTvqy25erk0ftvxL3uecl8bA4kTsqKa4E3IN O6NegQ+cleZF8efzt1vlEhaljjNlInOgsp78f+BA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andi Kleen , Jiri Olsa , Arnaldo Carvalho de Melo Subject: [PATCH 5.4 216/222] perf script: Allow --time with --reltime Date: Wed, 22 Jan 2020 10:30:02 +0100 Message-Id: <20200122092849.159018562@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092833.339495161@linuxfoundation.org> References: <20200122092833.339495161@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andi Kleen commit 3714437d3fcc7956cabcb0077f2a506b61160a56 upstream. 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 Link: http://lore.kernel.org/lkml/20191002164642.1719-1-andi@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Greg Kroah-Hartman --- tools/perf/builtin-script.c | 5 ----- 1 file changed, 5 deletions(-) --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c @@ -3605,11 +3605,6 @@ int cmd_script(int argc, const char **ar } } - 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;