From: Hitoshi Mitake Date: Sun, 15 Nov 2009 11:36:53 +0000 (+0900) Subject: perf tools: Add new perf_atoll() function to parse string representing size in bytes X-Git-Tag: v2.6.33-rc1~399^2~165^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2fb8b4151a92223da6a84006f8f248ebeb6677d;p=pandora-kernel.git perf tools: Add new perf_atoll() function to parse string representing size in bytes This patch modifies util/string.[ch] to add new function: perf_atoll() to parse string representing size in bytes. This function parses (\d+)(b|B|kb|KB|mb|MB|gb|GB) (e.g. "256MB") and returns its numeric value. (e.g. 268435456) Signed-off-by: Hitoshi Mitake Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Frederic Weisbecker LKML-Reference: <1258285013-4759-1-git-send-email-mitake@dcl.info.waseda.ac.jp> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed