mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Modify slightly the output from the map file in /proc. Now the
executable bit is shown.
This commit is contained in:
parent
adef72483b
commit
3c087a2f30
2 changed files with 8 additions and 4 deletions
|
|
@ -152,10 +152,12 @@ case OBJT_DEVICE:
|
|||
* format:
|
||||
* start, end, resident, private resident, cow, access, type.
|
||||
*/
|
||||
sprintf(mebuffer, "0x%-8.8x 0x%-8.8x %9d %9d %s %s %s\n",
|
||||
sprintf(mebuffer, "0x%-8.8x 0x%-8.8x %9d %9d %s%s%s %s %s\n",
|
||||
entry->start, entry->end,
|
||||
resident, privateresident,
|
||||
(entry->protection & VM_PROT_WRITE)?"RW":"RO",
|
||||
(entry->protection & VM_PROT_READ)?"r":"-",
|
||||
(entry->protection & VM_PROT_WRITE)?"w":"-",
|
||||
(entry->protection & VM_PROT_EXECUTE)?"x":"-",
|
||||
entry->copy_on_write?"COW":" ",
|
||||
type);
|
||||
|
||||
|
|
|
|||
|
|
@ -152,10 +152,12 @@ case OBJT_DEVICE:
|
|||
* format:
|
||||
* start, end, resident, private resident, cow, access, type.
|
||||
*/
|
||||
sprintf(mebuffer, "0x%-8.8x 0x%-8.8x %9d %9d %s %s %s\n",
|
||||
sprintf(mebuffer, "0x%-8.8x 0x%-8.8x %9d %9d %s%s%s %s %s\n",
|
||||
entry->start, entry->end,
|
||||
resident, privateresident,
|
||||
(entry->protection & VM_PROT_WRITE)?"RW":"RO",
|
||||
(entry->protection & VM_PROT_READ)?"r":"-",
|
||||
(entry->protection & VM_PROT_WRITE)?"w":"-",
|
||||
(entry->protection & VM_PROT_EXECUTE)?"x":"-",
|
||||
entry->copy_on_write?"COW":" ",
|
||||
type);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue