/usr/share/doc/libsys-virt-perl/examples/node-alloc.pl is in libsys-virt-perl 1.2.16-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/usr/bin/perl
use Sys::Virt;
if (int(@ARGV) < 2) {
die "syntax: $0 URI PAGESIZE=1COUNT1 PAGESIZE2=COUNT2...";
}
my $uri = shift @ARGV;
my $c = Sys::Virt->new(uri => $uri);
my @pages;
foreach (@ARGV) {
my @bits = split /=/;
push @pages, \@bits;
}
$c->node_alloc_pages(\@pages, -1, -1);
|