platform_system_core/storaged
Matthew Duggan 5a02a9bab9 storaged: Avoid divide-by-zero in performance measurement
The code previously assumed that write() took a non-zero number of clock
ticks.  This is mostly true, but can't be guaranteed.  Add a check to
avoid crashing if it's 0.

Bug: 233008287
Test: Compile
Change-Id: Idec0052f534dc4abb81a414ca76f6c11f4a4dded
2022-05-18 17:05:54 +09:00
..
binder/android/os
include storaged: use health HAL 2021-12-06 23:09:37 -08:00
tests storaged: skip disk_stats test if not supported. 2021-12-08 07:33:09 +00:00
tools
Android.bp storaged: skip disk_stats test if not supported. 2021-12-08 07:33:09 +00:00
EventLogTags.logtags
main.cpp storaged: ignore SIGPIPE 2020-03-18 13:53:15 -07:00
OWNERS
README.properties
storaged.cpp storaged: Avoid divide-by-zero in performance measurement 2022-05-18 17:05:54 +09:00
storaged.proto
storaged.rc Replace writepid with task_profiles command for cgroup migration 2021-06-24 17:24:20 +00:00
storaged_diskstats.cpp storaged: use health HAL 2021-12-06 23:09:37 -08:00
storaged_info.cpp storaged: Fix bug in empty check 2021-12-08 10:15:04 -08:00
storaged_service.cpp Move system/core/ off NO_ERROR. 2018-10-08 11:15:52 -07:00
storaged_uid_monitor.cpp storaged: replace LOG_TO() macros with LOG() 2020-01-10 17:10:58 -08:00
storaged_utils.cpp
uid_info.cpp Move system/core/ off NO_ERROR. 2018-10-08 11:15:52 -07:00

ro.storaged.event.interval    # interval storaged scans for IO stats, in seconds
ro.storaged.event.perf_check  # check for time spent in event loop, in microseconds
ro.storaged.disk_stats_pub    # interval storaged publish disk stats, in seconds
ro.storaged.uid_io.interval   # interval storaged checks Per UID IO usage, in seconds
ro.storaged.uid_io.threshold  # Per UID IO usage limit, in bytes