All,

I am facing an issue I need to debug where after running some number of TAs, the OP-TEE kernel is no longer able to malloc() memory and can no longer load a TA.  So, there seems to be a leak of some kind I need to debug.  I'm using a crypto accelerator, and so there is most likely a bug in my crypto driver.

Is there any debug mechanism in OP-TEE I could use to get data or statistics about how much space is left on the heap?  I've poked around some and don't see anything, but thought I would ask.

Thanks,
Stuart