I'm trying to get Oprofile to work on an embedded system (Freescale MPC5200,
and Linux 2.6.11...). I added the following to the config file:
On the first build, I got dependency errors, so I added the binutils and popt pkgs
to the config file.
Thereafter, it built correctly, but when the image is transferred to the target, and I
run any opcontrol command (for example: opcontrol --no-vmlinux), I get:
    /usr/bin/opcontrol: line 1: dirname: command not found
    FATAL: Module oprofile not found.
    FATAL: Module oprofile not found.
    Kernel doesn't support oprofile.
When I do an lsmod | grep oprof, oprofile doesn't show up.
In /usr/bin, I have op_help, opannotate, oparchive, opcontrol, opgprof, opreport,
oprofiled, and opstack. The directory /usr/share/oprofile is present, with all the arch
subdirs. Also, the docs are present in /usr/share/oprofile.
I got the same result building with CONFIG_OPROFILE=m.
Any idea why this is happening? To me it looks like the driver is not being built and
included correctly.
One caveat to our build method is that we specify the device directories during the
image build, by "mknod dev/watchdog c 10 130", etc., in the rootfs of the image that
gets installed on the target, and so udevd is not enabled on the target. Do I need to
add an entry for oprofile? Will building as a kernel module not work in this case, ie:
Any help would be greatly appreciated.