Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376162
b: refs/heads/master
c: 5a1e99d
h: refs/heads/master
v: v3
  • Loading branch information
Ben Hutchings authored and David S. Miller committed May 22, 2013
1 parent 52ada6b commit b483d7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 140c3c6a2bcd2c31e2f7f5a8d59689724776c8e5
refs/heads/master: 5a1e99dd2028e00998d42029be86835d8ef4a46e
6 changes: 3 additions & 3 deletions trunk/tools/perf/scripts/python/net_dropmonitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit b483d7f

Please sign in to comment.