arm64: rusage: Fix counting contiguous PTEs

Change-Id: I7e89c25d49dc1f6efe1c27c76c66c6fedd22af1f
Refs: #1342
This commit is contained in:
Masamichi Takagi
2019-07-30 11:45:38 +09:00
parent 0c1cae45fe
commit 51cd7cbb6c
9 changed files with 559 additions and 23 deletions

20
test/issues/1342/match.pl Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/perl
while(<>) {
if(/\[\s+\d+\]\:\s([^+^ ]+)\+,/) {
$addr = $1;
$count{$addr}++;
#print $addr . "\n";
}
if(/\[\s+\d+\]\:\s([^-^ ]+)\-,/) {
$addr = $1;
$count{$addr}--;
#print $addr . "\n";
}
}
foreach $key (sort keys(%count)) {
if($count{$key} != 0) {
print $key.",count=".$count{$key}."\n";
}
}