Commit a2e9216f authored by yonghong-song's avatar yonghong-song Committed by GitHub

Merge pull request #1541 from linuxraptor/patch-1

Fix folding option
parents 9dca57e1 fabd9a19
......@@ -289,7 +289,7 @@ for k, v in sorted(counts.items(), key=lambda counts: counts[1].value):
if folded:
# print folded stack output
line = \
[k.target] + \
[k.target.decode()] + \
[b.sym(addr, k.tgid)
for addr in reversed(list(target_user_stack)[1:])] + \
(["-"] if args.delimited else [""]) + \
......@@ -301,7 +301,7 @@ for k, v in sorted(counts.items(), key=lambda counts: counts[1].value):
(["-"] if args.delimited else [""]) + \
[b.sym(addr, k.tgid)
for addr in reversed(list(waker_user_stack))] + \
[k.waker]
[k.waker.decode()]
print("%s %d" % (";".join(line), v.value))
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment