diff options
author | 2017-05-26 11:17:06 +0300 | |
---|---|---|
committer | 2017-06-21 11:35:45 -0300 | |
commit | ee14ac0ef6827cd6f9a572cc83dd0191ea17812c (patch) | |
tree | 3b6fecdc06348f419eea3f58672d22b7ae0c82d7 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | perf intel-pt: Ensure IP is zero when state is INTEL_PT_STATE_NO_IP (diff) | |
download | wireguard-linux-ee14ac0ef6827cd6f9a572cc83dd0191ea17812c.tar.xz wireguard-linux-ee14ac0ef6827cd6f9a572cc83dd0191ea17812c.zip |
perf intel-pt: Fix last_ip usage
Intel PT uses IP compression based on the last IP. For decoding
purposes, 'last IP' is considered to be reset to zero whenever there is
a synchronization packet (PSB). The decoder wasn't doing that, and was
treating the zero value to mean that there was no last IP, whereas
compression can be done against the zero value. Fix by setting last_ip
to zero when a PSB is received and keep track of have_last_ip.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/1495786658-18063-6-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions