]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r249558, r250145:
authortrociny <trociny@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 17 May 2013 20:12:56 +0000 (20:12 +0000)
committertrociny <trociny@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 17 May 2013 20:12:56 +0000 (20:12 +0000)
commit3de4b756822b7c5e3b1d8af4f1402b330b1ba249
tree5aaf0f4b6704ea78c0bd706ccf8f9ff68269b3e7
parentd352f26432d3e4b2090888461dbb62c3ce8a7f5f
MFC r249558, r250145:

r249558:

Add a new set of notes to a process core dump to store procstat data.

The notes format is a header of sizeof(int), which stores the size of
the corresponding data structure to provide some versioning, and data
in the format as it is returned by a related sysctl call.

The userland tools (procstat(1)) will be taught to extract this data,
providing additional info for postmortem analysis.

PR: kern/173723
Suggested by: jhb
Discussed with: jhb, kib
Reviewed by: jhb (initial version), kib

r250145:

Introduce a constant, ELF_NOTE_ROUNDSIZE, which evidently declares our
intention to use 4-byte padding for elf notes.

git-svn-id: svn://svn.freebsd.org/base/stable/9@250752 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/imgact_elf.c
sys/sys/elf_common.h