]> git.baikalelectronics.ru Git - kernel.git/commit
perf: net_dropmonitor: Fix symbol-relative addresses
authorBen Hutchings <ben@decadent.org.uk>
Mon, 20 May 2013 14:45:26 +0000 (14:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 May 2013 22:10:10 +0000 (15:10 -0700)
commit16de6fa0538b3e0f8e9dc82c4f7a0381b0cf6b62
tree8903e01fb89c6372af37ab4595d35b16b3e02848
parent2ca7b97b669ca8cc9b0ac59ac138eb896a6f4efa
perf: net_dropmonitor: Fix symbol-relative addresses

The comparison between traced and symbol addresses is backwards: if
the traced address doesn't exactly match a symbol (which we don't
expect it to), we'll show the next symbol and the offset to it,
whereas we should show the previous symbol and the offset from it.

Cc: stable@vger.kernel.org
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/perf/scripts/python/net_dropmonitor.py