mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-01-27 19:18:35 +00:00
Pixelstats: add block layer stats length
The block layer stats format is changing time by time. This can pass the correct length by project. Bug: 219860725 Test: reboot and check log Change-Id: Icf63dd5e80a820212beebe414a6ddc3a7f42dfa4
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
using android::hardware::google::pixel::SysfsCollector;
|
||||
using android::hardware::google::pixel::UeventListener;
|
||||
|
||||
#define BLOCK_STATS_LENGTH 17
|
||||
#define UFSHC_PATH(filename) "/dev/sys/block/bootdevice/" #filename
|
||||
#define UFS_ERR_PATH(err_type) UFSHC_PATH(err_stats/) #err_type
|
||||
const struct SysfsCollector::SysfsPaths sysfs_paths = {
|
||||
@@ -55,6 +56,7 @@ const struct SysfsCollector::SysfsPaths sysfs_paths = {
|
||||
UFS_ERR_PATH(fatal_err_count),
|
||||
UFS_ERR_PATH(auto_hibern8_err_count)
|
||||
},
|
||||
.BlockStatsLength = BLOCK_STATS_LENGTH,
|
||||
};
|
||||
|
||||
const struct UeventListener::UeventPaths ueventPaths = {
|
||||
|
||||
Reference in New Issue
Block a user