arm64: rusage: Fix counting contiguous PTEs
Change-Id: I7e89c25d49dc1f6efe1c27c76c66c6fedd22af1f Refs: #1342
This commit is contained in:
20
test/issues/1342/match.pl
Executable file
20
test/issues/1342/match.pl
Executable 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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user