|
1 // btrace.h |
|
2 // |
|
3 // Copyright (c) 2010 Accenture. All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of the "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 // Accenture - Initial contribution |
|
11 // |
|
12 #include <fshell/common.mmh> |
|
13 |
|
14 #include <fshell/extrabtrace.h> |
|
15 #include FSHELL_D32BTRACE_HEADER |
|
16 #include <fshell/iocli.h> |
|
17 #include <fshell/ioutils.h> |
|
18 #include <fshell/memoryaccesscmd.h> |
|
19 #include <fshell/ltkutils.h> |
|
20 |
|
21 using namespace IoUtils; |
|
22 |
|
23 class CCmdBtrace : public CMemoryAccessCommandBase |
|
24 { |
|
25 public: |
|
26 static CCommandBase* NewLC(); |
|
27 ~CCmdBtrace(); |
|
28 protected: |
|
29 CCmdBtrace(); |
|
30 void ConstructL(); |
|
31 void DumpL(); |
|
32 void TestL(); |
|
33 void ResetL(); |
|
34 void SetMode(TUint aMode); |
|
35 void EmptyBuffer(); |
|
36 void RemovePrimaryFilters(); |
|
37 void RemoveSecondaryFiltersL(); |
|
38 const TDesC* ModeText(TUint aMode) const; |
|
39 protected: // From CCommandBase. |
|
40 virtual const TDesC& Name() const; |
|
41 virtual void DoRunL(); |
|
42 virtual void OptionsL(RCommandOptionList& aOptions); |
|
43 virtual void ArgumentsL(RCommandArgumentList& aArguments); |
|
44 protected: |
|
45 TFileName2 iFileName; |
|
46 RArray<TUint> iPrimaryFilters; |
|
47 RArray<TUint> iSecondaryFilters; |
|
48 TUint iMode; |
|
49 TUint iBufferSize; |
|
50 TBool iDumpToRdebug; |
|
51 TBool iFollow; |
|
52 TUint iThreshold; |
|
53 TBool iEnableTimestamp2; |
|
54 TBool iVerbose; |
|
55 TBool iTest; |
|
56 TBool iReset; |
|
57 RBTrace iBtrace; |
|
58 TUint iTextTraceMode; |
|
59 TBool iBuildConfig; |
|
60 }; |