Skip to content

Commit

Permalink
tools/stackcount: remove b''
Browse files Browse the repository at this point in the history
  • Loading branch information
yezhengmao1 authored and yonghong-song committed Jul 3, 2022
1 parent b2af01e commit d81e56c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/stackcount.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,18 +292,18 @@ def _print_kframe(self, addr):
if self.args.verbose:
print("%-16x " % addr, end="")
if self.args.offset:
print("%s" % self.probe.bpf.ksym(addr, show_offset=True))
print("%s" % self.probe.bpf.ksym(addr, show_offset=True).decode())
else:
print("%s" % self.probe.bpf.ksym(addr))
print("%s" % self.probe.bpf.ksym(addr).decode())

def _print_uframe(self, addr, pid):
print(" ", end="")
if self.args.verbose:
print("%-16x " % addr, end="")
if self.args.offset:
print("%s" % self.probe.bpf.sym(addr, pid, show_offset=True))
print("%s" % self.probe.bpf.sym(addr, pid, show_offset=True).decode())
else:
print("%s" % self.probe.bpf.sym(addr, pid))
print("%s" % self.probe.bpf.sym(addr, pid).decode())

@staticmethod
def _signal_ignore(signal, frame):
Expand Down

0 comments on commit d81e56c

Please sign in to comment.