diff options
author | Jiri Olsa <[email protected]> | 2017-01-09 10:51:55 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-01-11 16:48:01 -0300 |
commit | 9808143ba2e54818a3cf445d9b69b3f5f15451ee (patch) | |
tree | 00c2425c5e06608fda53fc24d875cd4e1dabce63 /lib/pm-notifier-error-inject.c | |
parent | e978be9ea2990f1af60fe10eadd2312a6250e0b8 (diff) |
perf tools: Add unit_number__scnprintf function
Add unit_number__scnprintf function to display size units and use it in
-m option info message.
Before:
$ perf record -m 10M ls
rounding mmap pages size to 16777216 bytes (4096 pages)
...
After:
$ perf record -m 10M ls
rounding mmap pages size to 16M (4096 pages)
...
Signed-off-by: Jiri Olsa <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
[ Rename it to unit_number__scnprintf for consistency ]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions