I am trying to Cross compile the Oprofile-0.96 for ARM Cortex A9 target board.
I am facing issue while cross compiling the oprofile for target.
when I issue command the for configuration like
./configure --host=arm-linux --with-kernel-support
I am getting the error as mentioned below.
"checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details."
Here I attached the log file config.log for the reference.
Also I am facing another issue with pre-built binaries of oprofile 0.95
I have pre-built binaries for the ARM board of Oprofile version 0.95
I compiled the kernel and build the oprofile.ko module.
I inserted the module oprofile.ko into the kernel and it is successful
The dmesg output will gives like
# dmesg | grep oprofile
oprofile: using arm/armv7
when I tried to run the command opcontol --init on the target(ARM Cortex A9)
I am getting the error like
cpu_type 'unset' is not valid
you should upgrade oprofile or force the use of timer mode
I tried to find the cpu_type from the entry
I can able read the cpu_type as arm/armv7-ca9
But when I run any commands on the target like opcontrol or ophelp or oprofiled
I am always getting the error like cpu_type 'unset' is not valid
Can anyone help me how to solve the above issues and how to steps to run the Oprofile on the target board.
Thanks in Advance,