[systemd-devel] [PATCH 0/4] More cgtop enhancements

Lennart Poettering lennart at poettering.net
Wed Jun 10 16:53:01 PDT 2015


On Wed, 27.05.15 17:40, Charles Duffy (charles at dyfis.net) wrote:

> From: Charles Duffy <chaduffy at cisco.com>
> 
> In addition to the previously-submitted patch adding support for "raw" (numeric
> byte-count, as opposed to human-readable) values, this series adds several new
> enhancements:
> 
> - Allow the user to specify a strftime-compatible string to use as header.
> - Retain default behavior of using only one iteration when output is not to a
>   TTY, but allow endless looping or a set iteration count to be selected.
> - Improve output format in the non-TTY case for easy parsing (separating
>   batches with an empty line, rather than the de facto "\r \r" string intended
>   to clear artifacts from user input, and ensuring that flushing stdout happens
>   *before* the sleep between runs).
> 
> The strftime support, by its nature, requires use of an externally-provided
> format string; consequently, an appropriate pragma is used to suppress warnings
> from gcc. Feedback appreciated.
> 
> Charles Duffy (4):
>   cgtop: raw output option (disable conversion to human-readable units)
>   cgtop: allow user to force looping behavior even in non-TTY mode
>   cgtop: more sensible flushing behavior w/ non-TTY output
>   cgtop: support time header with user-specified format string

For the sake of the archives: this patch set got reworked and merged
as:

https://github.com/systemd/systemd/pull/3

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list