Lines Matching refs:TraceIt

235 bool PerfReader::extractLBRStack(TraceStream &TraceIt,  in extractLBRStack()  argument
243 TraceIt.getCurrentLine().split(Records, " "); in extractLBRStack()
295 TraceIt.advance(); in extractLBRStack()
299 bool PerfReader::extractCallstack(TraceStream &TraceIt, in extractCallstack() argument
309 while (!TraceIt.isAtEoF() && !TraceIt.getCurrentLine().startswith(" 0x")) { in extractCallstack()
310 StringRef FrameStr = TraceIt.getCurrentLine().ltrim(); in extractCallstack()
314 TraceIt.advance(); in extractCallstack()
317 TraceIt.advance(); in extractCallstack()
345 while (!TraceIt.isAtEoF() && !TraceIt.getCurrentLine().startswith(" 0x")) { in extractCallstack()
346 TraceIt.advance(); in extractCallstack()
359 void PerfReader::parseHybridSample(TraceStream &TraceIt) { in parseHybridSample() argument
372 if (!extractCallstack(TraceIt, Sample.CallStack)) { in parseHybridSample()
374 if (!TraceIt.isAtEoF() && TraceIt.getCurrentLine().startswith(" 0x")) in parseHybridSample()
375 TraceIt.advance(); in parseHybridSample()
381 if (!TraceIt.isAtEoF() && TraceIt.getCurrentLine().startswith(" 0x")) { in parseHybridSample()
383 if (extractLBRStack(TraceIt, Sample.LBRStack, Sample.Binary)) { in parseHybridSample()
396 void PerfReader::parseMMap2Event(TraceStream &TraceIt) { in parseMMap2Event() argument
421 bool R = RegMmap2.match(TraceIt.getCurrentLine(), &Fields); in parseMMap2Event()
424 Twine(TraceIt.getLineNumber()).str() + ": " + in parseMMap2Event()
425 TraceIt.getCurrentLine().str() + " \n"; in parseMMap2Event()
439 TraceIt.advance(); in parseMMap2Event()
442 void PerfReader::parseEventOrSample(TraceStream &TraceIt) { in parseEventOrSample() argument
443 if (TraceIt.getCurrentLine().startswith("PERF_RECORD_MMAP2")) in parseEventOrSample()
444 parseMMap2Event(TraceIt); in parseEventOrSample()
446 parseHybridSample(TraceIt); in parseEventOrSample()
449 TraceIt.advance(); in parseEventOrSample()
455 TraceStream TraceIt(Filename); in parseAndAggregateTrace() local
456 while (!TraceIt.isAtEoF()) in parseAndAggregateTrace()
457 parseEventOrSample(TraceIt); in parseAndAggregateTrace()