dbgsrv/coredumpserver/test/automatictests/tcds_kernel/inc/cds/t_common_defs.h
changeset 0 c6b0df440bee
equal deleted inserted replaced
-1:000000000000 0:c6b0df440bee
       
     1 /**
       
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 /**
       
    21  @file t_common_defs.h
       
    22  @internalTechnology
       
    23  @prototype
       
    24 */
       
    25 
       
    26 #ifndef __COMMON_DEFS__
       
    27 #define __COMMON_DEFS__
       
    28 
       
    29 /** CDS UID */
       
    30 const TUid KCDSUid = TUid::Uid(0x10282FE5);
       
    31 
       
    32 /** UTRACE Formatter UID */
       
    33 const TUid KUtraceUid = TUid::Uid(0x102836BA);
       
    34 
       
    35 /** File Writer UID */
       
    36 const TUid KUidFileWriter= TUid::Uid(0x102831e4);
       
    37 
       
    38 /** Symbian ELF formatter UID */
       
    39 const TUid KUidELFFormatter = TUid::Uid(0x10282fe3);
       
    40 
       
    41 const TUid KUidELFFormatterV2 = TUid::Uid(0x102836bb);
       
    42 
       
    43 /** Expected Crash File Name */
       
    44 _LIT(KCrashFileName, "e:\\naibmys");
       
    45 
       
    46 /** wildcard used to search for the SELF File created for kernel crash*/
       
    47 _LIT(KCrashWildCard, "naibmys*");
       
    48 
       
    49 /** Setting Directory Path to E:\\ MMC card */
       
    50 _LIT(KDir, "e:\\");
       
    51 
       
    52 /** Thread name of the test driver that crashes */
       
    53 _LIT(KThreadKernelCrash, "ekern.exe::crashdriver");
       
    54 
       
    55 /** Thread name of the user application that crashed */
       
    56 _LIT(KThreadUserCrash, "crash");
       
    57 
       
    58 /** The Debug Security Server's major version number. */
       
    59 const TUint KDebugServMajorVersionNumber=2;
       
    60 
       
    61 /** The Debug Security Server's minor version number. */
       
    62 const TUint KDebugServMinorVersionNumber=2;
       
    63 
       
    64 /** The Debug Security Server's patch version number. */
       
    65 const TUint KDebugServPatchVersionNumber=0;
       
    66 
       
    67 /** User mode CPSR **/
       
    68 const TUint32 KCPSRUsrMode = 0x10;
       
    69 
       
    70 /** 0x1000 ARM REGISTER CPSR **/
       
    71 const TUint32 KCPSRReg = 0x1000; 
       
    72 
       
    73 /** M[4:0] mode bits of the CPSR **/
       
    74 const TUint32 KModeBitCPSR = 0x0F;
       
    75 
       
    76 /** Trace category to be checked for **/
       
    77 const TInt KTraceCategory = 200;
       
    78 
       
    79 /** Maximum Time Out Value to be checked with the SELF File Creation time **/
       
    80 const TInt KMAXTIMEOUT = 25;
       
    81 
       
    82 /** INI File parameter for the crashapp */
       
    83 _LIT(KTe_CrashAppParam,"CrashAppParam");
       
    84 
       
    85 /** crashapp application used to crash the kernel */
       
    86 _LIT(KCrashAppFileName,"Z:\\sys\\bin\\crashapp.exe");
       
    87 
       
    88 
       
    89 _LIT( KPostCrashEventActionPrompt, "Action After Crash:\n  0-None,\n  1-Resume Thread,\n  2-Resume Process,\n  4-Kill Process" );
       
    90 _LIT(KSELFFileName,"selffile");
       
    91 _LIT(KFlashDumpFileName,"Z:\\sys\\bin\\flashdump.exe");
       
    92 _LIT(KTe_FlashDumpParam,"E:\\thedump");
       
    93 _LIT(KEndOfProcessing, "idle");
       
    94 _LIT( KFilePathPrompt, "not_important" );
       
    95 _LIT(KStartOfSELFProc, "-");
       
    96 _LIT( KDataSegmentPrompt, "Create Data Segments?" );
       
    97 _LIT( KCodeSegmentPrompt, "Create Code Segments?" );
       
    98 _LIT( KThreadSegmentPrompt, "Create Thread Segments?" );
       
    99 _LIT( KTrueFalseOpt, "True,False" );
       
   100 _LIT( KTrueOpt, "True" );
       
   101 _LIT( KFalseOpt, "False" );
       
   102 _LIT( KCreateTraceData, "How much Trace data to capture (Kb)" );
       
   103 
       
   104 
       
   105 
       
   106 
       
   107 #endif // __CPROCESSCRASHWRAPPER_H__