mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
pmap+SystemMonitor: Mark syscall regions with 'C'
This commit is contained in:
parent
823186031d
commit
47d0ca85e8
Notes:
sideshowbarker
2024-07-18 22:37:35 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/47d0ca85e8d
2 changed files with 7 additions and 4 deletions
|
@ -89,6 +89,8 @@ ProcessMemoryMapWidget::ProcessMemoryMapWidget()
|
|||
builder.append('X');
|
||||
if (object.get("shared").to_bool())
|
||||
builder.append('S');
|
||||
if (object.get("syscall").to_bool())
|
||||
builder.append('C');
|
||||
if (object.get("stack").to_bool())
|
||||
builder.append('T');
|
||||
return builder.to_string();
|
||||
|
|
|
@ -63,9 +63,9 @@ int main(int argc, char** argv)
|
|||
printf("%s:\n", pid);
|
||||
|
||||
if (extended) {
|
||||
printf("Address Size Resident Dirty Access VMObject Type Purgeable CoW Pages Name\n");
|
||||
printf("Address Size Resident Dirty Access VMObject Type Purgeable CoW Pages Name\n");
|
||||
} else {
|
||||
printf("Address Size Access Name\n");
|
||||
printf("Address Size Access Name\n");
|
||||
}
|
||||
|
||||
auto file_contents = file->read_all();
|
||||
|
@ -82,11 +82,12 @@ int main(int argc, char** argv)
|
|||
auto address = map.get("address").to_int();
|
||||
auto size = map.get("size").to_string();
|
||||
|
||||
auto access = String::format("%s%s%s%s",
|
||||
auto access = String::formatted("{}{}{}{}{}",
|
||||
(map.get("readable").to_bool() ? "r" : "-"),
|
||||
(map.get("writable").to_bool() ? "w" : "-"),
|
||||
(map.get("executable").to_bool() ? "x" : "-"),
|
||||
(map.get("shared").to_bool() ? "s" : "-"));
|
||||
(map.get("shared").to_bool() ? "s" : "-"),
|
||||
(map.get("syscall").to_bool() ? "c" : "-"));
|
||||
|
||||
printf("%08x ", address);
|
||||
printf("%10s ", size.characters());
|
||||
|
|
Loading…
Reference in a new issue