Lines Matching refs:p

76             Instrument* p = sListHead;  in AddToList()  local
77 while( p->mNext ) in AddToList()
79 p = p->mNext; in AddToList()
81 p->mNext = pInfo; in AddToList()
90 Instrument* p = sListHead; in DeleteFromList() local
92 while(p) in DeleteFromList()
94 if ( p == pInfo ) in DeleteFromList()
98 prev->mNext = p->mNext; in DeleteFromList()
102 sListHead = p->mNext; in DeleteFromList()
106 prev = p; in DeleteFromList()
107 p++; in DeleteFromList()
114 Instrument* p = sListHead; in SearchInfo() local
115 while( p && p->mThreadId != threadId ) in SearchInfo()
117 p = p->mNext; in SearchInfo()
119 return p; in SearchInfo()
123 bool Instrument::IsBottom_BufferPtr( void* p ) in IsBottom_BufferPtr() argument
125 p = reinterpret_cast<u8*>(p) + GetRecordSize(); in IsBottom_BufferPtr()
126 return ( p >= mBufferBottom )? true: false; in IsBottom_BufferPtr()
129 void* Instrument::Inc_BufferPtr( void* p ) in Inc_BufferPtr() argument
131 p = reinterpret_cast<u8*>(p) + GetRecordSize(); in Inc_BufferPtr()
132 if ( p >= mBufferBottom ) in Inc_BufferPtr()
134 p = mBufferTop; in Inc_BufferPtr()
136 return p; in Inc_BufferPtr()
139 void* Instrument::Dec_BufferPtr( void* p ) in Dec_BufferPtr() argument
141 p = reinterpret_cast<u8*>(p) - GetRecordSize(); in Dec_BufferPtr()
142 if ( p < mBufferTop ) in Dec_BufferPtr()
144 p = reinterpret_cast<u8*>(mBufferBottom) - GetRecordSize(); in Dec_BufferPtr()
146 return p; in Dec_BufferPtr()
233 RecordForLogWithTick* p = reinterpret_cast<RecordForLogWithTick*>(mBufferPtr); in EntryFunc() local
234 p->mAddress = reinterpret_cast<u32>(func_address) & 0xfffffffe; in EntryFunc()
235 p->mCall = reinterpret_cast<u32>(call_site); in EntryFunc()
236 p->mTick = nn::os::Tick::GetSystemCurrent(); in EntryFunc()
241 RecordForLog* p = reinterpret_cast<RecordForLog*>(mBufferPtr); in EntryFunc() local
242 p->mAddress = reinterpret_cast<u32>(func_address); in EntryFunc()
243 p->mCall = reinterpret_cast<u32>(call_site); in EntryFunc()
283 RecordForLogWithTick* p = reinterpret_cast<RecordForLogWithTick*>(mBufferPtr); in ExitFunc() local
284 p->mAddress = (reinterpret_cast<u32>(func_address) & 0xfffffffe) | 0x1; in ExitFunc()
285 p->mCall = reinterpret_cast<u32>(call_site); in ExitFunc()
286 p->mTick = nn::os::Tick::GetSystemCurrent(); in ExitFunc()
335 RecordForLogWithTick* p = reinterpret_cast<RecordForLogWithTick*>(mBufferOrigin); in Dump() local
337 while( p != mBufferPtr ) in Dump()
339 if ( p->mAddress & 1 ) in Dump()
341 …ForInstrument("func: %08x out tick: %llx\n", p->mAddress & 0xfffffffe, p->mTick); in Dump()
345 …orInstrument("func: %08x in caller: %08x tick: %llx\n", p->mAddress & 0xfffffffe, p->mCall, p->m… in Dump()
347 if ( ! IsRingBuffer() && IsBottom_BufferPtr(p) ) in Dump()
351 p = reinterpret_cast<RecordForLogWithTick*>(Inc_BufferPtr(p)); in Dump()
357 RecordForLog* p = reinterpret_cast<RecordForLog*>(mBufferOrigin); in Dump() local
359 while( p != mBufferPtr ) in Dump()
361 sLogFuncForInstrument("func: %08x caller: %08x\n", p->mAddress, p->mCall); in Dump()
362 if ( ! IsRingBuffer() && IsBottom_BufferPtr(p) ) in Dump()
366 p = reinterpret_cast<RecordForLog*>(Inc_BufferPtr(p)); in Dump()
422 StatisticsRecord* p = mBuffer; in Collect() local
423 while( p<mBufferBottom ) in Collect()
425 if ( (pRecord->mAddress & 0xfffffffe) == p->mAddress ) in Collect()
428 if ( p->mTickStart ) in Collect()
430 p->mTickSum += (pRecord->mTick - p->mTickStart); in Collect()
431 p->mTickStart = 0; in Collect()
432 p->mTickCount++; in Collect()
436 p++; in Collect()
445 StatisticsRecord* p = mBuffer; in Collect() local
446 while( p<mBufferBottom ) in Collect()
448 if ( ! p->mAddress && ! pBlank ) in Collect()
450 pBlank = p; in Collect()
453 else if ( pRecord->mAddress == p->mAddress ) in Collect()
455 p->mEntryCount++; in Collect()
456 p->mTickStart = pRecord->mTick; in Collect()
460 p++; in Collect()
504 StatisticsRecord* p = mBuffer; in Dump() local
505 if ( ! p ) in Dump()
509 while( p<mBufferBottom ) in Dump()
511 if ( p->mAddress ) in Dump()
513 … f32 sumMicroSec = p->mTickSum / (nn::os::Tick::TICKS_PER_SECOND / (1000.f * 1000.f)); in Dump()
514 u32 ave = p->mTickSum / p->mTickCount; in Dump()
520 p->mAddress, p->mEntryCount, p->mTickCount, in Dump()
529 p->mAddress, p->mEntryCount, p->mTickCount, in Dump()
533 p++; in Dump()
540 StatisticsRecord* p = mBuffer; in Clear() local
541 if ( ! p ) in Clear()
545 while( p<mBufferBottom ) in Clear()
547 p->mAddress = NULL; in Clear()
548 p->mEntryCount = 0; in Clear()
549 p->mTickCount = 0; in Clear()
550 p->mTickSum = 0; in Clear()
551 p->mTickStart = 0; in Clear()
552 p++; in Clear()