Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376165
b: refs/heads/master
c: 6b75c73
h: refs/heads/master
i:
  376163: 8fee07a
v: v3
  • Loading branch information
Ben Hutchings authored and David S. Miller committed May 22, 2013
1 parent 3ec5b94 commit 5a4d1f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 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: 0ce58bae851dc3728af1c0b83905cd6b4565417a
refs/heads/master: 6b75c7357c947dd9fd8482b3395664a9b7385ed5
13 changes: 1 addition & 12 deletions trunk/tools/perf/scripts/python/net_dropmonitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,17 @@

def get_kallsyms_table():
global kallsyms

try:
f = open("/proc/kallsyms", "r")
linecount = 0
for line in f:
linecount = linecount+1
f.seek(0)
except:
return


j = 0
for line in f:
loc = int(line.split()[0], 16)
name = line.split()[2]
j = j +1
if ((j % 100) == 0):
print "\r" + str(j) + "/" + str(linecount),
kallsyms.append((loc, name))

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

def get_sym(sloc):
loc = int(sloc)
Expand Down

0 comments on commit 5a4d1f4

Please sign in to comment.