Running kmemleak on Android

cancel
Showing results for 
Search instead for 
Did you mean: 

Running kmemleak on Android

159 Views
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

77 Views
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

77 Views
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

77 Views
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