Commit 33f3bc4
perf intel-pt: Fix last_ip usage
commit ee14ac0 upstream.
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 <[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 01ac8af commit 33f3bc4
1 file changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| |||
417 | 418 | | |
418 | 419 | | |
419 | 420 | | |
| 421 | + | |
420 | 422 | | |
421 | 423 | | |
422 | 424 | | |
| |||
1640 | 1642 | | |
1641 | 1643 | | |
1642 | 1644 | | |
| 1645 | + | |
| 1646 | + | |
1643 | 1647 | | |
1644 | 1648 | | |
1645 | 1649 | | |
| |||
1720 | 1724 | | |
1721 | 1725 | | |
1722 | 1726 | | |
1723 | | - | |
| 1727 | + | |
1724 | 1728 | | |
1725 | 1729 | | |
1726 | 1730 | | |
| |||
1850 | 1854 | | |
1851 | 1855 | | |
1852 | 1856 | | |
1853 | | - | |
| 1857 | + | |
1854 | 1858 | | |
1855 | 1859 | | |
1856 | 1860 | | |
| |||
1900 | 1904 | | |
1901 | 1905 | | |
1902 | 1906 | | |
| 1907 | + | |
| 1908 | + | |
1903 | 1909 | | |
1904 | 1910 | | |
1905 | 1911 | | |
| |||
2036 | 2042 | | |
2037 | 2043 | | |
2038 | 2044 | | |
| 2045 | + | |
2039 | 2046 | | |
2040 | 2047 | | |
2041 | 2048 | | |
| |||
2044 | 2051 | | |
2045 | 2052 | | |
2046 | 2053 | | |
| 2054 | + | |
2047 | 2055 | | |
2048 | 2056 | | |
2049 | 2057 | | |
| |||
2086 | 2094 | | |
2087 | 2095 | | |
2088 | 2096 | | |
| 2097 | + | |
2089 | 2098 | | |
2090 | 2099 | | |
2091 | 2100 | | |
| |||
0 commit comments