• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/src/router/mpstat/

Lines Matching refs:cpu_nr

70 int cpu_nr = 0;
251 for (cpu = 1; cpu <= cpu_nr; cpu++) {
346 if (cpu_nr > 1) {
401 for (cpu = 1; cpu <= cpu_nr; cpu++) {
495 for (cpu = 1; cpu <= cpu_nr; cpu++) {
549 for (cpu = 1; cpu <= cpu_nr; cpu++) {
629 int cpu_index[cpu_nr], index = 0, dgt, len;
632 for (cpu = 0; cpu < cpu_nr; cpu++) {
639 SREALLOC(line, char, INTERRUPTS_LINE + 11 * cpu_nr);
644 while (fgets(line, INTERRUPTS_LINE + 11 * cpu_nr, fp) != NULL) {
646 while (((cp = strstr(next, "CPU")) != NULL) && (index < cpu_nr)) {
655 while ((fgets(line, INTERRUPTS_LINE + 11 * cpu_nr, fp) != NULL) &&
724 if (cpu_nr > 1) {
732 read_stat_cpu(st_cpu[0], cpu_nr + 1, &(uptime[0]), &(uptime0[0]));
750 memset(st_cpu[1], 0, STATS_CPU_SIZE * (cpu_nr + 1));
751 memset(st_irq[1], 0, STATS_IRQ_SIZE * (cpu_nr + 1));
752 memset(st_irqcpu[1], 0, STATS_IRQCPU_SIZE * (cpu_nr + 1) * irqcpu_nr);
754 memset(st_softirqcpu[1], 0, STATS_IRQCPU_SIZE * (cpu_nr + 1) * softirqcpu_nr);
767 memcpy(st_cpu[2], st_cpu[0], STATS_CPU_SIZE * (cpu_nr + 1));
768 memcpy(st_irq[2], st_irq[0], STATS_IRQ_SIZE * (cpu_nr + 1));
769 memcpy(st_irqcpu[2], st_irqcpu[0], STATS_IRQCPU_SIZE * (cpu_nr + 1) * irqcpu_nr);
772 STATS_IRQCPU_SIZE * (cpu_nr + 1) * softirqcpu_nr);
784 for (cpu = 1; cpu <= cpu_nr; cpu++) {
793 if (cpu_nr > 1) {
797 read_stat_cpu(st_cpu[curr], cpu_nr + 1, &(uptime[curr]), &(uptime0[curr]));
857 cpu_nr = get_cpu_nr(~0);
860 irqcpu_nr = get_irqcpu_nr(INTERRUPTS, NR_IRQS, cpu_nr) +
863 softirqcpu_nr = get_irqcpu_nr(SOFTIRQS, NR_IRQS, cpu_nr) +
867 * cpu_nr: a value of 2 means there are 2 processors (0 and 1).
870 salloc_mp_struct(cpu_nr + 1);
909 if (cpu_nr) {
916 memset(cpu_bitmap, 0xff, ((cpu_nr + 1) >> 3) + 1);
927 if (i >= cpu_nr) {
951 memset(cpu_bitmap, 0xff, ((cpu_nr + 1) >> 3) + 1);
1030 header.nodename, header.machine, cpu_nr);