Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp916152pxb; Wed, 3 Mar 2021 20:57:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwok+TeH/k2ZhFoLwwKzE8De+256NJi9IiJC2oMoEEvsYhd7Fy+SZ/kHh35s82KhpWFRkMj X-Received: by 2002:a17:906:b817:: with SMTP id dv23mr2280655ejb.281.1614833831097; Wed, 03 Mar 2021 20:57:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614833831; cv=none; d=google.com; s=arc-20160816; b=Orcc8s9AUifLAgg6shVVU17FEG28nDfLZwEQX9UtFxN8xAL0Nh3Pp4lG9XUbU8dKGG i0BdWFYHoAPCeqC5my0GeHCJ1f3R9k7RcCQKz0NcmswkiUijvSiv/ODfdzZCHF2EaMIy PtNlUcZ3Oji5KVgwCqTuQnhMu5PXqK/e1J6eHwoBj07tNESYQxq7lBN2gPelHrU8ok7C O4Wm+GS0LTD4IVibOUqV9MirZOxRfdLV7MRxXDrO6N6QNFDCPTEHbmJvBGsZMNWwKUYI rNCmwI5SLTMxKC6G6pPdjR+WiaKV282/w1BLjjFpgSeWvyWltxcC214AEr2IQn0KoFDB IzvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/wIGzYt/CJSygNMfqlRTFBkCgiYTra8ba2I0gvgrNwo=; b=D/D4MQQrmOozqlvTw0SpYWlq6HxME7UoRsR7ZQeVNTzONojQPJ378FkbMAFSfMAhYy tJkgOZT7JEqGgwtD60FBCdm4p6tCFRtmKDkPRALorR4hq+O/bq4JR2xTrD+4pbBQ0tzI 2Y2ByS2QHEvo4rC83abNb8lYJjZn79kkZMTxW2PNhXUir538BaqJVTqvRwUEStdKZmZh tNWJ33827/16G/GHIqtdws+tDIGYrDB4Y61bIkRQBIgUZfl9A0fQvy3lDaK08FH2G9lb nQZWkPbvxLHrzoE5v87rdUeSkMuALw2kwt7KpyQFqs1o6Wkbv/Jg/CkxOFRhM6fJYfTF yz2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cyzXohqR; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j21si17822577ejn.713.2021.03.03.20.56.48; Wed, 03 Mar 2021 20:57:11 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=cyzXohqR; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443167AbhCBCTL (ORCPT + 99 others); Mon, 1 Mar 2021 21:19:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:55184 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239032AbhCATpM (ORCPT ); Mon, 1 Mar 2021 14:45:12 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 296D464ECE; Mon, 1 Mar 2021 17:20:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614619246; bh=ykBWz7q0gITa4YdkXIaartll+ZiXUZtKqQYRY9e6u6c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cyzXohqRuMDwjHn4szwTb+52AxVdkGCDV8onIYeZyaUSuyft+XSplwnJM0nLOyshI 3UI16ssALjo6kiF46YlLyPtj5DmdkT+59BzPXPSUlA7PuMe35US6qkaLSKTegkqrL5 AtZySBwPhIod31lL2tO/RZr22tJdMh5H6s3QoT5Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Adrian Hunter , Andi Kleen , Jiri Olsa , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 5.10 385/663] perf intel-pt: Fix missing CYC processing in PSB Date: Mon, 1 Mar 2021 17:10:33 +0100 Message-Id: <20210301161200.914126983@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161141.760350206@linuxfoundation.org> References: <20210301161141.760350206@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Adrian Hunter [ Upstream commit 03fb0f859b45d1eb05c984ab4bd3bef67e45ede2 ] Add missing CYC packet processing when walking through PSB+. This improves the accuracy of timestamps that follow PSB+, until the next MTC. Fixes: 3d49807870f08 ("perf tools: Add new Intel PT packet definitions") Signed-off-by: Adrian Hunter Reviewed-by: Andi Kleen Cc: Jiri Olsa Link: https://lore.kernel.org/r/20210205175350.23817-2-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- tools/perf/util/intel-pt-decoder/intel-pt-decoder.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c b/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c index 697513f351549..91cba05827369 100644 --- a/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c +++ b/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c @@ -1761,6 +1761,9 @@ static int intel_pt_walk_psbend(struct intel_pt_decoder *decoder) break; case INTEL_PT_CYC: + intel_pt_calc_cyc_timestamp(decoder); + break; + case INTEL_PT_VMCS: case INTEL_PT_MNT: case INTEL_PT_PAD: -- 2.27.0