2003-02-11 01:13:18

by Dan Kegel

[permalink] [raw]
Subject: /proc/profile in 2.4 for ppc?

Anyone know offhand if the 2.4 kernel supports kernel profiling
via /proc/profile for ppc?

(Support for this for the 2.2 kernel was posted on 18 Aug 2000; see
http://members.xoom.com/greyhams/linux/patches/2.2/profile.patch
http://marc.theaimsgroup.com/?l=linux-kernel&m=96684695930338&w=2
Unfortunately the patch in question is offline so it's hard
to just download it and check to see if it's in the source...)

Thanks,
Dan



2003-02-11 04:33:43

by Ian Wienand

[permalink] [raw]
Subject: Re: /proc/profile in 2.4 for ppc?

On Mon, Feb 10, 2003 at 05:15:20PM -0800, Dan Kegel wrote:
> Anyone know offhand if the 2.4 kernel supports kernel profiling
> via /proc/profile for ppc?

I haven't tried it but it looks ok. see arch/ppc/kernel/time.c
timer_interrupt() and ppc_do_profile().

boot with profile=2 as a kernel option and use 'readprofile', that
will tell you for sure.

-i
[email protected]
http://www.gelato.unsw.edu.au