git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf: net_dropmonitor: Fix symbol-relative addresses
[pandora-kernel.git]
/
tools
/
perf
/
scripts
/
python
/
net_dropmonitor.py
diff --git
a/tools/perf/scripts/python/net_dropmonitor.py
b/tools/perf/scripts/python/net_dropmonitor.py
index
adbfbf0
..
4c11605
100755
(executable)
--- a/
tools/perf/scripts/python/net_dropmonitor.py
+++ b/
tools/perf/scripts/python/net_dropmonitor.py
@@
-40,9
+40,9
@@
def get_kallsyms_table():
def get_sym(sloc):
loc = int(sloc)
- for i in kallsyms:
- if
(i['loc'] >= loc)
:
- return (i['name'],
i['loc']-loc
)
+ for i in kallsyms
[::-1]
:
+ if
loc >= i['loc']
:
+ return (i['name'],
loc - i['loc']
)
return (None, 0)
def print_drop_table():