Skip to content

Commit

Permalink
stackcount: Migrate to new symbol resolution API
Browse files Browse the repository at this point in the history
  • Loading branch information
goldshtn committed Feb 21, 2017
1 parent 860823b commit b9f8f4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions tools/old/stackcount.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,7 @@ def print_frame(addr):
print(" ", end="")
if verbose:
print("%-16x " % addr, end="")
if offset:
print("%s" % b.ksymaddr(addr))
else:
print("%s" % b.ksym(addr))
print(b.ksym(addr, show_address=offset))

# output
exiting = 0 if args.interval else 1
Expand Down
2 changes: 1 addition & 1 deletion tools/stackcount.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def _print_frame(self, addr, pid):
if self.args.verbose:
print("%-16x " % addr, end="")
if self.args.offset:
print("%s" % self.probe.bpf.symaddr(addr, pid))
print("%s" % self.probe.bpf.sym(addr, pid, show_address=True))
else:
print("%s" % self.probe.bpf.sym(addr, pid))

Expand Down

0 comments on commit b9f8f4a

Please sign in to comment.