How to build and run Valgrind for imx6qdl?

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

How to build and run Valgrind for imx6qdl?

1,682件の閲覧回数
pavithrapadmana
Contributor I

Hi,

I am using imx6qdl board, the device running with AOSP6 software. I need to check whether there is any memory leak during run time.

Initially i tried with kmemleak tool which is used to detect the kernel memory leak. But i faced some problem, After booting once it's start scanning my device is getting into hang state and kernel panic is happening

I was clueless why it is getting into hang state....

My device has 2GB RAM, due to low RAM memory is it going to hang state once it started scanning..???

Now i thought of trying Valgrind tool which is available in under directory android/external/ for detecting the memory leak.

But i am stuck how to build and how to execute tool in the target device.

Please Provide the steps to build Valgrind tool for imx6qdl board and how to check it on target device.

Thanks in advance

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

1,629件の閲覧回数
atul_john
Contributor II

I'm also trying something similar on  imx sabresd_6sx board with AOSP 8. Enabled kmemleak in defconfig

CONFIG_DEBUG_KMEMLEAK=y
CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE=4096

But seeing this in dmesg continuously.

43.449640] [0m [33munwind [0m: Index not found c010130c
43.449654] [0m [33munwind [0m: Unknown symbol address c010130c

Is any other configuration required to run kmemleak?

0 件の賞賛
返信

1,629件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Pavithra,

Do not know about valgrind but in general i.mx6 when you have memory leak could be due by the RAM is no enough or you have problems with it, so please check if your ram is valid:

https://community.nxp.com/docs/DOC-105652 

Regards

0 件の賞賛
返信