diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-05-09 20:51:07 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2022-05-20 13:54:46 -0400 |
commit | 6790c202cebf315e7eda1829ef64e871d5d7b316 (patch) | |
tree | 49c065fd0326fac5a85c96fc22a6312b96d1e5c3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ee99ff04cf54f6416e105308eb7d2e9da7142bd7 (diff) |
lib/printbuf: Unit specifiers
This adds options to printbuf for specifying whether units should be
printed raw (default) or with human readable units, and for controlling
whether human-readable units should be base 2 (default), or base 10.
This also adds new helpers that obey these options:
- pr_human_readable_u64
- pr_human_readable_s64
These obey printbuf->si_units
- pr_units_u64
- pr_units_s64
These obey both printbuf-human_readable_units and printbuf->si_units
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions