History log of /system/core/storaged/tests/storaged_test.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8197093497a65829f4da90b3fda0e281da7b27eb 18-Mar-2017 Jin Qian <jinqian@google.com> storaged: read emmc health data from sysfs

Sysfs data is straightforward so we don't need parsing anymore.

Also removed periodical check since data is set only once during
driver initialization. Checking at every device boot or storaged
restart should be sufficient to monitor long term status change.

Test: adb logcat -d -b events | grep storaged_emmc_info
Bug: 36228467
Merged-In: I2a181f52c9f19de1e679a3a905aaebafe4d08227
Change-Id: Ic05e353f0af9363f3bcbe793ba0c351082e446ca
/system/core/storaged/tests/storaged_test.cpp
4fc338e60bf1d85212f1540d109beb1b248c4830 16-Mar-2017 Jin Qian <jinqian@google.com> storaged: rewrite emmc info class

Test: adb logcat -d -b events | grep storaged_emmc_info
Bug: 36228467
Change-Id: Ib799e60ed65661a9fb99be8ad4c930f547339975
/system/core/storaged/tests/storaged_test.cpp
151ea52cf68e4f9716c985b6ee0b2bf2f160f6ef 03-Feb-2017 George Burgess IV <gbiv@google.com> Add permission bits to open with O_CREAT.

It's an error to pass open O_CREAT without giving it mode bits:
https://linux.die.net/man/3/open

Bug: 32073964
Test: Compiles with clang FORTIFY.
Change-Id: Iaa78c3003ed960e1ffe7e56623dba33db4e17443
/system/core/storaged/tests/storaged_test.cpp
88ad33eff1fd70d276f9be70164afeb0dc639e58 24-Jan-2017 Jin Qian <jinqian@google.com> storaged: remove task io code

Bug: 34612499
Change-Id: Id0599ee2ae025a186259e95363c1ddd0feae8079
/system/core/storaged/tests/storaged_test.cpp
af49d9756f8b0e29be517101c83c696031cd1dd9 17-Jun-2016 ynwang <ynwang@google.com> Storaged cleanup

Compliance with Android Coding standards

Test: compile
Bug: 28826771
Change-Id: I10bc4a793bb1da75e8600b81a5d7ff913e310da1
/system/core/storaged/tests/storaged_test.cpp
62cb372279f0237f759d3fe8a7e03d8272ba327f 17-Jun-2016 ynwang <ynwang@google.com> storaged: add storaged native daemon

Storaged periodically checks the devices' disk stats and eMMC lifetime.
This information is logged to both the kernel and event log. By event
logging, the data can be aggregated by the checkin service and then
sent to Sawmill.

It also periodically traverses /proc/[pid], maintaining the I/O usage of
all tasks (all sampled tasks). The task I/O data can be reported using
the --dump option.

Storaged is booted when the device boots up and requires the permission
for reading /proc/diskstats, /proc/[pid]/io and debugfs(eMMC ext_csd).
For detailed description, please refer to go/storaged.

Bug: 28826771
Change-Id: I774b1a44cc30092bac1bfcbc08bf487295e7cfed
/system/core/storaged/tests/storaged_test.cpp