[systemd-devel] [PATCH] cgtop: raw output option (disable conversion to human-readable units) [r2]

2015-05-27 Thread Charles Duffy
From: Charles Duffy chadu...@cisco.com Replace the single -r (raw) option with separate flags for memory and IO, patterned off of --cpu[=TYPE], per feedback from Umut. Fold repeated conditional logic around formatting into a static function, per feedback from Zbyszek. Charles Duffy (1): cgtop

[systemd-devel] [PATCH] cgtop: add options to format memory, IO usage in raw bytes

2015-05-27 Thread Charles Duffy
From: Charles Duffy chadu...@cisco.com --- src/cgtop/cgtop.c | 64 --- 1 file changed, 51 insertions(+), 13 deletions(-) diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index a390cf3..45c8d6f 100644 --- a/src/cgtop/cgtop.c +++ b/src/cgtop

[systemd-devel] [PATCH] cgtop: raw output option (disable conversion to human-readable units)

2015-05-27 Thread Charles Duffy
From: Charles Duffy chadu...@cisco.com --- src/cgtop/cgtop.c | 34 +- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index a390cf3..2849a1d 100644 --- a/src/cgtop/cgtop.c +++ b/src/cgtop/cgtop.c @@ -62,6 +62,7

[systemd-devel] [PATCH] cgtop: raw output option (disable conversion to human-readable units) [r3]

2015-05-27 Thread Charles Duffy
From: Charles Duffy chadu...@cisco.com Another take, incorporating feedback from r2. Charles Duffy (1): cgtop: raw output option (disable conversion to human-readable units) src/cgtop/cgtop.c | 34 +- 1 file changed, 21 insertions(+), 13 deletions

[systemd-devel] [PATCH 1/4] cgtop: raw output option (disable conversion to human-readable units)

2015-05-27 Thread Charles Duffy
From: Charles Duffy chadu...@cisco.com --- src/cgtop/cgtop.c | 34 +- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index a390cf3..2849a1d 100644 --- a/src/cgtop/cgtop.c +++ b/src/cgtop/cgtop.c @@ -62,6 +62,7

[systemd-devel] [PATCH 2/4] cgtop: allow user to force looping behavior even in non-TTY mode

2015-05-27 Thread Charles Duffy
From: Charles Duffy chadu...@cisco.com --- src/cgtop/cgtop.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index 2849a1d..8a0e075 100644 --- a/src/cgtop/cgtop.c +++ b/src/cgtop/cgtop.c @@ -60,7 +60,7 @@ typedef struct Group

[systemd-devel] [PATCH 4/4] cgtop: support time header with user-specified format string

2015-05-27 Thread Charles Duffy
From: Charles Duffy chadu...@cisco.com --- src/cgtop/cgtop.c | 50 +- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index 53e3a64..c3db62b 100644 --- a/src/cgtop/cgtop.c +++ b/src/cgtop/cgtop.c

[systemd-devel] [PATCH 3/4] cgtop: more sensible flushing behavior w/ non-TTY output

2015-05-27 Thread Charles Duffy
From: Charles Duffy chadu...@cisco.com - Explicitly flush stdout before sleep between iterations - Only clear user keystrokes when output is to TTY - Add a newline between output batches when output is not to TTY --- src/cgtop/cgtop.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions

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

2015-05-27 Thread Charles Duffy
From: Charles Duffy chadu...@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

[systemd-devel] [PATCH] cgtop raw output option

2015-05-26 Thread Charles Duffy
From: Charles Duffy chadu...@cisco.com At present, systemd-cgtop converts quantities in bytes (memory and IO bandwidth values) to human-readable form unconditionally. Given as batch mode already exists as a supported option, there clearly is intent for cgtop to be usable with data routed

[systemd-devel] [PATCH] cgtop: raw output option (disable conversion to human-readable units)

2015-05-26 Thread Charles Duffy
From: Charles Duffy chadu...@cisco.com --- src/cgtop/cgtop.c | 28 ++-- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index a390cf3..0dbac7f 100644 --- a/src/cgtop/cgtop.c +++ b/src/cgtop/cgtop.c @@ -62,6 +62,7

[systemd-devel] [PATCH] Support for building journal-remote without microhttpd

2014-06-12 Thread Charles Duffy
Howdy -- It seems a bit unfortunate to have the only way to deserialize content in journald's official serialization/export format depend on a HTTP server library. A patch which allows journal-remote to build without microhttpd is available at

Re: [systemd-devel] [PATCH v2] Support for building journal-remote without microhttpd

2014-06-12 Thread Charles Duffy
On Thu, Jun 12, 2014 at 10:40 PM, Charles Duffy char...@dyfis.net wrote: Howdy -- It seems a bit unfortunate to have the only way to deserialize content in journald's official serialization/export format depend on a HTTP server library. A patch which allows journal-remote to build without