Re: [PATCH, RFC] kill odd mm context pinning hack in frv

From: David Howells
Date: Thu Aug 11 2005 - 12:58:29 EST


Christoph Hellwig <hch@xxxxxx> wrote:

> David, is that more than a debugging aid? I'm trying to get rid of
> tasklist_lock users and this one looks really suspicios..

Yes. The FR451 CPU (the only one with an MMU at the moment) has accounting and
profiling aids that are enabled by the context number set in the CXNR
register. This context number also selectively enables TLB entries on a per-mm
context basis.

So to profile a process you pin a context number to that process, and then the
profiling h/w is only active for that process.

David
-
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/