diff options
author | Hitoshi Mitake <[email protected]> | 2009-11-15 20:36:53 +0900 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-11-15 14:54:23 +0100 |
commit | d2fb8b4151a92223da6a84006f8f248ebeb6677d (patch) | |
tree | a25e75e2338f6b678de94b8a5b24a77104f01a02 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 0ffa798d947f5f5e40690cc9d38e678080a34f87 (diff) |
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 <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions