
Offering: HULK hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I9GSSR ---------------------------------------- This patch adds new argument (i.e. source) for --sort option, allows the items sorted by module name. Signed-off-by: Jinjiang Tu <tujinjiang@huawei.com> --- tools/vm/page_owner_sort.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/vm/page_owner_sort.c b/tools/vm/page_owner_sort.c index 16ddff316f1b..b4936e78d7d5 100644 --- a/tools/vm/page_owner_sort.c +++ b/tools/vm/page_owner_sort.c @@ -679,6 +679,8 @@ static bool parse_sort_args(const char *arg_str) sc.cmps[i] = compare_txt; else if (arg_type == ARG_ALLOCATOR) sc.cmps[i] = compare_allocator; + else if (arg_type == ARG_MODULE) + sc.cmps[i] = compare_module; else { free_explode(args, size); sc.size = 0; -- 2.25.1