Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376163
b: refs/heads/master
c: 326017c
h: refs/heads/master
i:
  376161: 52ada6b
  376159: 5b6086f
v: v3
  • Loading branch information
Ben Hutchings authored and David S. Miller committed May 22, 2013
1 parent b483d7f commit 8fee07a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 5a1e99dd2028e00998d42029be86835d8ef4a46e
refs/heads/master: 326017c757e387007c6629797d7ae22fd33c1317
8 changes: 4 additions & 4 deletions trunk/tools/perf/scripts/python/net_dropmonitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ def get_kallsyms_table():
j = j +1
if ((j % 100) == 0):
print "\r" + str(j) + "/" + str(linecount),
kallsyms.append({ 'loc': loc, 'name' : name})
kallsyms.append((loc, name))

print "\r" + str(j) + "/" + str(linecount)
kallsyms.sort()
return

def get_sym(sloc):
loc = int(sloc)
for i in kallsyms[::-1]:
if loc >= i['loc']:
return (i['name'], loc - i['loc'])
for symloc, name in kallsyms[::-1]:
if loc >= symloc:
return (name, loc - symloc)
return (None, 0)

def print_drop_table():
Expand Down

0 comments on commit 8fee07a

Please sign in to comment.