]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
perf intel-pt: Tidy old_buffer handling in intel_pt_get_trace()
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 7 Mar 2018 14:02:27 +0000 (16:02 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 8 Mar 2018 13:05:57 +0000 (10:05 -0300)
commit9c6650647de430a6ad9707c51b3342f23af0d2ee
tree105fd46b6065d3df7031789c97dafde715b18834
parent1c071c80d9661c263b043969fd92305037bf9773
perf intel-pt: Tidy old_buffer handling in intel_pt_get_trace()

intel_pt_get_trace() fixes overlaps between the current buffer and the
previous buffer ('old_buffer').

However the previous buffer might not have had usable data (no PSB) so
the comparison must be made against the previous buffer that had usable
data.

Tidy that by keeping a pointer for that purpose in struct intel_pt_queue.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1520431349-30689-8-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/intel-pt.c