Running kmemleak on Android

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Running kmemleak on Android

1,601 Views
atul_john
Contributor II

I'm trying to build kernel with kmemleak enabled, but seeing these errors in build. 

/home/hwlab/imx_android/android_build/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-ld: warning: unwinding may not work because EXIDX input section 8 of arch/arm/crypto/built-in.o is not in EXIDX output section
/home/hwlab/imx_android/android_build/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-ld: warning: unwinding may not work because EXIDX input section 29 of arch/arm/mach-imx/built-in.o is not in EXIDX output section

Has anybody seen this error? Or any pointers.

CONFIG_DEBUG_KMEMLEAK=y
CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE=4096

Using IM6SX with Android 8 AOSP.

Labels (1)
3 Replies

1,519 Views
karangajjar
Senior Contributor II

Hi Atul John ,

Instead of changing config using make menuconfig try below,

After source build/envsetup.sh

For i.MX6SoloX you can add the config variables:

CONFIG_DEBUG_KMEMLEAK=y
CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE=4096

in

vendor/nxp-opensource/kernel_imx/arch/arm/configs/imx_v7_android_defconfig

Next, lunch <combo>

make -j 2>&1 | tee build-log.txt

Regards,

Karan Gajjar

1,520 Views
atul_john
Contributor II

Hi karan.gajjar@volansystech.com

Thank you for the quick response. I am not using make menuconfig. Following same steps as mentioned.

  1. Make changes to imx_v7_android_defconfig.
  2. lunch sabresd_6sx-userdebug
  3. make bootimage

Is there anything I'm missing? I tried sabresd_6sx-user also, but see same error. Do I need to build the full image?

Thanks,

Atul

0 Kudos
Reply

1,520 Views
karangajjar
Senior Contributor II

Hi Atul John,

Yes, please try building the full image. As we have changed only the kernel config, it won't take long time as it took for the first time build.

Regards,

Karan Gajjar

0 Kudos
Reply