7 open (FILE
, $file) or die ("Unable to open $file: $!");
12 read(FILE
, $buf, $SAMPLE_SZ) == $SAMPLE_SZ or die ("Short read.");
13 ($high, $low) = unpack("II", $buf);
15 if ($high - $prevhigh == 0) {
16 push (@res, $low - $prevlow);
22 #print "$high $low\n";
24 # $pcs{$pc}++ if ($exe eq "kernel");
27 foreach $diff (sort { $a <=> $b } @res) {
31 #foreach $pc (sort { $a <=> $b } keys %pcs) {
32 # print "$pc $pcs{$pc}\n";