• Home
  • Raw
  • Download

Lines Matching refs:ng

1131 static inline unsigned long group_faults_priv(struct numa_group *ng);
1132 static inline unsigned long group_faults_shared(struct numa_group *ng);
1174 struct numa_group *ng; in task_scan_start() local
1178 ng = rcu_dereference(p->numa_group); in task_scan_start()
1179 if (ng) { in task_scan_start()
1180 unsigned long shared = group_faults_shared(ng); in task_scan_start()
1181 unsigned long private = group_faults_priv(ng); in task_scan_start()
1183 period *= refcount_read(&ng->refcount); in task_scan_start()
1196 struct numa_group *ng; in task_scan_max() local
1202 ng = deref_curr_numa_group(p); in task_scan_max()
1203 if (ng) { in task_scan_max()
1204 unsigned long shared = group_faults_shared(ng); in task_scan_max()
1205 unsigned long private = group_faults_priv(ng); in task_scan_max()
1208 period *= refcount_read(&ng->refcount); in task_scan_max()
1241 struct numa_group *ng; in task_numa_group_id() local
1245 ng = rcu_dereference(p->numa_group); in task_numa_group_id()
1246 if (ng) in task_numa_group_id()
1247 gid = ng->gid; in task_numa_group_id()
1275 struct numa_group *ng = deref_task_numa_group(p); in group_faults() local
1277 if (!ng) in group_faults()
1280 return ng->faults[task_faults_idx(NUMA_MEM, nid, 0)] + in group_faults()
1281 ng->faults[task_faults_idx(NUMA_MEM, nid, 1)]; in group_faults()
1290 static inline unsigned long group_faults_priv(struct numa_group *ng) in group_faults_priv() argument
1296 faults += ng->faults[task_faults_idx(NUMA_MEM, node, 1)]; in group_faults_priv()
1302 static inline unsigned long group_faults_shared(struct numa_group *ng) in group_faults_shared() argument
1308 faults += ng->faults[task_faults_idx(NUMA_MEM, node, 0)]; in group_faults_shared()
1321 static bool numa_is_active_node(int nid, struct numa_group *ng) in numa_is_active_node() argument
1323 return group_faults_cpu(ng, nid) * ACTIVE_NODE_FRACTION > ng->max_faults_cpu; in numa_is_active_node()
1419 struct numa_group *ng = deref_task_numa_group(p); in group_weight() local
1422 if (!ng) in group_weight()
1425 total_faults = ng->total_faults; in group_weight()
1439 struct numa_group *ng = deref_curr_numa_group(p); in should_numa_migrate_memory() local
1482 if (!ng) in should_numa_migrate_memory()
1489 if (group_faults_cpu(ng, dst_nid) > group_faults_cpu(ng, src_nid) * in should_numa_migrate_memory()
1501 return group_faults_cpu(ng, dst_nid) * group_faults(p, src_nid) * 3 > in should_numa_migrate_memory()
1502 group_faults_cpu(ng, src_nid) * group_faults(p, dst_nid) * 4; in should_numa_migrate_memory()
2005 struct numa_group *ng; in task_numa_migrate() local
2053 ng = deref_curr_numa_group(p); in task_numa_migrate()
2054 if (env.best_cpu == -1 || (ng && ng->active_nodes > 1)) { in task_numa_migrate()
2087 if (ng) { in task_numa_migrate()
2384 struct numa_group *ng; in task_numa_placement() local
2402 ng = deref_curr_numa_group(p); in task_numa_placement()
2403 if (ng) { in task_numa_placement()
2404 group_lock = &ng->lock; in task_numa_placement()
2445 if (ng) { in task_numa_placement()
2453 ng->faults[mem_idx] += diff; in task_numa_placement()
2454 ng->faults_cpu[mem_idx] += f_diff; in task_numa_placement()
2455 ng->total_faults += diff; in task_numa_placement()
2456 group_faults += ng->faults[mem_idx]; in task_numa_placement()
2460 if (!ng) { in task_numa_placement()
2471 if (ng) { in task_numa_placement()
2472 numa_group_count_active_nodes(ng); in task_numa_placement()
2653 struct numa_group *ng; in task_numa_fault() local
2694 ng = deref_curr_numa_group(p); in task_numa_fault()
2695 if (!priv && !local && ng && ng->active_nodes > 1 && in task_numa_fault()
2696 numa_is_active_node(cpu_node, ng) && in task_numa_fault()
2697 numa_is_active_node(mem_node, ng)) in task_numa_fault()
12278 struct numa_group *ng; in show_numa_stats() local
12281 ng = rcu_dereference(p->numa_group); in show_numa_stats()
12287 if (ng) { in show_numa_stats()
12288 gsf = ng->faults[task_faults_idx(NUMA_MEM, node, 0)], in show_numa_stats()
12289 gpf = ng->faults[task_faults_idx(NUMA_MEM, node, 1)]; in show_numa_stats()