<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/procstat, branch release/8.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F8.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F8.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2010-03-22T09:29:56Z</updated>
<entry>
<title>MFC r204879:</title>
<updated>2010-03-22T09:29:56Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2010-03-22T09:29:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1b90b87fbad469d067fd29debee76d04b4933b14'/>
<id>urn:sha1:1b90b87fbad469d067fd29debee76d04b4933b14</id>
<content type='text'>
Teach procstat(1) to display some information about signal disposition
and pending/blocked status for signals.

MFC r204880:
Add file forgotten in r204879.
</content>
</entry>
<entry>
<title>Merge r196120 from head to stable/8:</title>
<updated>2009-08-13T14:38:09Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2009-08-13T14:38:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7a34e29bc6de21da6911e67c17ad72085702c4ab'/>
<id>urn:sha1:7a34e29bc6de21da6911e67c17ad72085702c4ab</id>
<content type='text'>
  Update procstat(1) for the fact that devfs paths are no longer unsupported.

Approved by:	re (kib)
</content>
</entry>
<entry>
<title>Introduce a new sysctl process mib, kern.proc.groups which adds the</title>
<updated>2009-07-24T19:12:19Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2009-07-24T19:12:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=254d03c5081f56a7d77a9c49b95a08ee107989a5'/>
<id>urn:sha1:254d03c5081f56a7d77a9c49b95a08ee107989a5</id>
<content type='text'>
ability to retrieve the group list of each process.

Modify procstat's -s option to query this mib when the kinfo_proc
reports that the field has been truncated.  If the mib does not exist,
fall back to the truncated list.

Reviewed by:	rwatson
Approved by:	re (kib)
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Add a new type of VM object: OBJT_SG.  An OBJT_SG object is very similar to</title>
<updated>2009-07-24T13:50:29Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2009-07-24T13:50:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=013818111a1477055223a69d538ebcd1c23b955e'/>
<id>urn:sha1:013818111a1477055223a69d538ebcd1c23b955e</id>
<content type='text'>
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.

Reviewed by:	alc
Approved by:	re (kensmith)
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Include param.h instead of types.h before user.h so that the nested</title>
<updated>2008-12-29T18:58:22Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2008-12-29T18:58:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e1f323f350084227fe4c2b8eb5e47fcbf2d3c952'/>
<id>urn:sha1:e1f323f350084227fe4c2b8eb5e47fcbf2d3c952</id>
<content type='text'>
include of param.h can be removed from audit.h.

MFC after:	3 weeks
</content>
</entry>
<entry>
<title>Fix a typo.</title>
<updated>2008-12-19T16:56:49Z</updated>
<author>
<name>Wesley Shields</name>
<email>wxs@FreeBSD.org</email>
</author>
<published>2008-12-19T16:56:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d5db4444c3f6b400c956bb5faa267829f904af32'/>
<id>urn:sha1:d5db4444c3f6b400c956bb5faa267829f904af32</id>
<content type='text'>
Approved by:	rwatson
</content>
</entry>
<entry>
<title>Do not segfault when procstat -f or procstat -v is called on a process not</title>
<updated>2008-12-19T06:50:15Z</updated>
<author>
<name>Joe Marcus Clarke</name>
<email>marcus@FreeBSD.org</email>
</author>
<published>2008-12-19T06:50:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=08afefa8141d3414260b63956d9d77ed94f0c694'/>
<id>urn:sha1:08afefa8141d3414260b63956d9d77ed94f0c694</id>
<content type='text'>
owned by the current user.  If kinfo_getfile() or kinfo_getvmmap() return
NULL, simply exit, and do not try and derefernce the memory.

Reviewed by:	peter
Approved by:	peter
</content>
</entry>
<entry>
<title>Update format string for kve_start/end.</title>
<updated>2008-12-02T15:08:33Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2008-12-02T15:08:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=41fbf4374b6f202cd5d017f87cbc9df7179c5a5d'/>
<id>urn:sha1:41fbf4374b6f202cd5d017f87cbc9df7179c5a5d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge user/peter/kinfo branch as of r185547 into head.</title>
<updated>2008-12-02T06:50:26Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2008-12-02T06:50:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=43151ee6cfcbe0b6e38e49de940ae9e58fe934af'/>
<id>urn:sha1:43151ee6cfcbe0b6e38e49de940ae9e58fe934af</id>
<content type='text'>
This changes struct kinfo_filedesc and kinfo_vmentry such that they are
same on both 32 and 64 bit platforms like i386/amd64 and won't require
sysctl wrapping.

Two new OIDs are assigned.  The old ones are available under
COMPAT_FREEBSD7 - but it isn't that simple.  The superceded interface
was never actually released on 7.x.

The other main change is to pack the data passed to userland via the
sysctl.  kf_structsize and kve_structsize are reduced for the copyout.
If you have a process with 100,000+ sockets open, the unpacked records
require a 132MB+ copyout.  With packing, it is "only" ~35MB.  (Still
seriously unpleasant, but not quite as devastating).  A similar problem
exists for the vmentry structure - have lots and lots of shared libraries
and small mmaps and its copyout gets expensive too.

My immediate problem is valgrind.  It traditionally achieves this
functionality by parsing procfs output, in a packed format.  Secondly, when
tracing 32 bit binaries on amd64 under valgrind, it uses a cross compiled
32 bit binary which ran directly into the differing data structures in 32
vs 64 bit mode.  (valgrind uses this to track file descriptor operations
and this therefore affected every single 32 bit binary)

I've added two utility functions to libutil to unpack the structures into
a fixed record length and to make it a little more convenient to use.
</content>
</entry>
<entry>
<title>Integrate the new MPSAFE TTY layer to the FreeBSD operating system.</title>
<updated>2008-08-20T08:31:58Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2008-08-20T08:31:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bc093719ca478fe10b938cef32c30b528042cbcd'/>
<id>urn:sha1:bc093719ca478fe10b938cef32c30b528042cbcd</id>
<content type='text'>
The last half year I've been working on a replacement TTY layer for the
FreeBSD kernel. The new TTY layer was designed to improve the following:

- Improved driver model:

  The old TTY layer has a driver model that is not abstract enough to
  make it friendly to use. A good example is the output path, where the
  device drivers directly access the output buffers. This means that an
  in-kernel PPP implementation must always convert network buffers into
  TTY buffers.

  If a PPP implementation would be built on top of the new TTY layer
  (still needs a hooks layer, though), it would allow the PPP
  implementation to directly hand the data to the TTY driver.

- Improved hotplugging:

  With the old TTY layer, it isn't entirely safe to destroy TTY's from
  the system. This implementation has a two-step destructing design,
  where the driver first abandons the TTY. After all threads have left
  the TTY, the TTY layer calls a routine in the driver, which can be
  used to free resources (unit numbers, etc).

  The pts(4) driver also implements this feature, which means
  posix_openpt() will now return PTY's that are created on the fly.

- Improved performance:

  One of the major improvements is the per-TTY mutex, which is expected
  to improve scalability when compared to the old Giant locking.
  Another change is the unbuffered copying to userspace, which is both
  used on TTY device nodes and PTY masters.

Upgrading should be quite straightforward. Unlike previous versions,
existing kernel configuration files do not need to be changed, except
when they reference device drivers that are listed in UPDATING.

Obtained from:		//depot/projects/mpsafetty/...
Approved by:		philip (ex-mentor)
Discussed:		on the lists, at BSDCan, at the DevSummit
Sponsored by:		Snow B.V., the Netherlands
dcons(4) fixed by:	kan
</content>
</entry>
</feed>
