Commit eb0760d
perf intel-pt: Ensure never to set 'last_ip' when packet 'count' is zero
commit f952eac upstream.
Intel PT uses IP compression based on the last IP. For decoding purposes,
'last IP' is not updated when a branch target has been suppressed, which is
indicated by IPBytes == 0. IPBytes is stored in the packet 'count', so
ensure never to set 'last_ip' when packet 'count' is zero.
Signed-off-by: Adrian Hunter <[email protected]>
Cc: Andi Kleen <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 0ce32f8 commit eb0760d
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1438 | 1438 | | |
1439 | 1439 | | |
1440 | 1440 | | |
1441 | | - | |
| 1441 | + | |
| 1442 | + | |
1442 | 1443 | | |
1443 | 1444 | | |
1444 | 1445 | | |
| |||
1724 | 1725 | | |
1725 | 1726 | | |
1726 | 1727 | | |
1727 | | - | |
1728 | | - | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
1729 | 1731 | | |
1730 | 1732 | | |
1731 | 1733 | | |
| |||
0 commit comments