| |||
| Home > Profiling Applications Running on the Symbian OS > Building the ARM Profiler Symbian OS kernel extension | |||
To build the Symbian OS kernel with profiling enabled:
Install the Symbian build system on your host machine.
Build the Symbian OS according to your normal build process. For more information on building the Symbian OS, see the Symbian Developer Library at:
http://developer.symbian.com/main/documentation/sdl/
Create a directory called armproske in \src\CEDAR\GENERIC\base\e32\drivers\.
Copy all files located in directory
to the ARM
install directory\Profiler\Contents\version number\build
number\target_os_support\symbianarmposke directory you created in step
2.
In the \src\CEDAR\GENERIC\base\e32\drivers\armproske directory, build
the required build files by invoking the following command:
bldmake bldfiles ARMV6
Build the kernel extension with the following command:
abld.bat -v build ARMV6
In the \bin\TechView\epoc32\rom\ directory,
open PLATFORM\kernel.ibykernel.iby with any text editor. For example:
edit kernel.iby
Add the following two lines before the first kernel extension:
// Profiler Kernel Extension
extension[VARID]= /
\Epoc32\Release\##KMAIN##\##BUILD##\armproske.dll \Sys\Bin\armproske.dll
Inserting the ARM Profiler extension before any other ensures that the ARM Profiler is aware of every extension loaded after it.
To use TechView, you also need to edit the base_ file:platform.iby
edit base_platform.iby
The platform variable in the filename
represents the processor family of your hardware. Here are three
filename examples:
base_ct1136.iby
base_cortex.iby
base_rvvp926.iby
Insert the following line into the base_ file:platform.iby
extension[VARID]= /
KERNEL_DIR\DEBUG_DIR\armproske.dll \sys\bin\armproske.dll
Build the ROMs according to your normal process.
Depending on how you build your Symbian OS image, you may need to use a .etm script file to load the image before the application. For more information on using script files, see Setting up scripts.