Skip to content

maps#2: pagemap, kpagemap, and related cleanups take 2

Matt Mackall lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13maps#2: Uninline some functions in the page walkerfs/proc/task_mmu.c+7 -70 replies
2/13maps#2: Eliminate the pmd_walker struct in the page walkerfs/proc/task_mmu.c+20 -270 replies
3/13maps#2: Remove vma from args in the page walkerfs/proc/task_mmu.c+11 -80 replies
4/13maps#2: Propagate errors from callback in page walkerfs/proc/task_mmu.c+37 -200 replies
5/13maps#2: Add callbacks for each level to page walkerfs/proc/task_mmu.c+66 -230 replies
6/13maps#2: Move the page walker code to lib/fs/proc/task_mmu.c include/linux/mm.h lib/Makefile +1 more+122 -1188 replies
7/13maps#2: Simplify interdependence of /proc/pid/maps and smapsfs/proc/task_mmu.c+24 -240 replies
8/13maps#2: Move clear_refs code to task_mmu.cfs/proc/base.c fs/proc/internal.h fs/proc/task_mmu.c +1 more+37 -480 replies
9/13maps#2: Regroup task_mmu by interfacefs/proc/task_mmu.c+190 -1890 replies
10/13maps#2: Make /proc/pid/smaps optional under CONFIG_EMBEDDEDfs/proc/base.c fs/proc/task_mmu.c init/Kconfig+14 -00 replies
11/13maps#2: Make /proc/pid/clear_refs option under CONFIG_EMBEDDEDfs/proc/base.c fs/proc/task_mmu.c init/Kconfig+15 -01 reply
12/13maps#2: Add /proc/pid/pagemap interfacefs/proc/base.c fs/proc/internal.h fs/proc/task_mmu.c +1 more+203 -14 replies
13/13maps#2: Add /proc/kpagemap interfacefs/proc/proc_misc.c init/Kconfig+101 -03 replies

Reviews trailers per patch

1 of 13 patches has a Reviewed-by or Acked-by.

PatchDavid Rientjes
1/13
2/13
3/13
4/13
5/13
6/13
7/13
8/13
9/13
10/13
11/13A-b
12/13
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/13] maps#2: pagemap, kpagemap, and related cleanups take 2

This patch series introduces /proc/pid/pagemap and /proc/kpagemap, which allow detailed run-time examination of process memory usage at a page granularity.

The first several patches whip the page-walking code introduced for /proc/pid/smaps and clear_refs into a more generic form, the next couple make those interfaces optional, and the last two introduce the new interfaces, also optional.

This respin adds simple, expandable headers to both pagemap and kpagemap as suggested by Nikita. I haven't moved pagewalk.c from lib/ to mm/ as suggested by Nick as I still think lib is a better fit for its automatic conditional linking.