projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'docs-6.1-2' of git://git.lwn.net/linux
[linux-block.git]
/
Documentation
/
mm
/
page_owner.rst
diff --git
a/Documentation/mm/page_owner.rst
b/Documentation/mm/page_owner.rst
index f1efbb414ea6836f9e14a417dcfb819c647bc6b5..127514955a5e8021b1fe5ed8d1fe63b80c03679b 100644
(file)
--- a/
Documentation/mm/page_owner.rst
+++ b/
Documentation/mm/page_owner.rst
@@
-82,6
+82,11
@@
Usage
Page allocated via order XXX, ...
PFN XXX ...
// Detailed stack
Page allocated via order XXX, ...
PFN XXX ...
// Detailed stack
+ By default, it will do full pfn dump, to start with a given pfn,
+ page_owner supports fseek.
+
+ FILE *fp = fopen("/sys/kernel/debug/page_owner", "r");
+ fseek(fp, pfn_start, SEEK_SET);
The ``page_owner_sort`` tool ignores ``PFN`` rows, puts the remaining rows
in buf, uses regexp to extract the page order value, counts the times
The ``page_owner_sort`` tool ignores ``PFN`` rows, puts the remaining rows
in buf, uses regexp to extract the page order value, counts the times