Lines Matching refs:hist_db
77 struct rtacct_data *hist_db;
201 if (hist_db) {
202 memcpy(&hist_db->val[realm*4], val, sizeof(*val)*4);
259 if (rval[k] < hist_db->val[realm*4+k])
262 rval[k] -= hist_db->val[realm*4+k];
268 if (hist_db) {
269 memcpy(&hist_db->val[realm*4], val, sizeof(*val)*4);
565 if (stb.st_size != sizeof(*hist_db))
566 if (write(fd, kern_db, sizeof(*hist_db)) < 0) {
571 hist_db = mmap(NULL, sizeof(*hist_db),
576 if ((unsigned long)hist_db == ~0UL) {
592 memset(hist_db, 0, sizeof(*hist_db));
605 if (hist_db && hist_db->signature[0] &&
606 strcmp(kern_db->signature, hist_db->signature)) {
608 hist_db = NULL;
615 if (hist_db && hist_db->signature[0] &&
616 strcmp(hist_db->signature, "kernel")) {
618 hist_db = NULL;
625 if (ignore_history || hist_db == NULL)