mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
perf intel-pt: Packet splitting can happen only on 32-bit
Data is copied when the trace is stopped, so packets are never split between buffers except when processing if the buffer cannot fit in the address space which can only happen on 32-bit systems. Change the logic to reflect that. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lkml.kernel.org/r/20190206103947.15750-5-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
0399761290
commit
26ee2bcdea
1 changed files with 1 additions and 1 deletions
|
@ -868,7 +868,7 @@ static int intel_pt_get_next_packet(struct intel_pt_decoder *decoder)
|
|||
|
||||
ret = intel_pt_get_packet(decoder->buf, decoder->len,
|
||||
&decoder->packet);
|
||||
if (ret == INTEL_PT_NEED_MORE_BYTES &&
|
||||
if (ret == INTEL_PT_NEED_MORE_BYTES && BITS_PER_LONG == 32 &&
|
||||
decoder->len < INTEL_PT_PKT_MAX_SZ && !decoder->next_buf) {
|
||||
ret = intel_pt_get_split_packet(decoder);
|
||||
if (ret < 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue