diff options
author | Hongbo Li <lihongbo22@huawei.com> | 2024-11-12 11:15:47 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-01-10 07:38:41 +0300 |
commit | d01ea14da718f7c30520c8498a7ba952b099ad83 (patch) | |
tree | 90428b5f0e59d349f9a4ad797eacc314cd9c48fd /tools/perf/scripts/python/task-analyzer.py | |
parent | 3db3084a86c3690e4b50b8579b0b1bbc29897375 (diff) | |
download | linux-d01ea14da718f7c30520c8498a7ba952b099ad83.tar.xz |
bcachefs: add counter_flags for counters
In bcachefs, io_read and io_write counter record the amount
of data which has been read and written. They increase in
unit of sector, so to display correctly, they need to be
shifted to the left by the size of a sector. Other counters
like io_move, move_extent_{read, write, finish} also have
this problem.
In order to support different unit, we add extra column to
mark the counter type by using TYPE_COUNTER and TYPE_SECTORS
in BCH_PERSISTENT_COUNTERS().
Fixes: 1c6fdbd8f246 ("bcachefs: Initial commit")
Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions