sl@0: // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // e32test\mmu\dpinfo.cpp sl@0: // sl@0: // sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include "paging_info.h" sl@0: sl@0: TInt E32Main() sl@0: { sl@0: TInt cmdLineLen = User::CommandLineLength(); sl@0: if (cmdLineLen == 0) sl@0: return PagingInfo::PrintAll(); sl@0: else sl@0: { sl@0: RBuf cmdLine; sl@0: TInt r = cmdLine.Create(cmdLineLen); sl@0: if (r != KErrNone) sl@0: return r; sl@0: User::CommandLine(cmdLine); sl@0: sl@0: if (cmdLine == _L("-r")) sl@0: { sl@0: RDebug::Printf("Resetting demand paging info"); sl@0: return PagingInfo::ResetAll(); sl@0: } sl@0: else sl@0: { sl@0: RDebug::Printf("usage: dpinfo [-r]"); sl@0: return KErrArgument; sl@0: } sl@0: } sl@0: }