Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1220539imm; Tue, 5 Jun 2018 10:54:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL7HFCHd2kPndL+v57WYasaUp0gCOs92VsIlVl5rRWhxCmjwFV1VgMwGP2sm71NjLR5Ipxr X-Received: by 2002:a63:7b0e:: with SMTP id w14-v6mr21206744pgc.165.1528221246566; Tue, 05 Jun 2018 10:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528221246; cv=none; d=google.com; s=arc-20160816; b=eide9EWbNPzw+2CCnWHoGsj4ESqRK9MCRcgD0EbYoBWWJrU/Scwp8gzHjia8XFrkC3 QoWdx+/oC6H8L3EDnFlv/VxHi0FvRKU9zUOPIFkGpUmqGrVPYDy7WdW5cAX1agjcorh1 UyCVd2oxxUaAxn/1WCFD+HAE4gM3iUOTvRvYZogaZz1bR3eh8iDYFLri3qZzoG+ottPc h3Nh74ZE8gCeXeGaHP5lZ6lus56xxY4MjlV6S63ACKk+Il9DvIvlEGmLOPJG1OY0widP 4D0Z+xgtib8geyZ+yedWdZT2ArDZeCog4+57O27bPCdlel/XC4pBkoNtwCVWRz5j33gi dcRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=DXKs4jpg7iItftR8vAjqegcNqhoIvx+jS6o7m87cNLM=; b=0pyUh3YNm+07J3q2JR2USUlC3LqbQ+laASpQdolynBtSn+e4X8ebsSXFyCgswpXQQc vQQ6dSLQTaWx678R/TVx0/aMD5QzPpUvhDokX+j/B+iV3Nbb40n/UfWDj/AFYnAzLTJc C21XQgaBhhybC+OocdB0R5deNqXQtCBN43q4MtZvuQdWgvMgLpyq8qjl+prj3fmGmMg/ HhlZKOt+Qt+nYqbvj8jkJDlRRqBwJI6zg6ht9HLWukWwKzlnEIIDcvNNI+XP1PFs6io6 zeIHQdLwezWxd+Tyfr+mzfqk9Km9Ew+bZ659Pdj12ZMfF0ERS9Sj4GAF7xhCrZI+ACGH QyyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xYtXxhbd; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k2-v6si48701965plt.374.2018.06.05.10.53.52; Tue, 05 Jun 2018 10:54:06 -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; dkim=pass header.i=@kernel.org header.s=default header.b=xYtXxhbd; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753113AbeFERww (ORCPT + 99 others); Tue, 5 Jun 2018 13:52:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:46794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753093AbeFERwu (ORCPT ); Tue, 5 Jun 2018 13:52:50 -0400 Received: from jouet.infradead.org (unknown [179.97.41.186]) (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 E61262075B; Tue, 5 Jun 2018 17:52:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1528221169; bh=r8q0UH/y2vShjtAebQpxlyB1fEQ71U5TNUGJSTeW+7o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xYtXxhbdlCV0ZO1CziH1/Dy+dzLahnTRYGM2wDwvsf07KbmamSMIyJjsHVzA4qYrT /lf0W3h6/dyS8C8Gvd0MF6B+MzFjBFALurUbu6Y6w+zcWWV3pKEmiatNfYiz2g7zGc WIZe/5KF+jCd6/JfDUui7TduXboA/BFKpikqkfPc= From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Adrian Hunter , stable@vger.kernel.org, Arnaldo Carvalho de Melo Subject: [PATCH 44/46] perf intel-pt: Fix decoding to accept CBR between FUP and corresponding TIP Date: Tue, 5 Jun 2018 14:50:28 -0300 Message-Id: <20180605175030.32549-45-acme@kernel.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180605175030.32549-1-acme@kernel.org> References: <20180605175030.32549-1-acme@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Adrian Hunter 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 --- tools/perf/util/intel-pt-decoder/intel-pt-decoder.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 f9157aed1289..e5eb91777383 100644 --- a/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c +++ b/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c @@ -1604,7 +1604,6 @@ static int intel_pt_walk_fup_tip(struct intel_pt_decoder *decoder) 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: @@ -1620,6 +1619,10 @@ static int intel_pt_walk_fup_tip(struct intel_pt_decoder *decoder) 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); -- 2.14.3