traceservices/tracefw/integ_test/ost/TEF/te_ostv2integsuite_common/src/te_tracecontrolcmds.cpp
branchRCL_3
changeset 24 cc28652e0254
parent 23 26645d81f48d
equal deleted inserted replaced
23:26645d81f48d 24:cc28652e0254
    91             }
    91             }
    92         }
    92         }
    93 	
    93 	
    94 	//clear any configurations stored in the ULogger configuration file
    94 	//clear any configurations stored in the ULogger configuration file
    95 	CClearConfig configIni;
    95 	CClearConfig configIni;
    96 	configIni.ClearL(aLogger);
    96 	configIni.Clear(aLogger);
    97 	
    97 	
    98 	//prepare arrays for storing the filter settings to configure ULogger (and push any heap objects on the cleanup stack)
    98 	//prepare arrays for storing the filter settings to configure ULogger (and push any heap objects on the cleanup stack)
    99 	CArrayFixFlat<TUint8> *setPrimFilter = new (ELeave)CArrayFixFlat<TUint8>(256);
    99 	CArrayFixFlat<TUint8> *setPrimFilter = new (ELeave)CArrayFixFlat<TUint8>(256);
   100 	CleanupStack::PushL(setPrimFilter);
   100 	CleanupStack::PushL(setPrimFilter);
   101 	RArray<TUint32> setSecondFilter;
   101 	RArray<TUint32> setSecondFilter;
   137 		err=aLogger.DisableModuleUidFiltering();*/
   137 		err=aLogger.DisableModuleUidFiltering();*/
   138 	
   138 	
   139 	if(aGroupIdFilterMatch==1)
   139 	if(aGroupIdFilterMatch==1)
   140 		{
   140 		{
   141 		//if the user specifies that ULogger should have classifiaction filter settings which match the test trace points, then fill the filter arrays with the test trace point identifiers accordingly
   141 		//if the user specifies that ULogger should have classifiaction filter settings which match the test trace points, then fill the filter arrays with the test trace point identifiers accordingly
   142 		SetFilterL(setPrimFilter);		
   142 		SetFilter(setPrimFilter);		
   143 		}
   143 		}
   144 	else
   144 	else
   145 		{
   145 		{
   146 		//if the user specifies that ULogger should have classifciation filter settings which dont match the test trace points, then fill the filter arrays with the trace point identifiers which differ from the test trace point identifiers
   146 		//if the user specifies that ULogger should have classifciation filter settings which dont match the test trace points, then fill the filter arrays with the trace point identifiers which differ from the test trace point identifiers
   147 		setPrimFilter->AppendL((TGroupId)(KGroupId+1));
   147 		setPrimFilter->AppendL((TGroupId)(KGroupId+1));
   188 	return err;
   188 	return err;
   189 	}
   189 	}
   190 	
   190 	
   191 /** This user-side method sets the filter for OSTv2
   191 /** This user-side method sets the filter for OSTv2
   192  */
   192  */
   193 void CUptULogger::SetFilterL(CArrayFixFlat<TUint8>* aSetPrimFilter)
   193 void CUptULogger::SetFilter(CArrayFixFlat<TUint8>* aSetPrimFilter)
   194     {
   194     {
   195     aSetPrimFilter->AppendL(KGroupId);
   195     aSetPrimFilter->AppendL(KGroupId);
   196     }
   196     }
   197 
   197 
   198 /** This user-side method stops the passed ULogger session 
   198 /** This user-side method stops the passed ULogger session