Home
last modified time | relevance | path

Searched refs:hist_db (Results 1 – 3 of 3) sorted by relevance

/external/iproute2/misc/
Drtacct.c77 static struct rtacct_data *hist_db; variable
195 if (hist_db) { in dump_abs_db()
196 memcpy(&hist_db->val[realm*4], val, sizeof(*val)*4); in dump_abs_db()
247 if (rval[k] < hist_db->val[realm*4+k]) in dump_incr_db()
250 rval[k] -= hist_db->val[realm*4+k]; in dump_incr_db()
256 if (hist_db) { in dump_incr_db()
257 memcpy(&hist_db->val[realm*4], val, sizeof(*val)*4); in dump_incr_db()
561 if (stb.st_size != sizeof(*hist_db)) in main()
562 if (write(fd, kern_db, sizeof(*hist_db)) < 0) { in main()
567 hist_db = mmap(NULL, sizeof(*hist_db), in main()
[all …]
Dnstat.c92 struct nstat_ent *hist_db; variable
301 h = hist_db; in dump_kern_db()
348 h = hist_db; in dump_incr_db()
698 hist_db = kern_db; in main()
715 if (hist_db && source_mismatch) { in main()
717 hist_db = NULL; in main()
724 if (hist_db && info_source[0] && strcmp(info_source, "kernel")) { in main()
726 hist_db = NULL; in main()
738 if (ignore_history || hist_db == NULL) in main()
Difstat.c98 struct ifstat_ent *hist_db; variable
311 h = hist_db; in dump_raw_db()
551 h = hist_db; in dump_incr_db()
984 hist_db = kern_db; in main()
1001 if (hist_db && source_mismatch) { in main()
1003 hist_db = NULL; in main()
1010 if (hist_db && info_source[0] && strcmp(info_source, "kernel")) { in main()
1012 hist_db = NULL; in main()
1021 if (ignore_history || hist_db == NULL) in main()