Skip to content

Commit

Permalink
profile: Migrate to new symbol API and remove addresses
Browse files Browse the repository at this point in the history
The default profile output used to include stack addresses,
which are not used in 99+% of the cases.
  • Loading branch information
goldshtn committed Feb 21, 2017
1 parent 49df994 commit 860823b
Show file tree
Hide file tree
Showing 3 changed files with 183 additions and 184 deletions.
4 changes: 2 additions & 2 deletions tools/old/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,11 @@ def aksym(addr):
else:
# print default multi-line stack output.
for addr in kernel_stack:
print(" %016x %s" % (addr, aksym(addr)))
print(" %s" % aksym(addr))
if do_delimiter:
print(" --")
for addr in user_stack:
print(" %016x %s" % (addr, b.sym(addr, k.pid)))
print(" %s" % b.sym(addr, k.pid))
print(" %-16s %s (%d)" % ("-", k.name, k.pid))
print(" %d\n" % v.value)

Expand Down
4 changes: 2 additions & 2 deletions tools/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,11 @@ def aksym(addr):
else:
# print default multi-line stack output.
for addr in kernel_stack:
print(" %016x %s" % (addr, aksym(addr)))
print(" %s" % aksym(addr))
if do_delimiter:
print(" --")
for addr in user_stack:
print(" %016x %s" % (addr, b.sym(addr, k.pid)))
print(" %s" % b.sym(addr, k.pid))
print(" %-16s %s (%d)" % ("-", k.name, k.pid))
print(" %d\n" % v.value)

Expand Down
Loading

0 comments on commit 860823b

Please sign in to comment.