Re: [PATCH] report user-readable fixmap area in /proc/PID/maps

From: Andrew Morton
Date: Sun Oct 12 2003 - 21:15:40 EST


Linus Torvalds <torvalds@xxxxxxxx> wrote:
>
> If you really want /proc/PID/maps to look right, add a new vm_area_struct,
> see if you can allocate it as part of the "struct mm_struct" so that we
> don't get yet another (unnecessary) allocation on fork time.

It could be done "on demand". So get_user_pages() and the /proc code will
call the new add_fixmap_vma() on entry. Hence the additional overhead is
only incurred when /proc/pid/maps is accessed, or get_user_pages() is
called.

It'll need a new flag in mm_struct. mm_struct.swap_address can be
salvaged: it is no longer used.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/