Lines Matching refs:hist_db
77 static struct rtacct_data *hist_db;
200 if (hist_db) {
201 memcpy(&hist_db->val[realm*4], val, sizeof(*val)*4);
258 if (rval[k] < hist_db->val[realm*4+k])
261 rval[k] -= hist_db->val[realm*4+k];
267 if (hist_db) {
268 memcpy(&hist_db->val[realm*4], val, sizeof(*val)*4);
564 if (stb.st_size != sizeof(*hist_db))
565 if (write(fd, kern_db, sizeof(*hist_db)) < 0) {
570 hist_db = mmap(NULL, sizeof(*hist_db),
575 if ((unsigned long)hist_db == ~0UL) {
591 memset(hist_db, 0, sizeof(*hist_db));
604 if (hist_db && hist_db->signature[0] &&
605 strcmp(kern_db->signature, hist_db->signature)) {
607 hist_db = NULL;
614 if (hist_db && hist_db->signature[0] &&
615 strcmp(hist_db->signature, "kernel")) {
617 hist_db = NULL;
624 if (ignore_history || hist_db == NULL)