Skip to content

Commit

Permalink
remove min_run_time_seconds
Browse files Browse the repository at this point in the history
Orabug: 37187104
Signed-off-by: Richard Li <[email protected]>
  • Loading branch information
richl9 authored and biger410 committed Nov 25, 2024
1 parent bc95543 commit 8874f60
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drgn_tools/runq.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,12 @@ def _print_cfs_runq(runqueue: Object) -> None:
print(" [no tasks queued]")


def run_queue(prog: Program, min_run_time_seconds: int = 0) -> None:
def run_queue(prog: Program) -> None:
"""
Print tasks which are in the RT and CFS runqueues on each CPU. Specify min_run_time_seconds to x to only print
Print tasks which are in the RT and CFS runqueues on each CPU.
processes running more than x seconds.
:param prog: drgn program
:param min_run_time_seconds: int
"""

# _cpu = drgn.helpers.linux.cpumask.for_each_online_cpu(prog)
Expand All @@ -85,8 +84,6 @@ def run_queue(prog: Program, min_run_time_seconds: int = 0) -> None:
pid = curr_task.pid.value_()
run_time = task_lastrun2now(curr_task)
prio = curr_task.prio.value_()
if run_time < min_run_time_seconds * 1e9:
continue
print(f"CPU {cpus} RUNQUEUE: {runqueue.address_of_().value_():x}")
print(
f" CURRENT: PID: {pid:<6d} TASK: {curr_task_addr:x} PRIO: {prio}"
Expand Down

0 comments on commit 8874f60

Please sign in to comment.