Re:Re: How to add a haradware breakpoint on a physical memory address?

2017-11-17 Thread kipade
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.kletni...@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?
>
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: How to add a haradware breakpoint on a physical memory address?

2017-11-17 Thread valdis . kletnieks
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?




pgppttQp_s5IR.pgp
Description: PGP signature
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


How to add a haradware breakpoint on a physical memory address?

2017-11-17 Thread kipade
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.


any hints will be very very appreciated.___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies