<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/top, branch releng/10.4</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>MFC r266773,r280680,r311710:</title>
<updated>2017-01-13T08:24:41+00:00</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2017-01-13T08:24:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=ecd8011ecc25a4dd26c251e66d176ffec87381f3'/>
<id>ecd8011ecc25a4dd26c251e66d176ffec87381f3</id>
<content type='text'>
r266773 (by jhb):

Fix a couple of size_t != int warnings.

r280680 (by kevlo):

Print size_t's with %zu rather than "%zd.

r311710:

Style fixes

- Delete trailing whitespace
- Use nitems(mib) instead of hardcoding the mib length
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
r266773 (by jhb):

Fix a couple of size_t != int warnings.

r280680 (by kevlo):

Print size_t's with %zu rather than "%zd.

r311710:

Style fixes

- Delete trailing whitespace
- Use nitems(mib) instead of hardcoding the mib length
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r309676</title>
<updated>2016-12-15T16:52:17+00:00</updated>
<author>
<name>Eric van Gyzen</name>
<email>vangyzen@FreeBSD.org</email>
</author>
<published>2016-12-15T16:52:17+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=86496ace5b40e22d287f2fdf7792cbe784aeacf8'/>
<id>86496ace5b40e22d287f2fdf7792cbe784aeacf8</id>
<content type='text'>
Export the whole thread name in kinfo_proc

kinfo_proc::ki_tdname is three characters shorter than
thread::td_name.  Add a ki_moretdname field for these three
extra characters.  Add the new field to kinfo_proc32, as well.
Update all in-tree consumers to read the new field and assemble
the full name, except for lldb's HostThreadFreeBSD.cpp, which
I will handle separately.  Bump __FreeBSD_version.

Sponsored by:	Dell EMC
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Export the whole thread name in kinfo_proc

kinfo_proc::ki_tdname is three characters shorter than
thread::td_name.  Add a ki_moretdname field for these three
extra characters.  Add the new field to kinfo_proc32, as well.
Update all in-tree consumers to read the new field and assemble
the full name, except for lldb's HostThreadFreeBSD.cpp, which
I will handle separately.  Bump __FreeBSD_version.

Sponsored by:	Dell EMC
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC 284165:</title>
<updated>2015-06-17T02:30:12+00:00</updated>
<author>
<name>Marcel Moolenaar</name>
<email>marcel@FreeBSD.org</email>
</author>
<published>2015-06-17T02:30:12+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=325578bda4262f6b9d222997e8705f020640c655'/>
<id>325578bda4262f6b9d222997e8705f020640c655</id>
<content type='text'>
Move contrib/top/top.X to contrib/top/top.xs and move
contrib/top/top.local.H to contrib/top/top.local.hs.
Change the makefile accordingly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Move contrib/top/top.X to contrib/top/top.xs and move
contrib/top/top.local.H to contrib/top/top.local.hs.
Change the makefile accordingly.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r265267:</title>
<updated>2014-05-17T02:45:59+00:00</updated>
<author>
<name>Bryan Drewery</name>
<email>bdrewery@FreeBSD.org</email>
</author>
<published>2014-05-17T02:45:59+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=dc992a9801babed2471bb47771122385908f436a'/>
<id>dc992a9801babed2471bb47771122385908f436a</id>
<content type='text'>
  Fix width/alignment of JID column. Make it support up to the maximum 7-wide
  JIDs. On a system using jails for common tasks the JID can quickly increase.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  Fix width/alignment of JID column. Make it support up to the maximum 7-wide
  JIDs. On a system using jails for common tasks the JID can quickly increase.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r265249,r265250,r265251:</title>
<updated>2014-05-17T02:39:20+00:00</updated>
<author>
<name>Bryan Drewery</name>
<email>bdrewery@FreeBSD.org</email>
</author>
<published>2014-05-17T02:39:20+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=c79d4d1c24ccb82f10391fbec180d1538ab4c671'/>
<id>c79d4d1c24ccb82f10391fbec180d1538ab4c671</id>
<content type='text'>
    - Add -J command/flag to filter by jail name/jid. This will automatically
      display the JID as well (the -j command/flag).
    - Add a hint for 'u' and 'J' command that '+' displays all.
    - Add J command to help.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
    - Add -J command/flag to filter by jail name/jid. This will automatically
      display the JID as well (the -j command/flag).
    - Add a hint for 'u' and 'J' command that '+' displays all.
    - Add J command to help.
