Mobile/Fennec/Android/Profiling: Difference between revisions

Line 370: Line 370:


== Using oprofile on Galaxy Nexus ==
== Using oprofile on Galaxy Nexus ==
Geoff is working on this now (March 2012)...details coming soon. See also bug730900.
Geoff is working on this now (March 2012)...more details coming soon. See also bug730900.
<nowiki>
mkdir <myandroid>
cd <myandroid>
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > repo
chmod +x repo
./repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1.2
./repo sync
source build/envsetup.sh
lunch full_maguro-eng
<get the ITL41F binaries from http://code.google.com/android/nexus/drivers.html#maguroitl41f and extract them>
 
mkdir <mykernel>
cd <mykernel>
git clone https://android.googlesource.com/kernel/omap.git
cd omap
git branch -a
git checkout -t remotes/origin/android-omap-tuna-3.0-mr0
export ARCH=arm
export CROSS_COMPILE=<myandroid>/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
make tuna_defconfig
<edit .config, setting:
CONFIG_PROFILING=y
CONFIG_OPROFILE=y
CONFIG_HAVE_OPROFILE=y
/edit>
make
 
cp arch/arm/boot/zImage <myandroid>/device/samsung/tuna/kernel
cd <myandroid>
make
fastboot -w flashall
</nowiki>


== Using ''oprofile'' ==
== Using ''oprofile'' ==
Confirmed users
1,759

edits