equal
deleted
inserted
replaced
|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // e32test\mmu\dpinfo.cpp |
|
15 // |
|
16 // |
|
17 |
|
18 #include <e32debug.h> |
|
19 #include <hal.h> |
|
20 #include <d32locd.h> |
|
21 #include "paging_info.h" |
|
22 |
|
23 TInt E32Main() |
|
24 { |
|
25 TInt cmdLineLen = User::CommandLineLength(); |
|
26 if (cmdLineLen == 0) |
|
27 return PagingInfo::PrintAll(); |
|
28 else |
|
29 { |
|
30 RBuf cmdLine; |
|
31 TInt r = cmdLine.Create(cmdLineLen); |
|
32 if (r != KErrNone) |
|
33 return r; |
|
34 User::CommandLine(cmdLine); |
|
35 |
|
36 if (cmdLine == _L("-r")) |
|
37 { |
|
38 RDebug::Printf("Resetting demand paging info"); |
|
39 return PagingInfo::ResetAll(); |
|
40 } |
|
41 else |
|
42 { |
|
43 RDebug::Printf("usage: dpinfo [-r]"); |
|
44 return KErrArgument; |
|
45 } |
|
46 } |
|
47 } |