Skip to content

Commit

Permalink
show PC of each frame at memleak.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhichang authored and yonghong-song committed Feb 23, 2022
1 parent ee81072 commit b3d45a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/memleak.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def print_outstanding():
stack = list(stack_traces.walk(info.stack_id))
combined = []
for addr in stack:
combined.append(bpf.sym(addr, pid,
combined.append(('0x'+format(addr, '016x')+'\t').encode('utf-8') + bpf.sym(addr, pid,
show_module=True, show_offset=True))
alloc_info[info.stack_id] = Allocation(combined,
info.size)
Expand Down

0 comments on commit b3d45a6

Please sign in to comment.