tools/summarise_kerneltrace.pl
author William Roberts <williamr@symbian.org>
Wed, 13 Oct 2010 21:40:50 +0100
changeset 33 900525f287f9
child 95 aad950cacc2b
permissions -rw-r--r--
Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
33
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
     1
# Copyright (c) 2010 Symbian Foundation Ltd.
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
     2
# All rights reserved.
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
     3
# This component and the accompanying materials are made available
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
     4
# under the terms of the License "Eclipse Public License v1.0"
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
     5
# which accompanies this distribution, and is available
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
     7
#
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
     8
# Initial Contributors:
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
     9
# Symbian Foundation - initial contribution.
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    10
#
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    11
# Contributors:
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    12
#
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    13
# Description: 
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    14
# This script filters kernel trace output to the bare essentials
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    15
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    16
use strict;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    17
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    18
my %processes;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    19
my %threadcount;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    20
my %instancecount;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    21
my %originalname;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    22
my @deathlist;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    23
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    24
my $line;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    25
while ($line = <>)
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    26
	{
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    27
	# AddThread ekern.exe::NVMem-ecc10dce to ekern.exe
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    28
	# Process FLogSvr.exe Die: 0 0 Kill
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    29
	# DLibrary domainSrv.exe::domainpolicy2.dll Close m=-1
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    30
	# Thread MTMInit::Via Infrared Via Infrared   Panic MTMInit 5
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    31
	# DProcess::Rename MSexe.exe to !MsvServer
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    32
	if ( $line =~ /^(AddThread |Process \S+ Die: |DLibrary |Thread |DProcess::Rename )/o)
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    33
		{
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    34
		
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    35
		if ($line =~ /^DProcess::Rename (\S+) to (\S+)/o)
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    36
			{
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    37
			my $oldname = $1;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    38
			my $process = $2;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    39
		printf "Renaming %s (%d,%d) to %s\n", $oldname, $processes{$oldname}, $threadcount{$oldname}, $process;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    40
			$processes{$process} = $processes{$oldname};
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    41
			$threadcount{$process} = $threadcount{$oldname};
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    42
			$instancecount{$process} = $instancecount{$oldname};
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    43
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    44
			$originalname{$process} = $oldname;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    45
			delete $processes{$oldname};
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    46
			delete $threadcount{$oldname};
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    47
			}
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    48
		if ($line =~ /^AddThread (\S+)::(\S+) to (\S+)$/o)
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    49
			{
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    50
			my $process = $1;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    51
			my $thread = $2;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    52
			
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    53
			if ($thread eq "Main" || $thread eq "Null")
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    54
				{
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    55
				# New process created
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    56
				$processes{$process} = $.;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    57
				$threadcount{$process} = 0;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    58
				}
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    59
			$threadcount{$process} += 1;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    60
			if (!defined $instancecount{$process})
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    61
				{
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    62
				$instancecount{$process} = 0;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    63
				}
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    64
			$instancecount{$process} += 1;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    65
			}
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    66
		print "$.: $line";
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    67
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    68
		if ($line =~ /^Process (\S+) Die: (.*)$/o)
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    69
			{
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    70
			my $process = $1;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    71
			my $details = $2;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    72
			my $summary = sprintf "#%d, %d threads, lifetime %d-%d",
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    73
				$instancecount{$process},$threadcount{$process},$processes{$process},$.;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    74
			
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    75
			print "\t$process: $summary\n";
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    76
			delete $processes{$process};
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    77
			delete $threadcount{$process};
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    78
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    79
			chomp $line;	
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    80
			push @deathlist, sprintf "%7d\t%-20s %s, died %s", $., $process, $summary, $details;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    81
			}
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    82
		next;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    83
		}
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    84
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    85
	# Initiating transition to state 0000.ffff.
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    86
	# R:\sf\os\devicesrv\sysstatemgmt\systemstatemgr\cmd\src\ssmcommandbase.cpp 135: Completing command with errorcode 0
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    87
	# ***** Execute cmd no. 11 without a delay
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    88
	# Starting : Z:\sys\bin\splashscreen.exe with arguments :  and Execution behaviour : 1
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    89
	if ( $line =~ /^(Initiating transition |\*\*\*\*\* |Starting : )/o)
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    90
		{
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    91
		print "SSM: $line";
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    92
		next;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    93
		}
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    94
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    95
	if ($line =~ /^(MODE_USR:)/o)
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    96
		{
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    97
		# it's crashed
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    98
		print $line, <>;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
    99
		last;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
   100
		}
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
   101
	}
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
   102
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
   103
printf "\n\nActive processes (%d):\n", scalar keys %processes;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
   104
foreach my $process (sort keys %processes)
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
   105
	{
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
   106
	printf "%-25s\t%d threads, created at line %d\n", $process, $threadcount{$process}, $processes{$process};
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
   107
	}
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
   108
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
   109
printf "\n\nDead processes (%d)\n", scalar @deathlist;
900525f287f9 Use UDEB system starter in debug_stem_rom.oby, and add tools\summarise_kerneltrace.pl to filter out most of the kerneltracing detail
William Roberts <williamr@symbian.org>
parents:
diff changeset
   110
print join("\n", sort @deathlist, "");