Home | History | Annotate | Download | only in misc

Lines Matching refs:kern_db

76 static struct rtacct_data *kern_db = &kern_db_static;
162 fprintf(fp, "#%s\n", kern_db->signature);
190 val = &kern_db->val[realm*4];
191 rate = &kern_db->rate[realm*4];
224 fprintf(fp, "#%s\n", kern_db->signature);
253 val = &kern_db->val[realm*4];
254 rate = &kern_db->rate[realm*4];
311 __u32 incr = ival[i] - kern_db->ival[i];
314 kern_db->val[i] == 0 && kern_db->rate[i] == 0)
317 kern_db->val[i] += incr;
318 kern_db->ival[i] = ival[i];
321 kern_db->rate[i] += W*(sample-kern_db->rate[i]);
324 kern_db->rate[i] = sample;
327 kern_db->rate[i] += w*(sample-kern_db->rate[i]);
337 while (tot < sizeof(*kern_db)) {
338 int n = write(fd, ((char*)kern_db) + tot, sizeof(*kern_db)-tot);
370 sprintf(kern_db->signature,
375 pad_kern_table(kern_db, read_kern_table(kern_db->ival));
565 if (write(fd, kern_db, sizeof(*hist_db)) < 0) {
603 nread(fd, (char*)kern_db, sizeof(*kern_db));
605 strcmp(kern_db->signature, hist_db->signature)) {
620 pad_kern_table(kern_db, read_kern_table(kern_db->ival));
621 strcpy(kern_db->signature, "kernel");