From: Simon Marchi Date: Fri, 12 Apr 2013 21:15:12 +0000 (-0400) Subject: lttng cli: Accept human readable sizes for --subbuf-size X-Git-Tag: v2.2.0-rc2~15 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=70d0b120691e90d81de7b38af8b845e261b5b40c;hp=70d0b120691e90d81de7b38af8b845e261b5b40c;p=lttng-tools.git lttng cli: Accept human readable sizes for --subbuf-size --subbuf-size accepts sizes such as: - 123 -> 123 - 123k -> 123 * 1024 - 123M -> 123 * 1024^2 - 123G -> 123 * 1024^3 It uses the new parse_size_suffix function, which could probably be used at other places, such as tracefile size. Unit tests are included. Reviewed-by: Christian Babeux Signed-off-by: Simon Marchi Signed-off-by: David Goulet ---