docs/zh_CN: Update the translation of page_owner to 6.0-rc7
1)Update to commit 8f0efa81df
("mm/page_owner.c: add
llseek for page_owner")
2)Translate some words into Chinese.
Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
Reviewed-by: Alex Shi <alexs@kernel.org>
Link: https://lore.kernel.org/r/52bc8df87618af951b34759487f05775416cb4d4.1664360331.git.siyanteng@loongson.cn
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
This commit is contained in:
parent
84bed8a8bf
commit
4e3ce6d04d
|
@ -74,15 +74,19 @@ page owner在默认情况下是禁用的。所以,如果你想使用它,你
|
||||||
cat /sys/kernel/debug/page_owner > page_owner_full.txt
|
cat /sys/kernel/debug/page_owner > page_owner_full.txt
|
||||||
./page_owner_sort page_owner_full.txt sorted_page_owner.txt
|
./page_owner_sort page_owner_full.txt sorted_page_owner.txt
|
||||||
|
|
||||||
``page_owner_full.txt`` 的一般输出情况如下(输出信息无翻译价值)::
|
``page_owner_full.txt`` 的一般输出情况如下::
|
||||||
|
|
||||||
Page allocated via order XXX, ...
|
Page allocated via order XXX, ...
|
||||||
PFN XXX ...
|
PFN XXX ...
|
||||||
// Detailed stack
|
// 栈详情
|
||||||
|
|
||||||
Page allocated via order XXX, ...
|
Page allocated via order XXX, ...
|
||||||
PFN XXX ...
|
PFN XXX ...
|
||||||
// Detailed stack
|
// 栈详情
|
||||||
|
默认情况下,它将以一个给定的pfn开始,做完整的pfn转储,且page_owner支持fseek。
|
||||||
|
|
||||||
|
FILE *fp = fopen("/sys/kernel/debug/page_owner", "r");
|
||||||
|
fseek(fp, pfn_start, SEEK_SET);
|
||||||
|
|
||||||
``page_owner_sort`` 工具忽略了 ``PFN`` 行,将剩余的行放在buf中,使用regexp提
|
``page_owner_sort`` 工具忽略了 ``PFN`` 行,将剩余的行放在buf中,使用regexp提
|
||||||
取页序值,计算buf的次数和页数,最后根据参数进行排序。
|
取页序值,计算buf的次数和页数,最后根据参数进行排序。
|
||||||
|
|
Loading…
Reference in New Issue