</pre>
</div>
</content>
</entry>
<entry>
<title>Bump the CPU/WCPU column width by one so that it fits values from 100% up</title>
<updated>2013-06-11T19:05:29+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2013-06-11T19:05:29+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=49e3bde165a7c2bacc36d7a00e127c2cf463338a'/>
<id>49e3bde165a7c2bacc36d7a00e127c2cf463338a</id>
<content type='text'>
to 999.99% CPU.  It still won't be aligned if you have a multithreaded
process using more than 1000% CPU (e.g. idle process on an idle 12-way
system), but 100% is a common case.

Submitted by:	Jeremy Chadwick (partial)
MFC after:	1 week
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
to 999.99% CPU.  It still won't be aligned if you have a multithreaded
process using more than 1000% CPU (e.g. idle process on an idle 12-way
system), but 100% is a common case.

Submitted by:	Jeremy Chadwick (partial)
MFC after:	1 week
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix the 'C' field for a running thread to match the behavior described</title>
<updated>2013-03-11T16:33:05+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2013-03-11T16:33:05+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=ee66c8b94e9c132b7bab30375d392e2b1904b065'/>
<id>ee66c8b94e9c132b7bab30375d392e2b1904b065</id>
<content type='text'>
in the manpage by having it display the current CPU (ki_oncpu) rather
than the previously used CPU (ki_lastcpu).  ki_lastcpu is still used for
all other thread states.

Reported by:	Chris Ross &lt;cross+freebsd@distal.com&gt;
MFC after:	1 week
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
in the manpage by having it display the current CPU (ki_oncpu) rather
than the previously used CPU (ki_lastcpu).  ki_lastcpu is still used for
all other thread states.

Reported by:	Chris Ross &lt;cross+freebsd@distal.com&gt;
MFC after:	1 week
</pre>
</div>
</content>
</entry>
<entry>
<title>Use the correct size when allocating the cmdbuf string.</title>
<updated>2012-11-19T08:03:40+00:00</updated>
<author>
<name>Rui Paulo</name>
<email>rpaulo@FreeBSD.org</email>
</author>
<published>2012-11-19T08:03:40+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=78210af90cd97f990574c849f1d6f600bdbc8eb6'/>
<id>78210af90cd97f990574c849f1d6f600bdbc8eb6</id>
<content type='text'>
cmdlengthdelta is the size of the header and we were using it to
allocate a buffer to store the command line. This would mean that
the cmdbuf could be too short. In practice this was never noticed unless
you usually run top -a. On a stock FreeBSD system you can see the
problem by running sendmail and then running top -a on a big terminal
window. In practice this doubles to size available to cmdbuf since the
header is around 65-68 bytes.

Reviewed by:	adrian
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
cmdlengthdelta is the size of the header and we were using it to
allocate a buffer to store the command line. This would mean that
the cmdbuf could be too short. In practice this was never noticed unless
you usually run top -a. On a stock FreeBSD system you can see the
problem by running sendmail and then running top -a on a big terminal
window. In practice this doubles to size available to cmdbuf since the
header is around 65-68 bytes.

Reviewed by:	adrian
</pre>
</div>
</content>
</entry>
<entry>
<title>Add the PID column to the list of sort keys.</title>
<updated>2012-11-11T08:16:33+00:00</updated>
<author>
<name>Rui Paulo</name>
<email>rpaulo@FreeBSD.org</email>
</author>
<published>2012-11-11T08:16:33+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8b800d3af2d8cc8281e20382dbce9e266beab527'/>
<id>8b800d3af2d8cc8281e20382dbce9e266beab527</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Correct the order of the MFU and MRU labels.  I had reversed them.</title>
<updated>2012-10-19T12:28:26+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2012-10-19T12:28:26+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b49af68ca03b68fea6c8e52af314568b09a951eb'/>
<id>b49af68ca03b68fea6c8e52af314568b09a951eb</id>
<content type='text'>
Submitted by:	Nikolay Denev  ndenev gmail
Pointy hat to:	jhb
MFC after:	3 days
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Submitted by:	Nikolay Denev  ndenev gmail
Pointy hat to:	jhb
MFC after:	3 days
</pre>
</div>
</content>
</entry>
</feed>
