RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
...
Note: kmemleak-test.ko ko test module for memory leaks ,by default in rpi3 this module not compiled , there is no kmemleak-test.ko module , so enable to build as a module and generated module file.
path of kmemleak-test module source : feature-securestorage-rpi-2Mar/build-raspberrypi-rdk-mc/tmp/work-shared/raspberrypi-rdk-mc/kernel-source/samples/kmemleak/kmemleak-test.c
kmemleak-test.ko
Note: Need to generate kmemleak-test.ko module file from corresponding platform specific kernel source code.
Step 1 : Copy kmemleak-test.ko module to this path /lib/modules/5.10.52-v7/ in box .
Step 2 : load the module to kernel space with insmod command.
Ex:
...
View file | ||||
---|---|---|---|---|
|
View file | ||||
---|---|---|---|---|
|
Note : Here testapp is FSCRYPT application program, when we run this test app with all functionalities, The corresponding kernel driver will invoke, if any memory leaks present in the kernel driver code will report kernel memory leaks in /sys/kernel/debug/kmemleak
Ex: testapp will support below operations need to to run all operations to get kmemleaks.
root@raspberrypi-rdk-mc:~# testapp
...