Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions drgn_tools/pstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
from drgn.helpers.linux import for_each_online_cpu
from drgn.helpers.linux import for_each_task
from drgn.helpers.linux import for_each_vma
from drgn.helpers.linux import task_on_cpu
from drgn.helpers.linux import task_state_to_char
from drgn.helpers.linux import vma_find

Expand Down Expand Up @@ -767,7 +766,7 @@ def pstack_print_process(task: Object) -> None:
tcomm = thread.comm.string_().decode("utf-8", errors="replace")
st = task_state_to_char(thread)
cpu = task_cpu(thread)
on_cpu = task_on_cpu(thread)
on_cpu = cpu_curr(prog, cpu) == thread
cpunote = "RUNNING ON " if on_cpu else ""
print(f" Thread {i} TID={tid} [{st}] {cpunote}CPU={cpu} ('{tcomm}')")
try:
Expand Down