Skip to content

Commit

Permalink
Pixelstats: add block layer stats length
Browse files Browse the repository at this point in the history
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: I1a85e0a095235d682b465d81349df2d43bf8b67e
  • Loading branch information
ChenChunSung committed Jun 24, 2022
1 parent c1d944f commit 588ad5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pixelstats/service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ using android::hardware::google::pixel::DropDetect;
using android::hardware::google::pixel::SysfsCollector;
using android::hardware::google::pixel::UeventListener;

#define BLOCK_STATS_LENGTH 11
#define UFSHC_PATH(filename) "/dev/sys/block/bootdevice/" #filename
const struct SysfsCollector::SysfsPaths sysfs_paths = {
.SlowioReadCntPath = UFSHC_PATH(slowio_read_cnt),
Expand Down

0 comments on commit 588ad5a

Please sign in to comment.