• Home
  • Raw
  • Download

Lines Matching refs:i

114 	int i;  in sum_vm_events()  local
121 for (i = 0; i < NR_VM_EVENT_ITEMS; i++) in sum_vm_events()
122 ret[i] += this->event[i]; in sum_vm_events()
148 int i; in vm_events_fold_cpu() local
150 for (i = 0; i < NR_VM_EVENT_ITEMS; i++) { in vm_events_fold_cpu()
151 count_vm_events(i, fold_state->event[i]); in vm_events_fold_cpu()
152 fold_state->event[i] = 0; in vm_events_fold_cpu()
297 int i; in set_pgdat_percpu_threshold() local
299 for (i = 0; i < pgdat->nr_zones; i++) { in set_pgdat_percpu_threshold()
300 zone = &pgdat->node_zones[i]; in set_pgdat_percpu_threshold()
686 int i; in fold_diff() local
689 for (i = 0; i < NR_VM_ZONE_STAT_ITEMS; i++) in fold_diff()
690 if (zone_diff[i]) { in fold_diff()
691 atomic_long_add(zone_diff[i], &vm_zone_stat[i]); in fold_diff()
695 for (i = 0; i < NR_VM_NUMA_STAT_ITEMS; i++) in fold_diff()
696 if (numa_diff[i]) { in fold_diff()
697 atomic_long_add(numa_diff[i], &vm_numa_stat[i]); in fold_diff()
701 for (i = 0; i < NR_VM_NODE_STAT_ITEMS; i++) in fold_diff()
702 if (node_diff[i]) { in fold_diff()
703 atomic_long_add(node_diff[i], &vm_node_stat[i]); in fold_diff()
711 int i; in fold_diff() local
714 for (i = 0; i < NR_VM_ZONE_STAT_ITEMS; i++) in fold_diff()
715 if (zone_diff[i]) { in fold_diff()
716 atomic_long_add(zone_diff[i], &vm_zone_stat[i]); in fold_diff()
720 for (i = 0; i < NR_VM_NODE_STAT_ITEMS; i++) in fold_diff()
721 if (node_diff[i]) { in fold_diff()
722 atomic_long_add(node_diff[i], &vm_node_stat[i]); in fold_diff()
749 int i; in refresh_cpu_vm_stats() local
760 for (i = 0; i < NR_VM_ZONE_STAT_ITEMS; i++) { in refresh_cpu_vm_stats()
763 v = this_cpu_xchg(p->vm_stat_diff[i], 0); in refresh_cpu_vm_stats()
766 atomic_long_add(v, &zone->vm_stat[i]); in refresh_cpu_vm_stats()
767 global_zone_diff[i] += v; in refresh_cpu_vm_stats()
775 for (i = 0; i < NR_VM_NUMA_STAT_ITEMS; i++) { in refresh_cpu_vm_stats()
778 v = this_cpu_xchg(p->vm_numa_stat_diff[i], 0); in refresh_cpu_vm_stats()
781 atomic_long_add(v, &zone->vm_numa_stat[i]); in refresh_cpu_vm_stats()
782 global_numa_diff[i] += v; in refresh_cpu_vm_stats()
822 for (i = 0; i < NR_VM_NODE_STAT_ITEMS; i++) { in refresh_cpu_vm_stats()
825 v = this_cpu_xchg(p->vm_node_stat_diff[i], 0); in refresh_cpu_vm_stats()
827 atomic_long_add(v, &pgdat->vm_stat[i]); in refresh_cpu_vm_stats()
828 global_node_diff[i] += v; in refresh_cpu_vm_stats()
851 int i; in cpu_vm_stats_fold() local
863 for (i = 0; i < NR_VM_ZONE_STAT_ITEMS; i++) in cpu_vm_stats_fold()
864 if (p->vm_stat_diff[i]) { in cpu_vm_stats_fold()
867 v = p->vm_stat_diff[i]; in cpu_vm_stats_fold()
868 p->vm_stat_diff[i] = 0; in cpu_vm_stats_fold()
869 atomic_long_add(v, &zone->vm_stat[i]); in cpu_vm_stats_fold()
870 global_zone_diff[i] += v; in cpu_vm_stats_fold()
874 for (i = 0; i < NR_VM_NUMA_STAT_ITEMS; i++) in cpu_vm_stats_fold()
875 if (p->vm_numa_stat_diff[i]) { in cpu_vm_stats_fold()
878 v = p->vm_numa_stat_diff[i]; in cpu_vm_stats_fold()
879 p->vm_numa_stat_diff[i] = 0; in cpu_vm_stats_fold()
880 atomic_long_add(v, &zone->vm_numa_stat[i]); in cpu_vm_stats_fold()
881 global_numa_diff[i] += v; in cpu_vm_stats_fold()
891 for (i = 0; i < NR_VM_NODE_STAT_ITEMS; i++) in cpu_vm_stats_fold()
892 if (p->vm_node_stat_diff[i]) { in cpu_vm_stats_fold()
895 v = p->vm_node_stat_diff[i]; in cpu_vm_stats_fold()
896 p->vm_node_stat_diff[i] = 0; in cpu_vm_stats_fold()
897 atomic_long_add(v, &pgdat->vm_stat[i]); in cpu_vm_stats_fold()
898 global_node_diff[i] += v; in cpu_vm_stats_fold()
915 int i; in drain_zonestat() local
917 for (i = 0; i < NR_VM_ZONE_STAT_ITEMS; i++) in drain_zonestat()
918 if (pset->vm_stat_diff[i]) { in drain_zonestat()
919 int v = pset->vm_stat_diff[i]; in drain_zonestat()
920 pset->vm_stat_diff[i] = 0; in drain_zonestat()
921 atomic_long_add(v, &zone->vm_stat[i]); in drain_zonestat()
922 atomic_long_add(v, &vm_zone_stat[i]); in drain_zonestat()
926 for (i = 0; i < NR_VM_NUMA_STAT_ITEMS; i++) in drain_zonestat()
927 if (pset->vm_numa_stat_diff[i]) { in drain_zonestat()
928 int v = pset->vm_numa_stat_diff[i]; in drain_zonestat()
930 pset->vm_numa_stat_diff[i] = 0; in drain_zonestat()
931 atomic_long_add(v, &zone->vm_numa_stat[i]); in drain_zonestat()
932 atomic_long_add(v, &vm_numa_stat[i]); in drain_zonestat()
963 int i; in sum_zone_node_page_state() local
966 for (i = 0; i < MAX_NR_ZONES; i++) in sum_zone_node_page_state()
967 count += zone_page_state(zones + i, item); in sum_zone_node_page_state()
980 int i; in sum_zone_numa_state() local
983 for (i = 0; i < MAX_NR_ZONES; i++) in sum_zone_numa_state()
984 count += zone_numa_state_snapshot(zones + i, item); in sum_zone_numa_state()
1565 int i; in zoneinfo_show_print() local
1569 for (i = 0; i < NR_VM_NODE_STAT_ITEMS; i++) { in zoneinfo_show_print()
1571 vmstat_text[i + NR_VM_ZONE_STAT_ITEMS + in zoneinfo_show_print()
1573 node_page_state(pgdat, i)); in zoneinfo_show_print()
1595 for (i = 1; i < ARRAY_SIZE(zone->lowmem_reserve); i++) in zoneinfo_show_print()
1596 seq_printf(m, ", %ld", zone->lowmem_reserve[i]); in zoneinfo_show_print()
1605 for (i = 0; i < NR_VM_ZONE_STAT_ITEMS; i++) in zoneinfo_show_print()
1606 seq_printf(m, "\n %-12s %lu", vmstat_text[i], in zoneinfo_show_print()
1607 zone_page_state(zone, i)); in zoneinfo_show_print()
1610 for (i = 0; i < NR_VM_NUMA_STAT_ITEMS; i++) in zoneinfo_show_print()
1612 vmstat_text[i + NR_VM_ZONE_STAT_ITEMS], in zoneinfo_show_print()
1613 zone_numa_state_snapshot(zone, i)); in zoneinfo_show_print()
1617 for_each_online_cpu(i) { in zoneinfo_show_print()
1620 pageset = per_cpu_ptr(zone->pageset, i); in zoneinfo_show_print()
1626 i, in zoneinfo_show_print()
1673 int i, stat_items_size; in vmstat_start() local
1692 for (i = 0; i < NR_VM_ZONE_STAT_ITEMS; i++) in vmstat_start()
1693 v[i] = global_zone_page_state(i); in vmstat_start()
1697 for (i = 0; i < NR_VM_NUMA_STAT_ITEMS; i++) in vmstat_start()
1698 v[i] = global_numa_state(i); in vmstat_start()
1702 for (i = 0; i < NR_VM_NODE_STAT_ITEMS; i++) in vmstat_start()
1703 v[i] = global_node_page_state(i); in vmstat_start()
1766 int i; in vmstat_refresh() local
1783 for (i = 0; i < NR_VM_ZONE_STAT_ITEMS; i++) { in vmstat_refresh()
1784 val = atomic_long_read(&vm_zone_stat[i]); in vmstat_refresh()
1787 __func__, vmstat_text[i], val); in vmstat_refresh()
1792 for (i = 0; i < NR_VM_NUMA_STAT_ITEMS; i++) { in vmstat_refresh()
1793 val = atomic_long_read(&vm_numa_stat[i]); in vmstat_refresh()
1796 __func__, vmstat_text[i + NR_VM_ZONE_STAT_ITEMS], val); in vmstat_refresh()