From: William C. <wc...@nc...> - 2003-12-22 19:43:15
|
Dave Jiang wrote: > I'm looking into getting Oprofile running on the XScale architecture > (ARM). What is needed to do this? Can oprofile be enabled without arch > specific code or do I need to create an oprofile dir under arch/arm/ and > put in necessary support code? Thanks! OProfile needs to be integrated into each new architecture. The amount of code that needed to be added is relatively small at this point. In some earlier email I wrote up some steps porting OProfile to new architectures. I have attached the earlier email to this message. This should outline what needs to be done. There are probably some changes since this was written, e.g. the consolidation of the code for the timer interrupt data. I don't know which kernel you are planning on doing the working, 2.4 or 2.6. It would be preferable to do the work in the 2.6 kernel. If the work has to go into a 2.4 kernel,you might use the backport Red Hat has in its kernel to provide the 2.6 oprofile kernel support in a 2.4 kernel. The one caution is the patch is missing the pointer_size in the /dev/oprofile, so the development verions of OProfile won't work with the the backport. -Will |