Re: arm L_PTE_XXX entry addition for Debugging purpose

2012-08-02 Thread Dhyan
Dear Bill, What i found from experimenting on arm Linux kernel is ,after every access if i clear the _PG_ACCESS bit of the pte (using /proc/pid/clear_refs),the next write also will come to kernel (handle_pte_fault).But I dont know whether my clearing action causing any bad impact on any other

Re: arm L_PTE_XXX entry addition for Debugging purpose

2012-08-02 Thread bill4carson
On 2012年08月01日 12:53, Dhyan wrote: Dear Bill, Thank you for spending your valuable time for understanding and answering my queries !!! I was trying to apply some garbage collection algorithm on this dumped pages,thats why i want only the written pages. Sorry to ask,but is there any

Re: arm L_PTE_XXX entry addition for Debugging purpose

2012-08-01 Thread Dhyan
Dear mulyadi santosa, I think you are mentioning the about PG_dirty flag.But in my case i want to clear the written flag of the user process from my kernel thread after each dump. So that next time when kernel thread runs it will dump only the pages written after last dump. -- Thanks Dhyan

Re: arm L_PTE_XXX entry addition for Debugging purpose

2012-08-01 Thread Vladimir Murzin
Hi! AFAIK it's PG_dirty page flag. Hope this helps! Vladimir Murzin --Original Message-- From: Mulyadi Santosa Sender: kernelnewbies-boun...@kernelnewbies.org To: Dhyan Cc: bill4carson Cc: kernelnewbies@kernelnewbies.org Subject: Re: arm L_PTE_XXX entry addition for Debugging purpose

Re: arm L_PTE_XXX entry addition for Debugging purpose

2012-07-31 Thread Dhyan
Thank You Bill !!! 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

Re: arm L_PTE_XXX entry addition for Debugging purpose

2012-07-31 Thread bill4carson
On 2012年07月31日 17:20, Dhyan wrote: Thank You Bill !!! 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

Re: arm L_PTE_XXX entry addition for Debugging purpose

2012-07-31 Thread Dhyan
Dear Bill, Thank you for spending your valuable time for understanding and answering my queries !!! I was trying to apply some garbage collection algorithm on this dumped pages,thats why i want only the written pages. Sorry to ask,but is there any other good way to find the written pages of a