<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/usr.bin/procstat, branch stable/7</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=stable%2F7</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=stable%2F7'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2012-10-10T21:20:34Z</updated>
<entry>
<title>MFC r241117:</title>
<updated>2012-10-10T21:20:34Z</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2012-10-10T21:20:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=b3e2afbd247c8837975ca5b705fcf09a7623cfa1'/>
<id>urn:sha1:b3e2afbd247c8837975ca5b705fcf09a7623cfa1</id>
<content type='text'>
	add SG state type

PR:		bin/171664
Approved by:	cperciva (implicit)
</content>
</entry>
<entry>
<title>MFC 195840, 195844, and 196637:</title>
<updated>2009-09-14T17:34:49Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2009-09-14T17:34:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=73ba9b1230cd8bcd9506e1794d484039e029c508'/>
<id>urn:sha1:73ba9b1230cd8bcd9506e1794d484039e029c508</id>
<content type='text'>
Add a new type of VM object: OBJT_SG.  An OBJT_SG object is very similar to
a device pager (OBJT_DEVICE) object in that it uses fictitious pages to
provide aliases to other memory addresses.  The primary difference is that
it uses an sglist(9) to determine the physical addresses for a given offset
into the object instead of invoking the d_mmap() method in a device driver.
</content>
</entry>
<entry>
<title>MFC: Rework the lifetime management of the kernel implementation of POSIX</title>
<updated>2009-02-17T19:57:52Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2009-02-17T19:57:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=790767dcd5e563c726e419ff426ad7e01c516262'/>
<id>urn:sha1:790767dcd5e563c726e419ff426ad7e01c516262</id>
<content type='text'>
semaphores.  Specifically, semaphores are now represented as new file
descriptor type that is set to close on exec.  This removes the need for
all of the manual process reference counting (and fork, exec, and exit
event handlers) as the normal file descriptor operations handle all of
that for us nicely.  It is also suggested as one possible implementation
in the spec and at least one other OS (OS X) uses this approach.

Refer to the original commit for more details on specific bug fixes, etc.
A notable difference in this MFC relative to the original commit to HEAD
is that the MAC entry points are unchanged to preserve the ABI for MAC
policy modules.  fstat() on a POSIX semaphore in 7 uses the
mac_check_posix_sem_getvalue() hook to determine access as that is the
closest match to stat() of the available hooks.

Discussed with:	 rwatson (MAC bits (or lack thereof))
</content>
</entry>
<entry>
<title>MFC r186315:</title>
<updated>2008-12-19T20:20:50Z</updated>
<author>
<name>Joe Marcus Clarke</name>
<email>marcus@FreeBSD.org</email>
</author>
<published>2008-12-19T20:20:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=c09e04ecc41259eb2e8026ae9eed7893b773402f'/>
<id>urn:sha1:c09e04ecc41259eb2e8026ae9eed7893b773402f</id>
<content type='text'>
Do not segfault when procstat -f or procstat -v is called on a process not
owned by the current user.  If kinfo_getfile() or kinfo_getvmmap() return
NULL, simply exit, and do not try and derefernce the memory.

Approved by:	re (kib)
</content>
</entry>
<entry>
<title>MFC: 185548 and followups.</title>
<updated>2008-12-06T19:54:50Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2008-12-06T19:54:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=c20d140b2317d1562242ffe5c249427f0259d279'/>
<id>urn:sha1:c20d140b2317d1562242ffe5c249427f0259d279</id>
<content type='text'>
Add new KERN_PROC_* handlers with 32/64 bit stable interfaces.  Pack
records from sysctl to reduce copyout size.  Add helper to unpack and
provide a more stable interface.

Approved by:	re (kensmith)
</content>
</entry>
<entry>
<title>MFC r180875:</title>
<updated>2008-07-31T08:50:07Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2008-07-31T08:50:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=dbbca1974e0c0bd38223af5d0a478e63fab61a4c'/>
<id>urn:sha1:dbbca1974e0c0bd38223af5d0a478e63fab61a4c</id>
<content type='text'>
Fix a small typo in the procstat(1) manpage: messsage queue.
</content>
</entry>
<entry>
<title>Merge procstat.1:1.3 from HEAD to RELENG_7:</title>
<updated>2008-04-27T14:17:32Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2008-04-27T14:17:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=c317eeab20aa9ddcf81b10640600dae357d47b66'/>
<id>urn:sha1:c317eeab20aa9ddcf81b10640600dae357d47b66</id>
<content type='text'>
  Provide more detailed information about each procstat(1) display mode,
  including a key to fields in each mode and flag abbreviations.

Note: mention of POSIX shared memory in the man page has been removed
in the MFC, as explicit kernel support for pshm hasn't been merged to
RELENG_7 yet.
</content>
</entry>
<entry>
<title>Merge procstat.1:1.2 from HEAD to RELENG_7:</title>
<updated>2008-04-27T14:13:37Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2008-04-27T14:13:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=1f00ab5427a05a933e99cefd7c6ce9a4c01673b2'/>
<id>urn:sha1:1f00ab5427a05a933e99cefd7c6ce9a4c01673b2</id>
<content type='text'>
  It is a bug that procstat(8) works only on live kernels and not
  crashdumps; document in case anyone wants to work on fixing this.
</content>
</entry>
<entry>
<title>Merged textdump.4:1.4, procstat.1:1.4 from HEAD to RELENG_7:</title>
<updated>2008-04-24T06:32:16Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2008-04-24T06:32:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=b8c497223781e73cc52c0cf2d7bdff908d2bf629'/>
<id>urn:sha1:b8c497223781e73cc52c0cf2d7bdff908d2bf629</id>
<content type='text'>
  Use ddb(4), not DDB(4) for man page cross-references.

  Reported by:    novel
</content>
</entry>
<entry>
<title>Merge kern_descrip.c:1.322, user.h:1.74, procstat_files.c:1.5:</title>
<updated>2008-04-11T09:09:28Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2008-04-11T09:09:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=2442da2edc05bf1202854b2cdfc24b6b0b2adf73'/>
<id>urn:sha1:2442da2edc05bf1202854b2cdfc24b6b0b2adf73</id>
<content type='text'>
  Add support for displaying a process' current working directory, root
  directory, and jail directory within procstat.  While this functionality
  is available already in fstat, encapsulating it in the kern.proc.filedesc
  sysctl makes it accessible without using kvm and thus without needing
  elevated permissions.

  The new procstat output looks like:

    PID COMM               FD T V FLAGS    REF  OFFSET PRO NAME
    76792 tcsh            cwd v d --------   -       - -   /usr/src
    76792 tcsh           root v d --------   -       - -   /
    76792 tcsh             15 v c rw------  16    9130 -   -
    76792 tcsh             16 v c rw------  16    9130 -   -
    76792 tcsh             17 v c rw------  16    9130 -   -
    76792 tcsh             18 v c rw------  16    9130 -   -
    76792 tcsh             19 v c rw------  16    9130 -   -

  I am also bumping __FreeBSD_version for this as this new feature will be
  used in at least one port.

  Reviewed by:    rwatson
  Approved by:    rwatson

Note that in the MFC, __FreeBSD_version is not bumped as we will bump it
once (shortly) for all procstat(1) MFC changes together.
</content>
</entry>
</feed>
