kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* arm L_PTE_XXX entry addition for Debugging purpose
@ 2012-07-30  9:39 Dhyan
  2012-07-31  7:13 ` bill4carson
  0 siblings, 1 reply; 13+ messages in thread
From: Dhyan @ 2012-07-30  9:39 UTC (permalink / raw)
  To: kernelnewbies

Dear All,

>From linux(2.6.35) arm page table architecture i can see we have one
hardware page table and  there is corresponding Linux page table Entry
(L_PTE_*).The "Linux" PTE definitions are as like below from
arch/arm/include/asm/pgtable.h.

#define L_PTE_PRESENT   (1 << 0)
#define L_PTE_FILE      (1 << 1)
#define L_PTE_YOUNG     (1 << 1)
#define L_PTE_BUFFERABLE(1 << 2)
#define L_PTE_CACHEABLE (1 << 3)
#define L_PTE_USER      (1 << 4)
#define L_PTE_WRITE     (1 << 5)
#define L_PTE_EXEC      (1 << 6)
#define L_PTE_DIRTY     (1 << 7)
#define L_PTE_COHERENT  (1 << 9)
#define L_PTE_SHARED    (1 << 10)

So is it possible to add one more #define L_PTE_DEBUG (1 << 11) for my
debugging purpose (basically to trap all the write to that page and set
this bit when write happens and clear it off in another thread   )? Or is
there any limitation like we can use only L_PTE till 10th bit ?

So could you please help

--

Thanks & Regards

Dhayn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120730/ff28b36d/attachment.html 

^ permalink raw reply	[flat|nested] 13+ messages in thread
* arm L_PTE_XXX entry addition for Debugging purpose
@ 2012-08-01  6:54 Vladimir Murzin
  0 siblings, 0 replies; 13+ messages in thread
From: Vladimir Murzin @ 2012-08-01  6:54 UTC (permalink / raw)
  To: kernelnewbies

Hi!

AFAIK it's PG_dirty page flag.

Hope this helps!
Vladimir Murzin
------Original Message------
From: Mulyadi Santosa
Sender: kernelnewbies-bounces at kernelnewbies.org
To: Dhyan
Cc: bill4carson
Cc: kernelnewbies at kernelnewbies.org
Subject: Re: arm L_PTE_XXX entry addition for Debugging purpose
Sent: 1 Aug 2012 09:57

Hi...

Sorry for crossing in...

On Wed, Aug 1, 2012 at 11:53 AM, Dhyan <linuxdhyan@gmail.com> wrote:
> Sorry to ask,but is there any other good way to find the written pages of a
> user process?

by "written", you mean "dirty" pages?

if yes, IIRC there's a flag that marks so....but that is for x86 and I
forgot the name...


-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

--

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-08-02  9:33 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-30  9:39 arm L_PTE_XXX entry addition for Debugging purpose Dhyan
2012-07-31  7:13 ` bill4carson
2012-07-31  9:20   ` Dhyan
2012-08-01  2:08     ` bill4carson
2012-08-01  4:53       ` Dhyan
2012-08-01  5:57         ` Mulyadi Santosa
2012-08-01  6:17           ` Dhyan
2012-08-01  8:42             ` Mulyadi Santosa
2012-08-02  8:42         ` bill4carson
2012-08-02  9:03           ` Dhyan
2012-08-02  9:28             ` bill4carson
2012-08-02  9:33               ` Dhyan
  -- strict thread matches above, loose matches on Subject: below --
2012-08-01  6:54 Vladimir Murzin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).