<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libprocstat, branch release/9.3.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F9.3.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F9.3.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2014-03-19T23:58:05Z</updated>
<entry>
<title>MFC r260150: MFV r259170:</title>
<updated>2014-03-19T23:58:05Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2014-03-19T23:58:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=586d7bccd796363a117f223bd41bfe833168cb85'/>
<id>urn:sha1:586d7bccd796363a117f223bd41bfe833168cb85</id>
<content type='text'>
4370 avoid transmitting holes during zfs send

4371 DMU code clean up

illumos/illumos-gate@43466aae47bfcd2ad9bf501faec8e75c08095e4f

NOTE: Make sure the boot code is updated if a zpool upgrade is
done on boot zpool.
</content>
</entry>
<entry>
<title>Merge r262690 from head to stable/9:</title>
<updated>2014-03-19T10:32:57Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2014-03-19T10:32:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2c03273dd4209577c4e695278d826889bcdcbf3b'/>
<id>urn:sha1:2c03273dd4209577c4e695278d826889bcdcbf3b</id>
<content type='text'>
  When querying a process's umask via sysctl in libprocstat(), don't
  print a warning if EPERM is returned as this is an expected failure
  mode rather than error -- similar to current handling of ESRCH.
  This makes the output of 'procstat -as' vastly more palatable.

  Sponsored by: DARPA, AFRL
</content>
</entry>
<entry>
<title>MFC r250378:</title>
<updated>2013-06-30T08:36:19Z</updated>
<author>
<name>Mikolaj Golub</name>
<email>trociny@FreeBSD.org</email>
</author>
<published>2013-06-30T08:36:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=43d3004d9c3a291a379fd51e6c26fb83bbfbb9d5'/>
<id>urn:sha1:43d3004d9c3a291a379fd51e6c26fb83bbfbb9d5</id>
<content type='text'>
Make errbuf optional, so if a caller is not interested in an error
message she can pass NULL (procstat(1) already does this).
</content>
</entry>
<entry>
<title>MFC 250223,250233:</title>
<updated>2013-06-24T16:04:59Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2013-06-24T16:04:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6ed3ec03260e613f9fe93cf0217b6894135af1d2'/>
<id>urn:sha1:6ed3ec03260e613f9fe93cf0217b6894135af1d2</id>
<content type='text'>
Similar to 233760 and 236717, export some more useful info about the
kernel-based POSIX semaphore descriptors to userland via procstat(1) and
fstat(1):
- Change sem file descriptors to track the pathname they are associated
  with and add a ksem_info() method to copy the path out to a
  caller-supplied buffer.
- Use the fo_stat() method of shared memory objects and ksem_info() to
  export the path, mode, and value of a semaphore via struct kinfo_file.
- Add a struct semstat to the libprocstat(3) interface along with a
  procstat_get_sem_info() to export the mode and value of a semaphore.
- Teach fstat about semaphores and to display their path, mode, and value.
</content>
</entry>
<entry>
<title>MFC 251637:</title>
<updated>2013-06-21T19:28:58Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2013-06-21T19:28:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3731645af77619aef569a5fdfc89f934001087a3'/>
<id>urn:sha1:3731645af77619aef569a5fdfc89f934001087a3</id>
<content type='text'>
Borrow the algorithm from kvm_getprocs() to fix procstat_getprocs() to
handle the case where the process tables grows in between the calls to
fetch the size and fetch the table.
</content>
</entry>
<entry>
<title>MFC r250147:</title>
<updated>2013-05-26T18:26:29Z</updated>
<author>
<name>Mikolaj Golub</name>
<email>trociny@FreeBSD.org</email>
</author>
<published>2013-05-26T18:26:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=94b784ab629954ab5ba4733a6da6b0f138c4b9e1'/>
<id>urn:sha1:94b784ab629954ab5ba4733a6da6b0f138c4b9e1</id>
<content type='text'>
procstat_getpathname: for kvm method, instead of returning the error
that the method is not supported, return an empty string.

This looks more handy for callers like procstat(1), which will not
abort after the failed call and still output some useful information.
</content>
</entry>
<entry>
<title>MFC r249666, r249667, r249670, r249672, r249674, r249676, r249677, r249679,</title>
<updated>2013-05-21T19:04:16Z</updated>
<author>
<name>Mikolaj Golub</name>
<email>trociny@FreeBSD.org</email>
</author>
<published>2013-05-21T19:04:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0c2af5c8f87e7c47305f0e11cac3d5a858aca268'/>
<id>urn:sha1:0c2af5c8f87e7c47305f0e11cac3d5a858aca268</id>
<content type='text'>
    r249681, r249684, r249688, r249711, r249731, r250146

r249666, r249682:

Make libprocstat(3) extract procstat notes from a process core file.

PR:		kern/173723
Suggested by:	jhb
Glanced by:	kib

r249667:

Add procstat_getvmmap function to get VM layout of a process.

r249670:

Add procstat_getgroups function to retrieve process groups.

r249672:

Add procstat_getumask function to retrieve a process umask.

r249674:

Add procstat_getrlimit function to retrieve a process resource limits info.

r249676:

Add procstat_getpathname function to retrieve a process executable.

r249677:

Add procstat_getosrel function to retrieve a process osrel info.

r249679:

Extend libprocstat with functions to retrieve process command line
arguments and environment variables.

Suggested by:	stas
Reviewed by:	jhb and stas (initial version)

r249681:

Add procstat_getauxv function to retrieve a process auxiliary vector.

r249684:

Add procstat_getkstack function to dump kernel stacks of a process.

r249688:

Bump date.

r249711 (joel):

mdoc: end function context properly.

r249731:

Embed revision id in the library.

r250146:

KVM method support for procstat_getgroups, procstat_getumask,
procstat_getrlimit, and procstat_getosrel.
</content>
</entry>
<entry>
<title>MFC r241304: procstat_getprocs: honor kvm_getprocs interface - cnt is signed</title>
<updated>2012-10-17T11:33:32Z</updated>
<author>
<name>Andriy Gapon</name>
<email>avg@FreeBSD.org</email>
</author>
<published>2012-10-17T11:33:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=77c9abffb38f57acf91606ddf8552116328a9d87'/>
<id>urn:sha1:77c9abffb38f57acf91606ddf8552116328a9d87</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC r240080:</title>
<updated>2012-09-14T18:44:23Z</updated>
<author>
<name>Mikolaj Golub</name>
<email>trociny@FreeBSD.org</email>
</author>
<published>2012-09-14T18:44:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=729dbbbb26f7a6d1ede55c9f61506e23c889b6f5'/>
<id>urn:sha1:729dbbbb26f7a6d1ede55c9f61506e23c889b6f5</id>
<content type='text'>
Add __BEGIN_DECLS and __END_DECLS to make libprocstat more C++-friendly.

Submitted by:	Daniel Dettlaff &lt;dmilith gmail com&gt;
</content>
</entry>
<entry>
<title>MFC 236717:</title>
<updated>2012-06-29T15:30:14Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2012-06-29T15:30:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1a60a7e7b246adc05c87c7bb13c84947873cefbd'/>
<id>urn:sha1:1a60a7e7b246adc05c87c7bb13c84947873cefbd</id>
<content type='text'>
Teach procstat_get_shm_info_kvm() how to fetch the pathname of a SHM file
descriptor from a core and set it in fts-&gt;fs_path.
</content>
</entry>
</feed>
