Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3545357pxb; Mon, 1 Mar 2021 12:55:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxRAjYQAUIrgtuZja87mYKC+r7ymhftwtSijz1qdB48K113oTs72CxBnuPR/WjLh3J8iUnD X-Received: by 2002:a05:6402:5194:: with SMTP id q20mr18235811edd.267.1614632149483; Mon, 01 Mar 2021 12:55:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614632149; cv=none; d=google.com; s=arc-20160816; b=S00sFce1gejlbNbl7DMZSVDjdTWX6orYcML5MVtRI1R0xxoryeqZEV/BRWyVYpBajN Oi24fDdhZ3HDHqnOXgMVPwXU+3GPeIEn0E+PuBwxUT7o9cDt4XMMAN3BWrvQIZjBUcYX lx1buU8CjgzEh+EkYWbSTX5W8beDblVF5BQzTodzp/NRSF1nk1pEejxXDjYyDwNkj+0j TxFOtOssU7YkvWYX7XQcouOXOY0rTYL2R6u6+pk3WQrCrx3rZT/IXzrdcs13bq2vZ3JL 1+fG0b/0axTYj9lInDmGlSleY3kOoARH6lL1dmt4mgBsXzm9PS5E2bvhkOxXONMDFUM8 Fq7Q== 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=9vpaL0Wca4lh6PcMTGdrUaerfYMTW8swOOUrKHmkVIQ=; b=EXHifLgdc2ay1PYueXmDFKTOmk9mnUY2NgVEg2KLf/H4TbFO26w/cJ2hgahXMOoHYL RO9+dykpTniRwdQl7lphIarKEovCGmi1s9yCEoSMBC5AnwFNPXdMvhBi6vcUo20n8hAq FX9ntkWvQzJrAAWPhZy8PL/6+A9yXp7uNuzVgMXse19VSIXs28yr149tI7C8cL65yEGV DC8FRJ1gHaDpBSiqWLlxcdju8I3qMrsC5WwIdN9CBsQORIpGgB1Dg4J4n6QflRr9ymUp X451vqWU0ZARYTqDo33P1BbIEXgiIrLl8zmUK1QDFN7kGCmGRwltEQCmseOdOSPeN5+k GAnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XWWbasoT; 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 e15si12720937eja.482.2021.03.01.12.55.26; Mon, 01 Mar 2021 12:55:49 -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=XWWbasoT; 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 S243896AbhCAUxO (ORCPT + 99 others); Mon, 1 Mar 2021 15:53:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:46228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237023AbhCARJ5 (ORCPT ); Mon, 1 Mar 2021 12:09:57 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0A1736501D; Mon, 1 Mar 2021 16:42:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614616948; bh=kHon70kWAYhhYOOULaiv5qBZIdy+fNfZnePZ8O+g/5Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XWWbasoTKmpiVgdmzupuXoxxYLu3xluyjzlLYikE6OSC/JCDzQVPPMpXzjd+QrjbU hCEO/djqyQ27S1Lhhiegf4rSkF6AP0eqrPcjg/jyrkrmObeMo6MfaPi9gnv+Tga+Oa UM7Ci43+CMrj68Vz0diZSQqdiOnJIRNthYAID84Y= 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 4.19 150/247] perf intel-pt: Fix missing CYC processing in PSB Date: Mon, 1 Mar 2021 17:12:50 +0100 Message-Id: <20210301161039.000978849@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161031.684018251@linuxfoundation.org> References: <20210301161031.684018251@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 6522b6513895c..e2f038f84dbc1 100644 --- a/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c +++ b/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c @@ -1596,6 +1596,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