How to add a haradware breakpoint on a physical memory address?
kipade at 163.com
Fri Nov 17 18:44:25 EST 2017
Thanks for your reply. The real fact is, a block of physical memory was reserver whilekernel booting, so that, the block of memory can not used by the whole memoryusing the normal api, such as malloc, get_free_pages.(because the block of memoryhave to reserved for remote dsp core). However, the block of memory was rewrittenif the application called eglSwapBuffer. and the gpu driver using gem memorymanaging method, i checked all pages allocated for ever gem_object but foundnothing.
At 2017-11-17 23:03:32, valdis.kletnieks at vt.edu wrote:
>On Fri, 17 Nov 2017 17:57:26 +0800, kipade said:
>> I found some memory was rewrite by gpu module, but i have not found where it layout.
>> I just use samples hw_breakpoint module for memory monitor.
>> However, i found it only monitor on a virtual address,
>> in another words, if two variable point the same physical memory, it can't be detected
>> if I just monitor on the other variable.
>If you have two different variables pointing to the same physical address,
>you *probably* are doing something wrong. Why was something else
>using memory that got used by the GPU?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Kernelnewbies