This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: How can I trace when the allocated memory is free after kmalloc ?
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.