Re: kernel profiling

Dimitris Michailidis (dimitris@darkside.engr.sgi.com)
Mon, 12 Jul 1999 12:03:41 -0700 (PDT)


On 11-Jul-99 Philip Blundell wrote:
> It looks to me like the majority of the code in
> arch/i386/kernel/profile.c is
> actually not architecture dependent. Perhaps it might be better to
> put the
> common parts in kernel/profile.c and provide a small wrapper in
> include/asm-*
> to call it. This is pretty much what libc does.

True. Actually, the only arch dependent part is the little bit of
assembly to save/restore the registers in mcount(), which is needed for
it to work with regparms.

---
Dimitris Michailidis                    dimitris@engr.sgi.com

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