diff options
Diffstat (limited to 'tools/perf/scripts/python')
| -rwxr-xr-x | tools/perf/scripts/python/net_dropmonitor.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/scripts/python/net_dropmonitor.py b/tools/perf/scripts/python/net_dropmonitor.py index adbfbf030576..4c1160560917 100755 --- a/tools/perf/scripts/python/net_dropmonitor.py +++ b/tools/perf/scripts/python/net_dropmonitor.py | |||
| @@ -40,9 +40,9 @@ def get_kallsyms_table(): | |||
| 40 | 40 | ||
| 41 | def get_sym(sloc): | 41 | def get_sym(sloc): |
| 42 | loc = int(sloc) | 42 | loc = int(sloc) |
| 43 | for i in kallsyms: | 43 | for i in kallsyms[::-1]: |
| 44 | if (i['loc'] >= loc): | 44 | if loc >= i['loc']: |
| 45 | return (i['name'], i['loc']-loc) | 45 | return (i['name'], loc - i['loc']) |
| 46 | return (None, 0) | 46 | return (None, 0) |
| 47 | 47 | ||
| 48 | def print_drop_table(): | 48 | def print_drop_table(): |
