mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
perf intel-pt: Fix packet decoding of CYC packets
commit 621a5a327c
upstream.
Use a 64-bit type so that the cycle count is not limited to 32-bits.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
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 <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4e7b3632ea
commit
c3382e70a0
1 changed files with 1 additions and 1 deletions
|
@ -366,7 +366,7 @@ static int intel_pt_get_cyc(unsigned int byte, const unsigned char *buf,
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue