]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Jun 2013 19:52:38 +0000 (12:52 -0700)
commit000a4c4f0d46a05453398a96dd40e2fe1edbc1fa
tree00ac4cb29aa76a220c372db2c8a12afc91f5a773
parentc86d7a51ffea40b252bcb99e6085ca48e08d5c56
perf: net_dropmonitor: Fix symbol-relative addresses

commit 5a1e99dd2028e00998d42029be86835d8ef4a46e upstream.

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.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/perf/scripts/python/net_dropmonitor.py