Lines Matching refs:hist_db
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()
573 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()