startup/stem_monitoring.rss
author William Roberts <williamr@symbian.org>
Mon, 25 Oct 2010 17:26:54 +0100
changeset 80 3ab0df073c86
parent 13 4f959124999b
permissions -rw-r--r--
Add support for "slim", which is "stem" + removal of some exports and checking of import details For this to work, the static_dependencies.txt file needs to contain the augmented dependency information. To help with this, it can now consume a mixture of both rom_content.csv lines and static_dependencies.txt lines: the best way to update the information would be something like (edit rom_content.csv to add "slim" to XXX.dll) findstr /i "xxx.dll" rom_content.csv > slim.txt findstr /i "xxx.dll" static_dependencies.txt >> slim.txt perl ..\tools\static_dependencies.pl -u static_dependencies.txt slim.txt > new_dependencies.txt This will notice the "slim" marking for xxx.dll, and record the detailed import and export lists for xxx.dll and everything which links to it. The new information will look something like sys\bin\xxx.dll /epoc32/release/armv5/urel/stem_xxx.dll exports=1-98.100-102:euser[100039e5].dll sys\bin\yyy.dll /epoc32/release/armv5/urel/yyy.dll euser[100039e5].dll:xxx[102750c7].dll@2.4-5.77.104-106:scppnwdl.dll sys\bin\zzz.dll /epoc32/release/armv5/urel/zzz.dll euser[100039e5].dll:xxx[102750c7].dll@23.25.74-77:scppnwdl.dll Only executables for which there is a "slim" marking will have this level of detail. The filtering script now does the detailed cross-checking of imports to exports for "slim" executables. In this case, it will observe the stem_xxx.dll does not export ordinal 104, and so the filtering will include deleting sys\bin\yyy.dll (xxx.dll Missing ordinal 104) sys\bin\zzz.dll will be acceptable, because it only uses ordinals which are still present in stem_xxx.dll
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
     1
/*
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
     3
* All rights reserved.
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
     4
* This component and the accompanying materials are made available
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
     6
* which accompanies this distribution, and is available
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
     8
*
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
     9
* Initial Contributors:
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    11
*
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    12
* Contributors:
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    13
*
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    14
* Description:
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    15
* Monitoring information definitions.
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    16
*
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    17
*/
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    18
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    19
#include <ssm/ssmcmd.rh>
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    20
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    21
// ===========================================================================
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    22
// Monitoring definitions in alphabetical order
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    23
// ===========================================================================
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    24
//
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    25
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    26
// ---------------------------------------------------------------------------
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    27
// r_mon_3_restarts_ignore
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    28
// ---------------------------------------------------------------------------
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    29
//
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    30
RESOURCE SSM_MONITOR_INFO r_mon_3_restarts_ignore
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    31
    {
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    32
    restart_mode = 0;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    33
    retries = 3;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    34
    }
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    35
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    36
// ---------------------------------------------------------------------------
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    37
// r_mon_3_restarts_reset
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    38
// ---------------------------------------------------------------------------
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    39
//
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    40
RESOURCE SSM_MONITOR_INFO r_mon_3_restarts_reset
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    41
    {
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    42
    restart_policy = ESsmRestartOS;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    43
    restart_mode = 0;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    44
    retries = 3;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    45
    }
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    46
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    47
// ---------------------------------------------------------------------------
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    48
// r_mon_20_restarts_reset
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    49
// ---------------------------------------------------------------------------
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    50
//
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    51
RESOURCE SSM_MONITOR_INFO r_mon_20_restarts_reset
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    52
    {
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    53
    restart_policy = ESsmRestartOS;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    54
    restart_mode = 0;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    55
    retries = 20;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    56
    }
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    57
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    58
// ---------------------------------------------------------------------------
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    59
// r_mon_100_restarts_reset
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    60
// ---------------------------------------------------------------------------
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    61
//
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    62
RESOURCE SSM_MONITOR_INFO r_mon_100_restarts_reset
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    63
    {
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    64
    restart_policy = ESsmRestartOS;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    65
    restart_mode = 0;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    66
    retries = 100;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    67
    }
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    68
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    69
// ---------------------------------------------------------------------------
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    70
// r_mon_max_restarts_ignore
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    71
// ---------------------------------------------------------------------------
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    72
//
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    73
RESOURCE SSM_MONITOR_INFO r_mon_max_restarts_ignore
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    74
    {
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    75
    restart_mode = 0;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    76
    retries = 32767;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    77
    }
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    78
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    79
// ---------------------------------------------------------------------------
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    80
// r_mon_reset
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    81
// ---------------------------------------------------------------------------
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    82
//
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    83
RESOURCE SSM_MONITOR_INFO r_mon_reset
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    84
    {
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    85
    restart_policy = ESsmRestartOS;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    86
    restart_mode = 0;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    87
    retries = 0;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    88
    }