Hitoshi Mitake
d2fb8b4151
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 <mitake@dcl.info.waseda.ac.jp>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <1258285013-4759-1-git-send-email-mitake@dcl.info.waseda.ac.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-11-15 14:54:23 +01:00
..
2009-11-11 07:30:19 +01:00
2009-08-16 10:47:47 +02:00
2009-07-01 12:49:48 +02:00
2009-10-13 11:55:31 +02:00
2009-10-23 08:22:47 +02:00
2009-09-24 21:27:51 +02:00
2009-08-16 23:06:45 +02:00
2009-09-24 21:27:51 +02:00
2009-08-16 10:47:47 +02:00
2009-06-18 09:46:00 +02:00
2009-11-11 07:30:19 +01:00
2009-11-11 07:30:19 +01:00
2009-10-23 08:22:47 +02:00
2009-10-23 08:22:47 +02:00
2009-11-08 18:01:34 +01:00
2009-11-08 18:01:34 +01:00
2009-10-27 13:51:53 +01:00
2009-11-11 07:30:18 +01:00
2009-08-16 10:47:47 +02:00
2009-09-24 21:27:51 +02:00
2009-11-11 07:30:19 +01:00
2009-11-11 07:30:19 +01:00
2009-07-01 12:49:48 +02:00
2009-09-24 21:27:51 +02:00
2009-10-03 16:01:59 +02:00
2009-10-03 16:01:59 +02:00
2009-09-24 21:27:51 +02:00
2009-11-08 10:44:36 +01:00
2009-06-27 06:06:39 +02:00
2009-11-15 09:51:24 +01:00
2009-10-15 11:35:23 +02:00
2009-08-16 10:47:47 +02:00
2009-09-24 21:27:51 +02:00
2009-08-16 10:47:47 +02:00
2009-10-16 10:34:28 +02:00
2009-08-04 11:09:56 +02:00
2009-09-24 21:27:51 +02:00
2009-08-16 10:47:47 +02:00
2009-09-24 21:27:51 +02:00
2009-09-24 21:27:51 +02:00
2009-10-23 07:55:18 +02:00
2009-10-23 07:55:18 +02:00
2009-07-01 12:49:48 +02:00
2009-09-24 21:27:51 +02:00
2009-11-15 14:54:23 +01:00
2009-11-15 14:54:23 +01:00
2009-07-11 19:20:25 +02:00
2009-09-24 21:27:51 +02:00
2009-10-20 03:39:21 +02:00
2009-09-24 21:27:51 +02:00
2009-11-11 07:30:18 +01:00
2009-11-11 07:30:18 +01:00
2009-10-23 08:22:47 +02:00
2009-10-23 07:55:18 +02:00
2009-10-07 08:36:10 +02:00
2009-10-21 13:39:57 +02:00
2009-10-07 08:36:10 +02:00
2009-10-15 10:42:39 +02:00
2009-09-24 21:27:51 +02:00
2009-06-07 17:31:52 +02:00
2009-11-11 07:30:19 +01:00
2009-08-16 10:47:47 +02:00
2009-09-24 21:27:51 +02:00
2009-07-01 12:49:48 +02:00