Lines Matching refs:delta_cpu_counters
53 static cpu_time_counters_t delta_cpu_counters[MAXCPUS];
383 delta_cpu_counters[i].idle = ending_cpu_counters[i].idle -
385 delta_cpu_counters[i].user = ending_cpu_counters[i].user -
387 delta_cpu_counters[i].kernel = ending_cpu_counters[i].kernel -
389 delta_cpu_counters[i].interrupt = ending_cpu_counters[i].interrupt -
393 print_cpu_time_counters("delta_cpu_counters",i,delta_cpu_counters);
398 delta_cpu_counters[i].idle +
399 delta_cpu_counters[i].user +
400 delta_cpu_counters[i].kernel;
406 if (delta_cpu_counters[i].interrupt > total_cpu_nsec) {
417 "\t delta[%d].interrupt %llu\n",i,delta_cpu_counters[i].interrupt);
419 "\t delta[%d].idle %llu\n",i,delta_cpu_counters[i].idle);
421 "\t delta[%d].user %llu\n",i,delta_cpu_counters[i].user);
423 "\t delta[%d].kernel %llu\n",i,delta_cpu_counters[i].kernel);
436 (delta_cpu_counters[i].idle * CALC_ACCURACY) / total_cpu_nsec;
439 (delta_cpu_counters[i].user * CALC_ACCURACY) / total_cpu_nsec;
442 (delta_cpu_counters[i].kernel * CALC_ACCURACY) / total_cpu_nsec;
447 interrupt_idle = ((delta_cpu_counters[i].interrupt * fraction_idle) /
450 interrupt_user = ((delta_cpu_counters[i].interrupt * fraction_user) /
453 interrupt_kernel = ((delta_cpu_counters[i].interrupt * fraction_kernel) /
470 corrected_cpu_counters[i].idle = delta_cpu_counters[i].idle -
473 corrected_cpu_counters[i].user = delta_cpu_counters[i].user -
476 corrected_cpu_counters[i].kernel = delta_cpu_counters[i].kernel -
479 corrected_cpu_counters[i].interrupt = delta_cpu_counters[i].interrupt;