aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNaoya Horiguchi <[email protected]>2013-11-12 15:07:50 -0800
committerLinus Torvalds <[email protected]>2013-11-13 12:09:07 +0900
commit46c77e2bb07eba3b38edfec76873f12942c49dd3 (patch)
tree2e6dd491627079f3e377e948f23137dd0c4cab40 /tools/perf/scripts/python
parentec8e41aec13005fed0dbee002fb8c99b4e001d50 (diff)
tools/vm/page-types.c: support KPF_SOFTDIRTY bit
Soft dirty bit allows us to track which pages are written since the last clear_ref (by "echo 4 > /proc/pid/clear_refs".) This is useful for userspace applications to know their memory footprints. Note that the kernel exposes this flag via bit[55] of /proc/pid/pagemap, and the semantics is not a default one (scheduled to be the default in the near future.) However, it shifts to the new semantics at the first clear_ref, and the users of soft dirty bit always do it before utilizing the bit, so that's not a big deal. Users must avoid relying on the bit in page-types before the first clear_ref. Signed-off-by: Naoya Horiguchi <[email protected]> Cc: Wu Fengguang <[email protected]> Cc: Pavel Emelyanov <[email protected]> Cc: Cyrill Gorcunov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions