diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2015-06-09 17:21:39 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-06-17 12:40:40 -0400 |
commit | c96aec344de0de857ef3d7fba53992c7ba311e1e (patch) | |
tree | 09b6b651366fd853dc4c73a97ee0598865bd4e06 /drivers/md/dm-stats.h | |
parent | dd4c1b7d0c95be1c9245118a3accc41a16f1db67 (diff) | |
download | linux-c96aec344de0de857ef3d7fba53992c7ba311e1e.tar.gz linux-c96aec344de0de857ef3d7fba53992c7ba311e1e.tar.bz2 linux-c96aec344de0de857ef3d7fba53992c7ba311e1e.zip |
dm stats: support precise timestamps
Make it possible to use precise timestamps with nanosecond granularity
in dm statistics.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-stats.h')
-rw-r--r-- | drivers/md/dm-stats.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/dm-stats.h b/drivers/md/dm-stats.h index e7c4984bf235..f1c0956e3843 100644 --- a/drivers/md/dm-stats.h +++ b/drivers/md/dm-stats.h @@ -18,6 +18,7 @@ struct dm_stats { struct dm_stats_aux { bool merged; + unsigned long long duration_ns; }; void dm_stats_init(struct dm_stats *st); @@ -30,7 +31,8 @@ int dm_stats_message(struct mapped_device *md, unsigned argc, char **argv, void dm_stats_account_io(struct dm_stats *stats, unsigned long bi_rw, sector_t bi_sector, unsigned bi_sectors, bool end, - unsigned long duration, struct dm_stats_aux *aux); + unsigned long duration_jiffies, + struct dm_stats_aux *aux); static inline bool dm_stats_used(struct dm_stats *st) { |