diff options
author | Sumit Garg <sumit.garg@linaro.org> | 2019-02-21 14:30:08 +0530 |
---|---|---|
committer | Cyril Hrubis <chrubis@suse.cz> | 2019-02-25 14:02:09 +0100 |
commit | 9438b1071ea24be005905058cb80b8e26328ef19 (patch) | |
tree | 0f8de439e7db05d77dba2a3ce1abebd8c5bda280 /include | |
parent | 96474a247901049835a677e9b12282921d2c602d (diff) |
lib/tst_device: add new api tst_dev_bytes_written()
This api reads test block device stat file and returns the bytes written
since the last invocation of this api.
Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
Diffstat (limited to 'include')
-rw-r--r-- | include/tst_device.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/tst_device.h b/include/tst_device.h index 7ac288368..61902b7e0 100644 --- a/include/tst_device.h +++ b/include/tst_device.h @@ -44,4 +44,11 @@ int tst_umount(const char *path); */ int tst_clear_device(const char *dev); +/* + * Reads test block device stat file and returns the bytes written since the + * last call of this function. + * @dev: test block device + */ +unsigned long tst_dev_bytes_written(const char *dev); + #endif /* TST_DEVICE_H__ */ |