sprofalyze.pl: fix for forked-nonexeced processes

This commit is contained in:
David van Moolenbroek 2011-04-20 21:39:13 +00:00
parent 2b09bfde6d
commit 196de8bc40

View file

@ -230,6 +230,10 @@ sub process_datafile
read(FILE, $buf, $SAMPLE_SIZE) == $SAMPLE_SIZE or die ("Short read.");
($exe, $pc) = unpack("Z8i", $buf);
# The kernel mangles process names for debugging purposes.
# We compensate for that here.
$exe =~ s/\*F$//;
# We can access the hash by pc because they are all in there.
if (!defined(${$exe."_hash"}{$pc})) {
print "ERROR: Undefined in symbol table indexes: ";