mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Add the support for reporting the NOCOREDUMP flag from
sysctl_kern_proc_vmmap(). Sponsored by: Sandvine Incorporated Reviewed by: kib, emaste MFC after: 1 week
This commit is contained in:
parent
8fd6c56d29
commit
937912ea04
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=208587
@ -1577,6 +1577,8 @@ sysctl_kern_proc_ovmmap(SYSCTL_HANDLER_ARGS)
|
||||
kve->kve_flags |= KVME_FLAG_COW;
|
||||
if (entry->eflags & MAP_ENTRY_NEEDS_COPY)
|
||||
kve->kve_flags |= KVME_FLAG_NEEDS_COPY;
|
||||
if (entry->eflags & MAP_ENTRY_NOCOREDUMP)
|
||||
kve->kve_flags |= KVME_FLAG_NOCOREDUMP;
|
||||
|
||||
last_timestamp = map->timestamp;
|
||||
vm_map_unlock_read(map);
|
||||
@ -1752,6 +1754,8 @@ sysctl_kern_proc_vmmap(SYSCTL_HANDLER_ARGS)
|
||||
kve->kve_flags |= KVME_FLAG_COW;
|
||||
if (entry->eflags & MAP_ENTRY_NEEDS_COPY)
|
||||
kve->kve_flags |= KVME_FLAG_NEEDS_COPY;
|
||||
if (entry->eflags & MAP_ENTRY_NOCOREDUMP)
|
||||
kve->kve_flags |= KVME_FLAG_NOCOREDUMP;
|
||||
|
||||
last_timestamp = map->timestamp;
|
||||
vm_map_unlock_read(map);
|
||||
|
@ -336,6 +336,7 @@ struct kinfo_file {
|
||||
|
||||
#define KVME_FLAG_COW 0x00000001
|
||||
#define KVME_FLAG_NEEDS_COPY 0x00000002
|
||||
#define KVME_FLAG_NOCOREDUMP 0x00000004
|
||||
|
||||
#if defined(__amd64__)
|
||||
#define KINFO_OVMENTRY_SIZE 1168
|
||||
|
Loading…
Reference in New Issue
Block a user