Re: [RFC PATCH] explicitly mark recursion count

Horst von Brand
2004-06-01T19:49:09Z

=?iso-8859-1?Q?J=F6rn?= Engel <joern@wohnheim.fh-wedel.de> said:

[...]

> What I need is:
> 1. Recursion count

How do you know the limit is enforced? By guessing?

> 2. All functions involved in the recursion in the correct order (a
> calls b calls c calls d calls a, something like that).

But also b calls f calls g...

Maintaining the full possible-call-graph is a _huge_ job, better done
automatically (because somebody _will_screw up when doing it by hand). Plus
the fun "structure spicked with all sorts of function pointers" object
implementation in the kernel... note that your carefully maintained call
graph/counts can be screwed up royally by any random third-party device
driver or filesystem module.
--
Dr. Horst H. von Brand User #22616 counter.li.org
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513