Hi,
 
I successfully(?) compiled oprofile-0.9.1 for ARM using the below commands after exporting the cross binaries for CC, LD, CXX, AR, RANLIB.
./configure --with-kernel-support --target=arm-linux --host=i686-pc-linu-gnu --prefix=/home/ragha/nfs/oprofile --with-qt-libraries=/home/ragha/QT/qt-2.3.7/lib --with-qt-includes=/home/ragha/QT/qt-2.3.7/include
 
gcc version is 3.4.3.
 
Though I compiled with QT libs and includes I got a Warning: a working Qt not found; no GUI will be built.
I found the reason from config.log that libqt-mt seems to be missing. I will try to fix this GUI issue later.
 
For now I can live without GUI and with system timer mode profiling.
 
When I start the profile everything seem to fine except the binaries.
All the oprofile binaries are not recognizing the options.
 
What did I miss in compiling?
 
Below is the complete log steps I did.
 
Thanks,
Ragha
 
root@Ragha1 ~$ opcontrol --vmlinux=/lib/vmlinux
mount: Mounting nodev on /dev/oprofile failed: Device or resource busy
root@Ragha1 ~$ opcontrol --start
mount: Mounting nodev on /dev/oprofile failed: Device or resource busy
Detected stale lock file. Removing.
Using 2.6+ OProfile kernel interface.
Reading module info.
Using log file /var/lib/oprofile/oprofiled.log
Daemon started.
Profiler running.
root@Ragha1 ~$ opcontrol --dump
mount: Mounting nodev on /dev/oprofile failed: Device or resource busy
root@Ragha1 ~$ opreport
CPU: CPU with timer interrupt, speed 0 MHz (estimated)
Profiling through timer interrupt
          TIMER:0|
  samples|      %|
------------------
     4369 100.000 vmlinux
root@Ragha1 ~$ opreport --help
Usage: opreport [OPTION...]
  -v, --version     show version
 
Help options:
  -?, --help        Show this help message
  --usage           Display brief usage message
root@Ragha1 ~$ opreport --usage
Usage: opreport [-v?] [-v|--version] [-?|--help] [--usage]
root@Ragha1 ~$ opreport -l `which oprofiled`
opreport: -l: unknown option
Usage: opreport [OPTION...]
  -v, --version     show version
 
Help options:
  -?, --help        Show this help message
  --usage           Display brief usage message
root@Ragha1 ~$ opreport --long-filenames
opreport: --long-filenames: unknown option
Usage: opreport [OPTION...]
  -v, --version     show version
 
Help options:
  -?, --help        Show this help message
  --usage           Display brief usage message