Pixelstats: add more UFS error count paths am: 71543928ef
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1948976 Change-Id: Ie1704ed6969a2d093d141cf05da91919bf63d070
This commit is contained in:
commit
0f8abfe264
1 changed files with 12 additions and 2 deletions
|
@ -26,6 +26,7 @@ using android::hardware::google::pixel::SysfsCollector;
|
||||||
using android::hardware::google::pixel::UeventListener;
|
using android::hardware::google::pixel::UeventListener;
|
||||||
|
|
||||||
#define UFSHC_PATH(filename) "/dev/sys/block/bootdevice/" #filename
|
#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 = {
|
const struct SysfsCollector::SysfsPaths sysfs_paths = {
|
||||||
.SlowioReadCntPath = UFSHC_PATH(slowio_read_cnt),
|
.SlowioReadCntPath = UFSHC_PATH(slowio_read_cnt),
|
||||||
.SlowioWriteCntPath = UFSHC_PATH(slowio_write_cnt),
|
.SlowioWriteCntPath = UFSHC_PATH(slowio_write_cnt),
|
||||||
|
@ -35,12 +36,21 @@ const struct SysfsCollector::SysfsPaths sysfs_paths = {
|
||||||
.UFSLifetimeA = UFSHC_PATH(health_descriptor/life_time_estimation_a),
|
.UFSLifetimeA = UFSHC_PATH(health_descriptor/life_time_estimation_a),
|
||||||
.UFSLifetimeB = UFSHC_PATH(health_descriptor/life_time_estimation_b),
|
.UFSLifetimeB = UFSHC_PATH(health_descriptor/life_time_estimation_b),
|
||||||
.UFSLifetimeC = UFSHC_PATH(health_descriptor/life_time_estimation_c),
|
.UFSLifetimeC = UFSHC_PATH(health_descriptor/life_time_estimation_c),
|
||||||
.UFSHostResetPath = UFSHC_PATH(err_stats/dev_reset_count),
|
|
||||||
.F2fsStatsPath = "/sys/fs/f2fs/",
|
.F2fsStatsPath = "/sys/fs/f2fs/",
|
||||||
.ImpedancePath = "/sys/devices/platform/audiometrics/speaker_impedance",
|
.ImpedancePath = "/sys/devices/platform/audiometrics/speaker_impedance",
|
||||||
.CodecPath = "/sys/devices/platform/audiometrics/codec_state",
|
.CodecPath = "/sys/devices/platform/audiometrics/codec_state",
|
||||||
.EEPROMPath = "/dev/battery_history",
|
.EEPROMPath = "/dev/battery_history",
|
||||||
.MitigationPath = "/sys/devices/virtual/pmic/mitigation"};
|
.MitigationPath = "/sys/devices/virtual/pmic/mitigation",
|
||||||
|
.UFSErrStatsPath = {
|
||||||
|
UFS_ERR_PATH(pa_err_count),
|
||||||
|
UFS_ERR_PATH(dl_err_count),
|
||||||
|
UFS_ERR_PATH(nl_err_count),
|
||||||
|
UFS_ERR_PATH(tl_err_count),
|
||||||
|
UFS_ERR_PATH(dme_err_count),
|
||||||
|
UFS_ERR_PATH(fatal_err_count),
|
||||||
|
UFS_ERR_PATH(auto_hibern8_err_count)
|
||||||
|
}
|
||||||
|
};
|
||||||
const struct UeventListener::UeventPaths ueventPaths = {
|
const struct UeventListener::UeventPaths ueventPaths = {
|
||||||
.AudioUevent = "/devices/virtual/amcs/amcs",
|
.AudioUevent = "/devices/virtual/amcs/amcs",
|
||||||
.WirelessChargerPtmcPath = "/sys/class/power_supply/wireless/device/ptmc_id"};
|
.WirelessChargerPtmcPath = "/sys/class/power_supply/wireless/device/ptmc_id"};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue