Searched refs:disk_stats (Results 1 – 5 of 5) sorted by relevance
/system/core/storaged/include/ |
D | storaged_utils.h | 28 bool parse_disk_stats(const char* disk_stats_path, struct disk_stats* stats); 29 struct disk_perf get_disk_perf(struct disk_stats* stats); 30 struct disk_stats get_inc_disk_stats(struct disk_stats* prev, struct disk_stats* curr); 31 void add_disk_stats(struct disk_stats* src, struct disk_stats* dst); 42 void log_event_disk_stats(struct disk_stats* stats, const char* type);
|
D | storaged.h | 64 struct disk_stats { struct 164 struct disk_stats mPrevious; 165 struct disk_stats mAccumulate; 187 void update(struct disk_stats* stats); 212 struct disk_stats mAccumulate; 213 struct disk_stats mPrevious; 216 memset(&mAccumulate, 0, sizeof(struct disk_stats)); in disk_stats_publisher() 217 memset(&mPrevious, 0, sizeof(struct disk_stats)); in disk_stats_publisher()
|
/system/core/storaged/tests/ |
D | storaged_test.cpp | 59 struct disk_stats stats; in TEST() 60 memset(&stats, 0, sizeof(struct disk_stats)); in TEST() 72 struct disk_stats old_stats; in TEST() 73 memset(&old_stats, 0, sizeof(struct disk_stats)); in TEST() 80 EXPECT_EQ(0, memcmp(&stats, &old_stats, sizeof(disk_stats))); in TEST() 83 TEST(storaged_test, disk_stats) { in TEST() argument 84 struct disk_stats stats; in TEST() 85 memset(&stats, 0, sizeof(struct disk_stats)); in TEST() 96 struct disk_stats base, tmp, curr, acc, inc[5]; in TEST() 97 memset(&base, 0, sizeof(struct disk_stats)); in TEST() [all …]
|
/system/core/storaged/ |
D | storaged_utils.cpp | 44 bool parse_disk_stats(const char* disk_stats_path, struct disk_stats* stats) { in parse_disk_stats() 75 struct disk_perf get_disk_perf(struct disk_stats* stats) { in get_disk_perf() 112 struct disk_stats get_inc_disk_stats(struct disk_stats* prev, struct disk_stats* curr) { in get_inc_disk_stats() 113 struct disk_stats inc; in get_inc_disk_stats() 134 void add_disk_stats(struct disk_stats* src, struct disk_stats* dst) { in add_disk_stats() 215 void log_event_disk_stats(struct disk_stats* stats, const char* type) { in log_event_disk_stats() 218 struct disk_stats zero_cmp; in log_event_disk_stats()
|
D | storaged.cpp | 41 memset(&mAccumulate, 0, sizeof(struct disk_stats)); in publish() 45 struct disk_stats curr; in update() 47 struct disk_stats inc = get_inc_disk_stats(&mPrevious, &curr); in update() 100 void disk_stats_monitor::update(struct disk_stats* stats) { in update() 101 struct disk_stats inc = get_inc_disk_stats(&mPrevious, stats); in update() 145 struct disk_stats curr; in update()
|