Skip to content

Commit

Permalink
offcputime -f: don't miss backtrace bounds
Browse files Browse the repository at this point in the history
See #559
  • Loading branch information
evverx committed Jun 7, 2016
1 parent a84f53d commit ff39d0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/offcputime.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ def signal_ignore(signal, frame):

if folded:
# print folded stack output
user_stack = list(user_stack)[1:]
kernel_stack = list(kernel_stack)[1:]
user_stack = list(user_stack)
kernel_stack = list(kernel_stack)
line = [k.name.decode()] + \
[b.ksym(addr) for addr in reversed(kernel_stack)] + \
[b.sym(addr, k.pid) for addr in reversed(user_stack)]
Expand Down

0 comments on commit ff39d0c

Please sign in to comment.