Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3055281imm; Sun, 1 Jul 2018 11:11:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeBm3hXgvboDGNHSOvR48PoITVthmBuE6oSmRE2V52NX/t0H4Fg5De7RqBO4befdUlGtyod X-Received: by 2002:a62:9fd1:: with SMTP id v78-v6mr22352419pfk.233.1530468695541; Sun, 01 Jul 2018 11:11:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530468695; cv=none; d=google.com; s=arc-20160816; b=UOOY5FFmYGYTbAEh78UfsfI38jQsNSHl5wuzsCLKXJ8H3QmV8esIiDL8cloAszVq3u jzt4VK39nTQqdRHB9gSVf1Tu2gIviQhWin3qXWBCs4Nku4cQP8f/KYSyWt+fV7fV3Vc/ 4sqZUOLNa/K2t/+81b06vHWCurjW0aYq2dyuQo48Zu3oh02TacZkYw7dm4d9vohNYHEz LHUOxB4+lEYprE+BPJ8Dz71Qn8huL5hum+OKfA4+/NjE0hUat62OGtLUlxBBHDK8ylna s6BA0uYyntOvUzjAkdawwRCbKJkUo8SeuYk48RGO21NA1oVStAGZMz91QY073Io4GwZJ X5hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=/daC8E7xUScqf8+heC830j8xzB+AZXqG82gzaVJ/c4I=; b=pAvee1QeM7ubRMmwSUC2hdrjN5FLJP1c2kgAxqVMkX1MYCg5dP4rLXJtRaAsMkExcR v/7U42CNH9Rzwy5euj85PW7w7QKXmcskprI0FLFRe3ctbawJGwNUV7zdAt2CxXC/6ixh u1O8R9qelFDYNb8t519VY34bxROHuHim0YmqAlOrb6Z/gxQPPHL9KlWeIAnUZFp6JUM2 DQnUIymdls+z3SAWaHr5wzZCN6Vh+E7kT07wPg6fhO4WFA++dkacCq0tQ0PrC4yfpZmY K7PdlDzfNJfeSlz343no0fTtB7FbYVWoygVTkWFGoL0vEsfVtKFFaMG+wEa3RkTRoKKU ZXiw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4-v6si12108749pgp.490.2018.07.01.11.11.21; Sun, 01 Jul 2018 11:11:35 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965638AbeGAQ2N (ORCPT + 99 others); Sun, 1 Jul 2018 12:28:13 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34252 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964984AbeGAQ2F (ORCPT ); Sun, 1 Jul 2018 12:28:05 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 5334C92B; Sun, 1 Jul 2018 16:28:04 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Adrian Hunter , Arnaldo Carvalho de Melo Subject: [PATCH 4.9 077/101] perf intel-pt: Fix decoding to accept CBR between FUP and corresponding TIP Date: Sun, 1 Jul 2018 18:22:03 +0200 Message-Id: <20180701160800.249972934@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160757.138608453@linuxfoundation.org> References: <20180701160757.138608453@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Adrian Hunter commit bd2e49ec48feb1855f7624198849eea4610e2286 upstream. It is possible to have a CBR packet between a FUP packet and corresponding TIP packet. Stop treating it as an error. Signed-off-by: Adrian Hunter Cc: stable@vger.kernel.org Link: http://lkml.kernel.org/r/1527762225-26024-3-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Greg Kroah-Hartman --- tools/perf/util/intel-pt-decoder/intel-pt-decoder.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c +++ b/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c @@ -1517,7 +1517,6 @@ static int intel_pt_walk_fup_tip(struct case INTEL_PT_PSB: case INTEL_PT_TSC: case INTEL_PT_TMA: - case INTEL_PT_CBR: case INTEL_PT_MODE_TSX: case INTEL_PT_BAD: case INTEL_PT_PSBEND: @@ -1526,6 +1525,10 @@ static int intel_pt_walk_fup_tip(struct decoder->pkt_step = 0; return -ENOENT; + case INTEL_PT_CBR: + intel_pt_calc_cbr(decoder); + break; + case INTEL_PT_OVF: return intel_pt_overflow(decoder);