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