Re: [RFC PATCH] explicitly mark recursion count

From: Linus Torvalds
Date: Wed Jun 02 2004 - 09:21:20 EST




On Wed, 2 Jun 2004, Jörn Engel wrote:
>
> For a->b->c->a type recursions, I also need to identify all involved
> functions in the correct order, that's where my ugly format comes
> from.

Why?

You really only need to know that _one_ of the entries break the
recursion, and you need to know what the break depth is for that one
entry.

So for example, if "c" is annotated with "max recursion: 5", then you know
that the above loop will recurse at most 5 times.

I don't see why you need any other information.

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