Hi,
can anybody give me a hint how I can compile oprofile for Kamikaze - 2.6.x kernel?
I've found some oprofile files in the kernel directory, however I do not have a clue how to build the corresponding oprofile tools?
Any hints? Thanks,
Ingo
The content of this topic has been archived on 29 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.
Hi,
can anybody give me a hint how I can compile oprofile for Kamikaze - 2.6.x kernel?
I've found some oprofile files in the kernel directory, however I do not have a clue how to build the corresponding oprofile tools?
Any hints? Thanks,
Ingo
This is as of r22630, which I have tested. Probably works way before that also:
# make menuconfig
Then from the menu, "Global build settings" => under -- Kernel Build Options => "Compile the kernel with profiling enabled"
Back at the main menu, "Development" => "oprofile". Choose whether you want it as a module or part of the image. You will also need some extra packages:
libpopt: packages/libs/popt
libstdcpp, part of base-files
objdump: packages/devel/binutils
libbfd: packages/devel/binutils
If you already have them in the build tree they will automatically be selected when you select oprofile.
When you do the build, it will build a new kernel, create a profiling module call oprofile.ko which is in a kmod-oprofile_[kernel]_[version]_[arch].ipk package. You ned to make sure that gets installed along with the oprofile package plus all the dependencies.
Gus
The discussion might have continued from here.