Lines Matching refs:kern_db
76 struct rtacct_data *kern_db = &kern_db_static; variable
163 fprintf(fp, "#%s\n", kern_db->signature); in dump_abs_db()
191 val = &kern_db->val[realm*4]; in dump_abs_db()
192 rate = &kern_db->rate[realm*4]; in dump_abs_db()
225 fprintf(fp, "#%s\n", kern_db->signature); in dump_incr_db()
254 val = &kern_db->val[realm*4]; in dump_incr_db()
255 rate = &kern_db->rate[realm*4]; in dump_incr_db()
312 __u32 incr = ival[i] - kern_db->ival[i]; in update_db()
315 kern_db->val[i] == 0 && kern_db->rate[i] == 0) in update_db()
318 kern_db->val[i] += incr; in update_db()
319 kern_db->ival[i] = ival[i]; in update_db()
322 kern_db->rate[i] += W*(sample-kern_db->rate[i]); in update_db()
325 kern_db->rate[i] = sample; in update_db()
328 kern_db->rate[i] += w*(sample-kern_db->rate[i]); in update_db()
338 while (tot < sizeof(*kern_db)) { in send_db()
339 int n = write(fd, ((char*)kern_db) + tot, sizeof(*kern_db)-tot); in send_db()
371 sprintf(kern_db->signature, in server_loop()
376 pad_kern_table(kern_db, read_kern_table(kern_db->ival)); in server_loop()
566 write(fd, kern_db, sizeof(*hist_db)); in main()
601 nread(fd, (char*)kern_db, sizeof(*kern_db)); in main()
603 strcmp(kern_db->signature, hist_db->signature)) { in main()
618 pad_kern_table(kern_db, read_kern_table(kern_db->ival)); in main()
619 strcpy(kern_db->signature, "kernel"); in main()