Running kmemleak on Android

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Running kmemleak on Android

2,149件の閲覧回数
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.

ラベル(1)
3 返答(返信)

2,067件の閲覧回数
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

2,068件の閲覧回数
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 件の賞賛
返信

2,068件の閲覧回数
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 件の賞賛
返信