Hi,
    I did the same thing.

[root@localhost oprofile-0.9.1]# ./configure --with-linux=/usr/src//linux-2.4.22/

It works..
Then i put
[root@localhost oprofile-0.9.1]# make

It is giving following error...
gcc -D__KERNEL__ -I/usr/src/redhat/BUILD/linux-2.4.22/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include
/usr/src/redhat/BUILD/linux-2.4.22/include/linux/modversions.h -DHAVE_LINUX_SPINLOCK_HEADER -DRTC_LOCK -DEXPECT_OK -D__NO_VERSION__ -I/root/oprofile-0.9.1/module/x86 -I/root/oprofile-0.9.1 -I/root/oprofile-0.9.1/libutil -I/root/oprofile-0.9.1/libop -nostdinc -iwithprefix include -DKBUILD_BASENAME=oprofile  -c -o oprofile.o oprofile.c
oprofile.c:117: parse error before "op_do_profile"
oprofile.c:118: warning: return type defaults to `int'
oprofile.c:118: conflicting types for `op_do_profile'
oprofile.h:144: previous declaration of `op_do_profile'
make[4]: *** [oprofile.o] Error 1
make[4]: Leaving directory `/root/oprofile-0.9.1/module'
make[3]: *** [_mod_/root/oprofile-0.9.1/module] Error 2
make[3]: Leaving directory `/usr/src/redhat/BUILD/linux-2.4.22'
make[2]: *** [module] Error 1
make[2]: Leaving directory `/root/oprofile-0.9.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/oprofile-0.9.1'
make: *** [all] Error 2


Plz  tell me about the same...
Thanks
Eagerly waiting for ur response...
with best regards
Ajay





On 8/30/05, Philippe Elie <phil.el@wanadoo.fr> wrote:
On Tue, 30 Aug 2005 at 16:43 +0000, Ajay Modi wrote:

> Hi,
> thanks for ur response..
> I have configured the oprofile 0.9 on kernel 2.6.
> But i m not able to the same on 2.4.22.
> Which section i have to read to in the faqs page..
> in my system ..
> Contents of the arch/i386 dirs are as follows..
> /usr/src//linux-2.4.22/arch/i386
>
> boot config.in <http://config.in > defconfig kernel lib Makefile math-emu mm
> vmlinux.lds
>
>
> there is no oprofile directory here ..How can i proceed ..
> thanks in advance

the very first entry of the FAQ says:

"For 2.4 kernels, you must have the kernel source available for
the kernel you want to run OProfile under. Do
./configure --with-linux=/path/to/kernel/source"

This doesn't means "you must have the oprofile module kernel source ..."

For 2.4 kernel the module is in oprofile source directory not in the
kernel source. We need the kernel source to get your current configuration
and some header file used by $oprofile_src_dir/module/*.

regards,
Philippe Elie