Thank You Bill !!!<br><br>I dont know my approach is correct or not,But the actual purpose was to dump only written pages of a user process using a kernel module.I have a kernel thread which will dump user process memory in specific interval.So i thought of updating this flag (L_PTE_DEBUG) from handle_pte_fault and clear from my clear thread so that i can dump only the written pages after my last dump.<br>
<br>if you have some suggestions could you please share wth me?<br><br>--<br>Thanks<br>Dhyan<br><br><div class="gmail_quote">On Tue, Jul 31, 2012 at 12:43 PM, bill4carson <span dir="ltr"><<a href="mailto:bill4carson@gmail.com" target="_blank">bill4carson@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
<br>
On 2012年07月30日 17:39, Dhyan wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Dear All,<br>
<br>
From linux(2.6.35) arm page table architecture i can see we have one<br>
hardware page table and there is corresponding Linux page table Entry<br>
(L_PTE_*).The "Linux" PTE definitions are as like below from<br>
arch/arm/include/asm/pgtable.<u></u>h.<br>
<br>
|#define L_PTE_PRESENT (1<< 0)<br>
#define L_PTE_FILE (1<< 1)<br>
#define L_PTE_YOUNG (1<< 1)<br>
#define L_PTE_BUFFERABLE(1<< 2)<br>
#define L_PTE_CACHEABLE (1<< 3)<br>
#define L_PTE_USER (1<< 4)<br>
#define L_PTE_WRITE (1<< 5)<br>
#define L_PTE_EXEC (1<< 6)<br>
#define L_PTE_DIRTY (1<< 7)<br>
#define L_PTE_COHERENT (1<< 9)<br>
#define L_PTE_SHARED (1<< 10)<br>
|<br>
<br></div>
So is it possible to add one more #|define L_PTE_DEBUG (1 << 11)| for my<div class="im"><br>
debugging purpose (basically to trap all the write to that page and set<br>
this bit when write happens and clear it off in another thread )? Or<br>
is there any limitation like we can use only L_PTE till 10th bit ?<br>
<br>
</div></blockquote>
<br>
No such limitation on bit 11, so you can use define L_PTE_DEBUG (1 << 11)<br>
However I don't follow why you want to do so?<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
So could you please help<br>
<br>
--<br>
<br>
Thanks & Regards<br>
<br>
Dhayn<br>
<br>
<br>
<br></div>
______________________________<u></u>_________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.<u></u>org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.<u></u>org/mailman/listinfo/<u></u>kernelnewbies</a><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Love each day!<br>
<br>
--bill<br>
</font></span></blockquote></div><br>