1 /* |
|
2 * Copyright (c) 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: Definitions for inline methods of the class RAnalyzeTool. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __ANALYZETOOL_INL |
|
20 #define __ANALYZETOOL_INL |
|
21 |
|
22 #ifndef __KERNEL_MODE__ |
|
23 |
|
24 // ---------------------------------------------------------------------------- |
|
25 // RAnalyzeTool::Open() |
|
26 // Opens a handle to a analyze tool device driver |
|
27 // ---------------------------------------------------------------------------- |
|
28 // |
|
29 inline TInt RAnalyzeTool::Open() |
|
30 { |
|
31 return DoCreate( KAnalyzeToolLddName, |
|
32 KAnalyzeToolLddVersion(), |
|
33 KNullUnit, |
|
34 NULL, |
|
35 NULL, |
|
36 EOwnerProcess ); |
|
37 } |
|
38 |
|
39 // ---------------------------------------------------------------------------- |
|
40 // RAnalyzeTool::GetProcessInfo() |
|
41 // Acquires process information. |
|
42 // ---------------------------------------------------------------------------- |
|
43 // |
|
44 inline TInt RAnalyzeTool::GetProcessInfo( |
|
45 TProcessIdentityParamsBuf& aProcessIdentityParams ) |
|
46 { |
|
47 return DoControl( EGetProcessInfo, &aProcessIdentityParams, NULL ); |
|
48 } |
|
49 |
|
50 // ---------------------------------------------------------------------------- |
|
51 // RAnalyzeTool::GetCodesegInfo() |
|
52 // Acquires codeseg information. |
|
53 // ---------------------------------------------------------------------------- |
|
54 // |
|
55 inline TInt RAnalyzeTool::GetCodesegInfo( TCodesegInfoBuf& aCodesegInfo ) |
|
56 { |
|
57 return DoControl( EGetCodesegInfo, &aCodesegInfo, NULL ); |
|
58 } |
|
59 |
|
60 // ---------------------------------------------------------------------------- |
|
61 // RAnalyzeTool::GetLibraryInfo() |
|
62 // Symbian 2nd phase constructor can leave. |
|
63 // ---------------------------------------------------------------------------- |
|
64 // |
|
65 inline TInt RAnalyzeTool::GetLibraryInfo( TLibraryInfoBuf& aLibraryinfo ) |
|
66 { |
|
67 return DoControl( EGetLibraryInfo, &aLibraryinfo, NULL ); |
|
68 } |
|
69 |
|
70 // ---------------------------------------------------------------------------- |
|
71 // RAnalyzeTool::LibraryEvent() |
|
72 // Subscribes library event. |
|
73 // ---------------------------------------------------------------------------- |
|
74 // |
|
75 inline void RAnalyzeTool::LibraryEvent( TRequestStatus& aStatus, |
|
76 TLibraryEventInfo& aLibInfo ) |
|
77 { |
|
78 return DoRequest( ELibraryEvent, aStatus, (TAny*)&aLibInfo ); |
|
79 } |
|
80 |
|
81 // ---------------------------------------------------------------------------- |
|
82 // RAnalyzeTool::CancelLibraryEvent() |
|
83 // Cancels subscribetion of the library event. |
|
84 // ---------------------------------------------------------------------------- |
|
85 // |
|
86 inline void RAnalyzeTool::CancelLibraryEvent() |
|
87 { |
|
88 DoControl( ECancelLibraryEvent, NULL, NULL); |
|
89 } |
|
90 |
|
91 // ---------------------------------------------------------------------------- |
|
92 // RAnalyzeTool::ClientCount() |
|
93 // Acquires the count of device driver current users |
|
94 // ---------------------------------------------------------------------------- |
|
95 // |
|
96 inline TInt RAnalyzeTool::ClientCount( TClientCountBuf& aClientCount ) |
|
97 { |
|
98 return DoControl( ECurrentClientCount, &aClientCount, NULL ); |
|
99 } |
|
100 |
|
101 // ---------------------------------------------------------------------------- |
|
102 // RAnalyzeTool::MainThreadAlloctor() |
|
103 // Acquires information about process main thread |
|
104 // ---------------------------------------------------------------------------- |
|
105 // |
|
106 inline TInt RAnalyzeTool::MainThreadAlloctor( |
|
107 TMainThreadParamsBuf& aMainThreadParams ) |
|
108 { |
|
109 return DoControl( EMainThreadAlloctor, &aMainThreadParams, NULL ); |
|
110 } |
|
111 |
|
112 // ---------------------------------------------------------------------------- |
|
113 // RAnalyzeTool::ThreadStack() |
|
114 // Acquires main thread stack address. |
|
115 // ---------------------------------------------------------------------------- |
|
116 // |
|
117 inline TInt RAnalyzeTool::ThreadStack( TThreadParamsBuf& aThreadStack ) |
|
118 { |
|
119 return DoControl( EThreadStack, &aThreadStack, NULL ); |
|
120 } |
|
121 |
|
122 // ---------------------------------------------------------------------------- |
|
123 // RAnalyzeTool::GetProcessHandleInfo() |
|
124 // Acquires information about process handles |
|
125 // ---------------------------------------------------------------------------- |
|
126 // |
|
127 inline TInt RAnalyzeTool::GetProcessHandleInfo( |
|
128 TProcessHandleInfoBuf& aProcessHandleInfo ) |
|
129 { |
|
130 return DoControl( EGetProcessHandle, &aProcessHandleInfo, NULL ); |
|
131 } |
|
132 |
|
133 // ----------------------------------------------------------------------------- |
|
134 // DAnalyzeToolChannel::GetCurrentHandleCount() |
|
135 // Acquires a process's current handle count |
|
136 // ----------------------------------------------------------------------------- |
|
137 // |
|
138 inline TInt RAnalyzeTool::GetCurrentHandleCount( |
|
139 TATProcessHandlesBuf& aProcessHandles ) |
|
140 { |
|
141 return DoControl( EGetCurrentHandles, &aProcessHandles, NULL ); |
|
142 } |
|
143 |
|
144 // ----------------------------------------------------------------------------- |
|
145 // DAnalyzeToolChannel::GetMemoryModel() |
|
146 // Acquires memory model system uses. |
|
147 // ----------------------------------------------------------------------------- |
|
148 // |
|
149 inline TInt RAnalyzeTool::GetMemoryModel( |
|
150 TATMemoryModelBuf& aMemoryModel ) |
|
151 { |
|
152 return DoControl( EGetMemoryModel, &aMemoryModel, NULL ); |
|
153 } |
|
154 |
|
155 #endif // #ifndef __KERNEL_MODE__ |
|
156 |
|
157 #endif // __ANALYZETOOL_INL |
|
158 |
|
159 // End of file |
|