Re: [patch] improve wchan reporting

From: Benjamin LaHaise (bcrl@redhat.com)
Date: Thu Oct 03 2002 - 17:48:54 EST


On Thu, Oct 03, 2002 at 07:30:13PM -0300, Rik van Riel wrote:
> A third option could be a /proc/$pid/backtrace file which
> contains the whole backtrace for a process and teach procps
> to ignore certain functions.

It should really be a separate filesystem, though....

> I prefer your solution, though ;)

There's another problem with the way wchan is currently calculated: it's
relatively expensive to calculate. Many of the readers of stat don't actually
care about it. By making wchan a value in the task structure, the cost of
reading it is trivial.

                -ben

-- 
GMS rules.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:00:42 EST