Lines Matching refs:root
71 # root should have ID 0.
73 my $root = $c->root;
74 is($root, 0, 'root should have id zero');
93 # All root children should have root as their one and only one parent
96 my (@children) = $c->children($root);
108 $fail++ if $parent != $root;
114 # Each lgrp other than root should have a single parent and
115 # root should have no parents.
120 next if $l == $root;
128 @parents = $c->parents($root);
129 ok(!@parents, 'root should have no parents');
142 my $leaf = $leaves[0]; # Pickup any non-root lgrp.
146 my $lgrp = ($home == $root ? $leaf : $root);
165 $c->affinity_set(P_PID, P_MYID, $root, $aff) or
167 my $affinity = $c->affinity_get(P_PID, $$, $root);
179 my @rcpus = $c->cpus($root, LGRP_CONTENT_HIERARCHY) or
184 my $memsize = $c->mem_size($root,
201 my $latency = lgrp_latency($root, $root);
205 my $latency1 = $c->latency($root, $root);
219 cmp_ok($latency, '>', 0, "Latency from root to self should be positive");
302 is($max_latency, $latencies->{$root}{$root},
317 my @lgrps_c = $c->resources($root, LGRP_RSRC_CPU);