--- a/kerneltest/e32utils/trace/btrace_analyse.cpp Thu Aug 19 11:14:22 2010 +0300
+++ b/kerneltest/e32utils/trace/btrace_analyse.cpp Tue Aug 31 16:34:26 2010 +0300
@@ -433,6 +433,7 @@
CASE_CAT_NAME(EProfiling);
CASE_CAT_NAME(ESymbianKernelSync);
CASE_CAT_NAME(EFlexibleMemModel);
+ CASE_CAT_NAME(EHSched);
CASE_CAT_NAME(ETest1);
CASE_CAT_NAME(ETest2);
default:
@@ -629,6 +630,12 @@
}
break;
+ case BTrace::EHSched:
+ switch((BTrace::THSched)aSubCategory)
+ {
+ CASE_CAT_NAME(ELbDone);
+ }
+ break;
}
return UnknownNames[aSubCategory];
}
@@ -1390,7 +1397,7 @@
{
case BTrace::ENanoThreadCreate:
CHECK_TRACE_DATA_WORDS(1);
- thread = Thread::FindOrCreate(aTrace,0);
+ Thread::FindOrCreate(aTrace,0);
break;
case BTrace::ENanoThreadDestroy:
@@ -1430,7 +1437,7 @@
CHECK_TRACE_DATA_WORDS(2);
if(aTrace.iData[0])
{
- thread = Thread::FindOrCreate(aTrace,0);
+ Thread::FindOrCreate(aTrace,0);
process = Process::Find(aTrace.iData[1]);
if(!process || (process->iNameLength && !process->IsName(aTrace.iData+2,aTrace.iDataSize-2*4)))
{
@@ -1450,13 +1457,13 @@
case BTrace::EThreadId:
CHECK_TRACE_DATA_WORDS(2);
thread = Thread::FindOrCreate(aTrace,0);
- process = Process::FindOrCreate(aTrace,1);
+ Process::FindOrCreate(aTrace,1);
thread->iId = aTrace.iData[2];
break;
case BTrace::EProcessCreate:
CHECK_TRACE_DATA_WORDS(1);
- process = Process::FindOrCreate(aTrace,0);
+ Process::FindOrCreate(aTrace,0);
break;
case BTrace::EProcessDestroy:
@@ -1887,7 +1894,7 @@
case BTrace::ECodeSegMapped:
CHECK_TRACE_DATA_WORDS(2);
- codeseg = CodeSeg::FindOrCreate(aTrace,0);
+ CodeSeg::FindOrCreate(aTrace,0);
Process::FindOrCreate(aTrace,1);
break;
@@ -2535,6 +2542,22 @@
printf("\n");
}
+
+void PreProcessHSched(TraceRecord& aTrace)
+ {
+ switch((BTrace::THSched)aTrace.iSubCategory)
+ {
+ case BTrace::ELbDone:
+ {
+ CHECK_TRACE_DATA_WORDS(2);
+ Thread::Find(aTrace, 0);
+ break;
+ }
+ }
+ }
+
+
+
//
// Trace processing
//
@@ -2724,6 +2747,8 @@
PreProcessProfiling(aTrace); break;
case BTrace::ESymbianKernelSync:
PreProcessSymbianKernelSync(aTrace); break;
+ case BTrace::EHSched:
+ PreProcessHSched(aTrace); break;
default:
break;
}