userlibandfileserver/fileserver/inc/f32dbg.h
changeset 201 43365a9b78a3
parent 109 b3a1d9898418
equal deleted inserted replaced
200:73ea206103e6 201:43365a9b78a3
   186 
   186 
   187 const TInt KControlIoSessionCount=KMaxTInt-21;
   187 const TInt KControlIoSessionCount=KMaxTInt-21;
   188 const TInt KControlIoObjectCount=KMaxTInt-22;
   188 const TInt KControlIoObjectCount=KMaxTInt-22;
   189 
   189 
   190 const TInt KControlIoIsFileSequential=KMaxTInt-23;
   190 const TInt KControlIoIsFileSequential=KMaxTInt-23;
       
   191 const TInt KControlIoGlobalCacheConfig=KMaxTInt-24;
       
   192 const TInt KControlIoGlobalCacheInfo=KMaxTInt-25;
       
   193 const TInt KControlIoDirCacheConfig=KMaxTInt-26;
       
   194 const TInt KControlIoDirCacheInfo=KMaxTInt-27;
       
   195 const TInt KControlIoSimulateMemoryLow=KMaxTInt-28;
       
   196 const TInt KControlIoStopSimulateMemoryLow=KMaxTInt-29;
   191 
   197 
   192 const TInt KNCDebugNotifierValue=-500000;	// between 0 and 1 second
   198 const TInt KNCDebugNotifierValue=-500000;	// between 0 and 1 second
   193 
   199 
   194 GLREF_D TInt DebugNCNotifier;
   200 GLREF_D TInt DebugNCNotifier;
   195 
   201 
   254 
   260 
   255 typedef TPckgBuf <TFsDebugCorruptLogRecord> TFsDebugCorruptLogRecordBuf;
   261 typedef TPckgBuf <TFsDebugCorruptLogRecord> TFsDebugCorruptLogRecordBuf;
   256 
   262 
   257 extern TBool EnableFatUtilityFunctions;
   263 extern TBool EnableFatUtilityFunctions;
   258 
   264 
       
   265 class TGlobalCacheConfig
       
   266     {
       
   267 public:
       
   268     TInt32 iGlobalCacheSizeInBytes;      		// in bytes 
       
   269     TInt32 iGlobalLowMemoryThreshold;         	// in percentage
       
   270     };
       
   271 
       
   272 class TGlobalCacheInfo
       
   273     {
       
   274 public:
       
   275     TInt32 iGlobalCacheSizeInBytes;     		// in bytes 
       
   276     TInt32 iGlobalLowMemoryThreshold;   		// in percentage
       
   277     };
       
   278 
       
   279 class TDirCacheConfig
       
   280     {
       
   281 public:
       
   282     TInt iDrive;
       
   283 
       
   284     TInt32 iLeafDirCacheSize;           // in number of most recently visited leaf directories
       
   285     TInt32 iDirCacheSizeMin;            // in bytes
       
   286     TInt32 iDirCacheSizeMax;            // in bytes
       
   287     };
       
   288 
       
   289 class TDirCacheInfo
       
   290     {
       
   291 public:
       
   292     TInt iDrive;
       
   293 
       
   294     /**
       
   295     Segment size in bytes. A memory segment is the smallest memory unit that Kernel manages through RChunk.
       
   296     */
       
   297     TInt32 iMemorySegmentSize;
       
   298 
       
   299     /**
       
   300     Size of memory a page occupies, in bytes.
       
   301     Note: following restrictions may result a difference between page size in memory & page size in data:
       
   302         1. page size can not be smaller than segment size
       
   303         2. one page can not contain data from two different clusters
       
   304     */
       
   305     TInt32 iPageSizeInMemory;
       
   306 
       
   307     /**
       
   308     Size of actual data a page contains, in bytes.
       
   309     Note: following restrictions may result a difference between page size in memory & page size in data:
       
   310         1. page size can not be smaller than segment size
       
   311         2. one page can not contain data from two different clusters
       
   312     */
       
   313     TInt32 iPageSizeInData;
       
   314     
       
   315     /**
       
   316     The minimum number of pages that the cache can contain, even under low memory conditions.
       
   317     */
       
   318     TInt32 iMinCacheSizeInPages;
       
   319 
       
   320     /**
       
   321     The maximum number of pages that the cache can contain, when there is enough free memory in the system.
       
   322     */
       
   323     TInt32 iMaxCacheSizeInPages;
       
   324     
       
   325     /**
       
   326     The minimum cache size in memory. In bytes.
       
   327     */
       
   328     TInt32 iMinCacheSizeInMemory;
       
   329 
       
   330     /**
       
   331     The maximum cache size in memroy. In bytes.
       
   332     */
       
   333     TInt32 iMaxCacheSizeInMemory;
       
   334     
       
   335     /**
       
   336     Current count of the locked pages.
       
   337     */
       
   338     TInt32 iLockedPageNumber;
       
   339 
       
   340     /**
       
   341     Current count of the unlocked pages.
       
   342     */
       
   343     TInt32 iUnlockedPageNumber;
       
   344     
       
   345     };
       
   346 
   259 #endif
   347 #endif
   260 
   348 
   261 enum TLoaderDebugFunction
   349 enum TLoaderDebugFunction
   262 	{
   350 	{
   263 	ELoaderDebug_SetHeapFail,
   351 	ELoaderDebug_SetHeapFail,