Skip to content

Commit

Permalink
fix comment in runqlen
Browse files Browse the repository at this point in the history
  • Loading branch information
brendangregg committed Dec 21, 2016
1 parent 3f3acd8 commit 0622365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/runqlen.py
Expand Up @@ -84,8 +84,8 @@
bpf_probe_read(&my_q, sizeof(my_q), &task->se.cfs_rq);
bpf_probe_read(&len, sizeof(len), &my_q->nr_running);
// Decrement idle thread by dropping the run queue by one. We could do
// this other ways if needed, like matching on task->pid.
// Calculate run queue length by subtracting the currently running task,
// if present. len 0 == idle, len 1 == one running task.
if (len > 0)
len--;
Expand Down

0 comments on commit 0622365

Please sign in to comment.