Searched refs:hist_db (Results 1 – 3 of 3) sorted by relevance
/external/iproute2/misc/ |
D | rtacct.c | 77 struct rtacct_data *hist_db; variable 201 if (hist_db) { in dump_abs_db() 202 memcpy(&hist_db->val[realm*4], val, sizeof(*val)*4); in dump_abs_db() 259 if (rval[k] < hist_db->val[realm*4+k]) in dump_incr_db() 262 rval[k] -= hist_db->val[realm*4+k]; in dump_incr_db() 268 if (hist_db) { in dump_incr_db() 269 memcpy(&hist_db->val[realm*4], val, sizeof(*val)*4); in dump_incr_db() 565 if (stb.st_size != sizeof(*hist_db)) in main() 566 write(fd, kern_db, sizeof(*hist_db)); in main() 568 hist_db = mmap(NULL, sizeof(*hist_db), in main() [all …]
|
D | nstat.c | 83 struct nstat_ent *hist_db; variable 261 h = hist_db; in dump_kern_db() 286 h = hist_db; in dump_incr_db() 577 hist_db = kern_db; in main() 588 if (hist_db && source_mismatch) { in main() 590 hist_db = NULL; in main() 596 if (hist_db && info_source[0] && strcmp(info_source, "kernel")) { in main() 598 hist_db = NULL; in main() 609 if (ignore_history || hist_db == NULL) in main()
|
D | ifstat.c | 64 struct ifstat_ent *hist_db; variable 214 h = hist_db; in dump_raw_db() 379 h = hist_db; in dump_kern_db() 394 h = hist_db; in dump_incr_db() 727 hist_db = kern_db; in main() 738 if (hist_db && source_mismatch) { in main() 740 hist_db = NULL; in main() 746 if (hist_db && info_source[0] && strcmp(info_source, "kernel")) { in main() 748 hist_db = NULL; in main() 757 if (ignore_history || hist_db == NULL) in main()
|