Skip to content

Commit c99c7c4

Browse files
Michał Wesołowskiyonghong-song
Michał Wesołowski
authored andcommitted
stackcount: fix TypeError (#2514)
fix type error in stackcount.py
1 parent e47537d commit c99c7c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/stackcount.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,10 +346,10 @@ def run(self):
346346
user_stack = list(user_stack)
347347
kernel_stack = list(kernel_stack)
348348
line = [k.name.decode('utf-8', 'replace')] + \
349-
[b.sym(addr, k.tgid) for addr in
349+
[b.sym(addr, k.tgid).decode('utf-8', 'replace') for addr in
350350
reversed(user_stack)] + \
351351
(self.need_delimiter and ["-"] or []) + \
352-
[b.ksym(addr) for addr in reversed(kernel_stack)]
352+
[b.ksym(addr).decode('utf-8', 'replace') for addr in reversed(kernel_stack)]
353353
print("%s %d" % (";".join(line), v.value))
354354
else:
355355
# print multi-line stack output

0 commit comments

Comments
 (0)