Lines Matching refs:hist_db
77 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()
572 if ((unsigned long)hist_db == ~0UL) { in main()
589 memset(hist_db, 0, sizeof(*hist_db)); in main()
602 if (hist_db && hist_db->signature[0] && in main()
603 strcmp(kern_db->signature, hist_db->signature)) { in main()
605 hist_db = NULL; in main()
612 if (hist_db && hist_db->signature[0] && in main()
613 strcmp(hist_db->signature, "kernel")) { in main()
615 hist_db = NULL; in main()
622 if (ignore_history || hist_db == NULL) in main()