Re: [PATCH 10/11] maps3: add /proc/kpagecount and /proc/kpageflags interfaces

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matt Mackall
Date: Monday, October 15, 2007 - 5:35 pm

On Mon, Oct 15, 2007 at 04:34:57PM -0700, Dave Hansen wrote:

Yeah, there are a bunch of flags that aren't mutually exclusive and we
could probably recover a few.


Perhaps we need something like:

flags = page->flags;
userflags = 
	  FLAG_BIT(USER_REFERENCED, flags & PG_referenced) |
	  ...

etc. for the flags we want to export. This will let us change to

	 FLAG_BIT(USER_SLAB, PageSlab(page)) |

if we make a virtual slab bit.

And it shows up in grep.

Unfortunately, i386 test_bit is an asm inline and not a macro so we
can't hope for the compiler to fold up a bunch of identity bit
mappings for us.


-- 
Mathematics is the supreme nostalgia of our time.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/11] maps3: pagemap monitoring v3, Matt Mackall, (Mon Oct 15, 3:25 pm)
[PATCH 3/11] maps3: move is_swap_pte, Matt Mackall, (Mon Oct 15, 3:26 pm)
[PATCH 4/11] maps3: introduce a generic page walker, Matt Mackall, (Mon Oct 15, 3:26 pm)
[PATCH 7/11] maps3: move clear_refs code to task_mmu.c, Matt Mackall, (Mon Oct 15, 3:26 pm)
[PATCH 8/11] maps3: regroup task_mmu by interface, Matt Mackall, (Mon Oct 15, 3:26 pm)
[PATCH 9/11] maps3: add /proc/pid/pagemap interface, Matt Mackall, (Mon Oct 15, 3:26 pm)
Re: [PATCH 4/11] maps3: introduce a generic page walker, Jeremy Fitzhardinge, (Mon Oct 15, 3:40 pm)
Re: [PATCH 11/11] maps3: make page monitoring /proc file o ..., Jeremy Fitzhardinge, (Mon Oct 15, 3:51 pm)
Re: [PATCH 4/11] maps3: introduce a generic page walker, Jeremy Fitzhardinge, (Mon Oct 15, 4:20 pm)
Re: [PATCH 4/11] maps3: introduce a generic page walker, Matt Mackall, (Mon Oct 15, 4:30 pm)
Re: [PATCH 10/11] maps3: add /proc/kpagecount and /proc/kp ..., Matt Mackall, (Mon Oct 15, 5:35 pm)
Re: [PATCH 4/11] maps3: introduce a generic page walker, David Rientjes, (Mon Oct 15, 9:58 pm)
Re: [PATCH 7/11] maps3: move clear_refs code to task_mmu.c, David Rientjes, (Mon Oct 15, 10:11 pm)