projects
/
platform
/
upstream
/
bcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f3acd8
)
fix comment in runqlen
author
Brendan Gregg
<brendan.d.gregg@gmail.com>
Wed, 21 Dec 2016 23:35:36 +0000
(15:35 -0800)
committer
Brendan Gregg
<brendan.d.gregg@gmail.com>
Wed, 21 Dec 2016 23:35:36 +0000
(15:35 -0800)
tools/runqlen.py
patch
|
blob
|
history
diff --git
a/tools/runqlen.py
b/tools/runqlen.py
index
5092e5c
..
4c8a095
100755
(executable)
--- a/
tools/runqlen.py
+++ b/
tools/runqlen.py
@@
-84,8
+84,8
@@
int do_perf_event()
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--;