Home
last modified time | relevance | path

Searched refs:disk_stats (Results 1 – 4 of 4) sorted by relevance

/system/core/storaged/include/
Dstoraged_utils.h30 bool parse_disk_stats(const char* disk_stats_path, struct disk_stats* stats);
31 struct disk_perf get_disk_perf(struct disk_stats* stats);
32 void get_inc_disk_stats(const struct disk_stats* prev, const struct disk_stats* curr, struct disk_s…
33 void add_disk_stats(struct disk_stats* src, struct disk_stats* dst);
Dstoraged_diskstats.h30 struct disk_stats { struct
60 friend disk_stats operator- (disk_stats curr, const disk_stats& prev) { argument
75 friend bool operator== (const disk_stats& a, const disk_stats& b) {
89 disk_stats& operator+= (const disk_stats& stats) {
148 struct disk_stats mPrevious;
149 struct disk_stats mAccumulate; /* reset after stall */
150 struct disk_stats mAccumulate_pub; /* reset after publish */
173 void update(struct disk_stats* stats);
/system/core/storaged/
Dstoraged_diskstats.cpp50 void log_event_disk_stats(struct disk_stats* stats, const char* type) { in log_event_disk_stats()
77 void init_disk_stats_other(const struct timespec& ts, struct disk_stats* stats) { in init_disk_stats_other()
84 bool parse_disk_stats(const char* disk_stats_path, struct disk_stats* stats) { in parse_disk_stats()
107 void convert_hal_disk_stats(struct disk_stats* dst, const DiskStats& src) { in convert_hal_disk_stats()
122 struct disk_stats* stats) { in get_disk_stats_from_health_hal()
147 struct disk_perf get_disk_perf(struct disk_stats* stats) in get_disk_perf()
176 void get_inc_disk_stats(const struct disk_stats* prev, const struct disk_stats* curr, in get_inc_disk_stats()
177 struct disk_stats* inc) in get_inc_disk_stats()
187 void add_disk_stats(struct disk_stats* src, struct disk_stats* dst) in add_disk_stats()
255 void disk_stats_monitor::update(struct disk_stats* curr) in update()
[all …]
/system/core/storaged/tests/
Dstoraged_test.cpp78 struct disk_stats stats; in TEST()
79 memset(&stats, 0, sizeof(struct disk_stats)); in TEST()
86 struct disk_stats old_stats; in TEST()
87 memset(&old_stats, 0, sizeof(struct disk_stats)); in TEST()
97 TEST(storaged_test, disk_stats) { in TEST() argument
98 struct disk_stats stats = {}; in TEST()
110 struct disk_stats base = {}, tmp = {}, curr, acc = {}, inc[5]; in TEST()
124 struct disk_stats overall_inc = {}; in TEST()
201 struct disk_stats disk_stats_add(struct disk_stats stats1, struct disk_stats stats2) { in disk_stats_add()
202 struct disk_stats retval; in disk_stats_add()
[all …]