How can I trace when the allocated memory is free after kmalloc ?

Josh Stone jistone@redhat.com
Tue Sep 20 16:01:00 GMT 2011


On 09/20/2011 02:12 AM, Mark Wielaard wrote:
> On Tue, 2011-09-20 at 09:38 +0900, 최재혁B wrote:
>> But  vm.kfree is not working. ( make target phone reset )
>> ( vm.kmalloc  is ok  .)
>>
>> Below is my test code .
>>
>> -------------------------------------
>> probe vm.kfree { println(vm.kfree \n")}
>> -------------------------------------
>>
>> please recommand what I should try .
> 
> Try getting a serial console to to read out the kernel messages.
> I don't know how that works on your android based system, but here are
> some generic linux kernel setups:
> http://sourceware.org/systemtap/wiki/DeveloperSetupTips

In Android, there's usually a /proc/last_kmsg with the kernel buffer
from before the reboot.



More information about the Systemtap mailing list