add perm for smaps show -v

Signed-off-by: stesen <stesen.ma@huawei.com>
This commit is contained in:
stesen 2022-11-28 09:08:45 +00:00 committed by Gitee
parent d5eab3d4c9
commit c665b92e61
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -121,7 +121,7 @@ fn print_smaps_verbose(infos: Vec<VmStruct>) {
("Size", "d"),
("Rss", "d"),
("Pss", "d"),
("Shared\nClean","d"),
("Shared\nClean", "d"),
("Shared\nDirty", "d"),
("Private\nClean","d"),
("Private\nDirty","d"),
@ -131,7 +131,8 @@ fn print_smaps_verbose(infos: Vec<VmStruct>) {
let info_keys = vec![
("Start", ""),
("End", ""),
("Name", ""),
("Perm", ""),
("Name", "")
];
print_smaps_core(infos, &value_keys, &info_keys);
}