Re: [patch] improve wchan reporting

Benjamin LaHaise (bcrl@redhat.com)
Thu, 3 Oct 2002 18:48:54 -0400


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/