Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3053189imm; Sun, 1 Jul 2018 11:08:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfb/Nt4YxYsZRlN+hTl2eHOLuj6Fx2ngiCAMLaKZswjCSiQNwnvW9bkrt+bzIoauKNy/tJ4 X-Received: by 2002:a65:5d4c:: with SMTP id e12-v6mr12135492pgt.10.1530468522529; Sun, 01 Jul 2018 11:08:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530468522; cv=none; d=google.com; s=arc-20160816; b=wn4XhuGPupeEzh0k8/KII6G0IRDTlkdgBVKuaSD2M9ZdVzEuCo5jItg+2owUZzxof/ ZVK4D4ivAfsm84byqydxu04pfHRmYPF3Xd3+1PBqoiXDHCkQvS4PNFHmzRuoaS5skTGY C1lpSPnJ9j/zPxVJ2XbBIpB0/p6TKXcn8eJzZG3uzhk83e4amIf5SmvRc9I4ZjFTCNi5 +79y09xShcw9CCtxQIeNP9+BWsYnIkSzVFv+fPrkXBKnlBp5hzffgBA4hZksKd6vYhiv hO8Fkgp61EVwjJ14hKwqp2PTCXCJ93a2LkBJGH/Ls7Sk+W6pUhTlXyx5ngcBxFhKFExm aSwQ== 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=NkJDZAXmXtys4C5BPXiFTvY+X7yx4gnFc5bdGGw/4Js=; b=Qf9ix356fwcurm5UzrkSkv+VpmjmOohc5T083QjEyoAJJoGbp7pnvsklarLLgDKXFY frsm5JWvI0XT4Zwe8eiXHH8CA0j1TqmjBio5yhlhMC8KElOleWLBx1s6nT2BsQ9Xp1V9 vrakVcsj3kF3tPfPvOcSwQAGY45mI0RQL/O4YzOD2/3shSltO+DyCa33H9eTL2SlIvos 4FI/Gz2Umj8L7sE/MFMlrG9gXZwP4hwjnrEebz70o1tNngTXIaeW6Mjnd2ZR/zKfQ9MP +yJl9sL71ll/OGWL7rdCN5s8CtwNRXDKK38l9A8vvOCoKunrdxODQ+af2BrdyFkasFc7 gskw== 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 s126-v6si15012998pfc.222.2018.07.01.11.08.28; Sun, 01 Jul 2018 11:08:42 -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 S965812AbeGAQ3H (ORCPT + 99 others); Sun, 1 Jul 2018 12:29:07 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34420 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933844AbeGAQ3A (ORCPT ); Sun, 1 Jul 2018 12:29:00 -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 1CC28AD8; Sun, 1 Jul 2018 16:28:58 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Adrian Hunter , Jiri Olsa , Arnaldo Carvalho de Melo Subject: [PATCH 4.9 080/101] perf intel-pt: Fix packet decoding of CYC packets Date: Sun, 1 Jul 2018 18:22:06 +0200 Message-Id: <20180701160800.372812421@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 621a5a327c1e36ffd7bb567f44a559f64f76358f upstream. Use a 64-bit type so that the cycle count is not limited to 32-bits. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Cc: stable@vger.kernel.org Link: http://lkml.kernel.org/r/1528371002-8862-1-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-pkt-decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c +++ b/tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c @@ -281,7 +281,7 @@ static int intel_pt_get_cyc(unsigned int if (len < offs) return INTEL_PT_NEED_MORE_BYTES; byte = buf[offs++]; - payload |= (byte >> 1) << shift; + payload |= ((uint64_t)byte >> 1) << shift; } packet->type = INTEL_PT_CYC;