From: Brendan Gregg Date: Wed, 21 Dec 2016 23:35:36 +0000 (-0800) Subject: fix comment in runqlen X-Git-Tag: v0.3.0~91^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06223652967d112b1c9706538ba968b4f743f6b8;p=platform%2Fupstream%2Fbcc.git fix comment in runqlen --- diff --git a/tools/runqlen.py b/tools/runqlen.py index 5092e5c..4c8a095 100755 --- 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--;