| /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/xray/tests/unit/ |
| H A D | fdr_controller_test.cc | 84 uint64_t TSC = 2; in TEST_F() local 86 ASSERT_TRUE(C->functionEnter(FId, TSC++, CPU)); in TEST_F() 87 ASSERT_TRUE(C->functionExit(FId, TSC++, CPU)); in TEST_F() 88 ASSERT_TRUE(C->functionEnterArg(FId, TSC++, CPU, 1)); in TEST_F() 89 ASSERT_TRUE(C->functionTailExit(FId, TSC++, CPU)); in TEST_F() 143 uint64_t TSC = 1; in TEST_F() local 145 ASSERT_TRUE(C->functionEnter(1, TSC++, CPU)); in TEST_F() 146 ASSERT_TRUE(C->functionEnter(2, TSC++, CPU)); in TEST_F() 147 ASSERT_TRUE(C->functionExit(2, TSC++, CPU)); in TEST_F() 148 ASSERT_TRUE(C->functionExit(1, TSC += 1000, CPU)); in TEST_F() [all …]
|
| H A D | fdr_log_writer_test.cc | 98 uint64_t TSC = 1; in TEST() local 100 Writer.writeFunction(FDRLogWriter::FunctionRecordKind::Enter, 1, TSC++)); in TEST() 102 Writer.writeFunction(FDRLogWriter::FunctionRecordKind::Exit, 1, TSC++)); in TEST() 114 Writer.writeFunction(FDRLogWriter::FunctionRecordKind::Enter, 1, TSC++)); in TEST()
|
| H A D | test_helpers.h | 51 return ::testing::Matcher<decltype(arg.TSC)>(M).MatchAndExplain( 52 arg.TSC, result_listener);
|
| H A D | function_call_trie_test.cc | 32 uint64_t TSC = 1; in TEST() local 34 Trie.enterFunction(1, TSC++, CPU++); in TEST() 35 Trie.exitFunction(1, TSC++, CPU++); in TEST()
|
| H A D | test_helpers.cc | 48 << "; TSC = " << R.TSC << "; TId = " << R.TId << "; PId = " << R.PId in PrintTo()
|
| /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/xray/ |
| H A D | xray_fdr_controller.h | 147 PreambleResult recordPreamble(uint64_t TSC, in recordPreamble() argument 152 LatestTSC = TSC; in recordPreamble() 158 W.writeMetadata<MetadataRecord::RecordKinds::NewCPUId>(CPU, TSC); in recordPreamble() 164 if (UNLIKELY(LatestTSC > TSC || in recordPreamble() 165 TSC - LatestTSC > in recordPreamble() 170 LatestTSC = TSC; in recordPreamble() 175 W.writeMetadata<MetadataRecord::RecordKinds::TSCWrap>(TSC); in recordPreamble() 182 bool rewindRecords(int32_t FuncId, uint64_t TSC, in rewindRecords() argument 223 if ((TSC - RewindingTSC) >= CycleThreshold) { in rewindRecords() 245 bool functionEnter(int32_t FuncId, uint64_t TSC, in functionEnter() argument [all …]
|
| H A D | xray_fdr_logging.cc | 413 uint64_t TSC = 0; member 430 Result.TSC = __xray::readTSC(Result.CPU); in getTimestamp() 440 Result.TSC = TS.tv_sec * __xray::NanosecondsPerSecond + TS.tv_nsec; in getTimestamp() 499 auto &TSC = TC.TSC; in fdrLoggingHandleArg0() local 512 TLD.Controller->functionEnter(FuncId, TSC, CPU); in fdrLoggingHandleArg0() 515 TLD.Controller->functionExit(FuncId, TSC, CPU); in fdrLoggingHandleArg0() 518 TLD.Controller->functionTailExit(FuncId, TSC, CPU); in fdrLoggingHandleArg0() 529 auto &TSC = TC.TSC; in fdrLoggingHandleArg1() local 542 TLD.Controller->functionEnterArg(FuncId, TSC, CPU, Arg); in fdrLoggingHandleArg1() 545 TLD.Controller->functionExit(FuncId, TSC, CPU); in fdrLoggingHandleArg1() [all …]
|
| H A D | xray_basic_logging.cc | 53 uint64_t TSC; member 174 uint64_t TSC = ReadTSC(CPU); in InMemoryRawLog() local 189 E.TSC = TSC; in InMemoryRawLog() 218 StackTop.TSC < TSC) { in InMemoryRawLog() 219 auto Delta = TSC - StackTop.TSC; in InMemoryRawLog() 239 R.TSC = TSC; in InMemoryRawLog()
|
| H A D | xray_function_call_trie.h | 359 void enterFunction(const int32_t FId, uint64_t TSC, in enterFunction() argument 381 if (ShadowStack.AppendEmplace(TSC, NewRoot, CPU) == nullptr) { in enterFunction() 401 if (ShadowStack.AppendEmplace(TSC, Callee->NodePtr, CPU) == nullptr) in enterFunction() 413 if (ShadowStack.AppendEmplace(TSC, NewNode, CPU) == nullptr) in enterFunction() 418 void exitFunction(int32_t FId, uint64_t TSC, in exitFunction() argument 452 Top.EntryTSC > TSC in exitFunction() 453 ? (std::numeric_limits<uint64_t>::max() - Top.EntryTSC) + TSC in exitFunction() 454 : TSC - Top.EntryTSC; in exitFunction()
|
| H A D | xray_profiling.cc | 275 auto TSC = readTSC(CPU); in profilingHandleArg0() local 299 FCT->enterFunction(FuncId, TSC, CPU); in profilingHandleArg0() 303 FCT->exitFunction(FuncId, TSC, CPU); in profilingHandleArg0()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/XRay/ |
| H A D | FDRTraceExpander.cpp | 42 CurrentRecord.TSC = R.tsc(); in visit() 57 CurrentRecord.TSC = BaseTSC; in visit() 72 CurrentRecord.TSC = BaseTSC; in visit() 116 CurrentRecord.TSC = BaseTSC; in visit()
|
| H A D | Trace.cpp | 128 Record.TSC = Reader.getU64(&OffsetPtr); in loadNaiveFormatLog() 373 R.FuncId, R.TSC, R.TId, in loadYAMLLog() 473 return L.TSC < R.TSC; in loadTrace()
|
| H A D | Profile.cpp | 345 TSD.push_back({E.TSC, E.FuncId}); in profileFromTrace() 357 auto FunctionLocalTime = AbsoluteDifference(Top.Timestamp, E.TSC); in profileFromTrace()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-xray/ |
| H A D | xray-stacks.cpp | 380 R.TSC); in accountRecord() 394 TS.emplace_back(N, R.TSC); in accountRecord() 398 TS.emplace_back(*I, R.TSC); in accountRecord() 432 std::max(E.second, R.TSC) - std::min(E.second, R.TSC)); in accountRecord() 436 std::max(Deepest.second, R.TSC) - std::min(Deepest.second, R.TSC)); in accountRecord() 439 std::max(Deepest.second, R.TSC) - std::min(Deepest.second, R.TSC)); in accountRecord()
|
| H A D | xray-account.cpp | 159 setMinMax(PerThreadMinMaxTSC[Record.TId], Record.TSC); in accountRecord() 160 setMinMax(PerCPUMinMaxTSC[Record.CPU], Record.TSC); in accountRecord() 163 CurrentMaxTSC = Record.TSC; in accountRecord() 165 if (Record.TSC < CurrentMaxTSC) in accountRecord() 178 ThreadStack.Stack.emplace_back(Record.FuncId, Record.TSC); in accountRecord() 192 recordLatency(Top.first, diff(Top.second, Record.TSC)); in accountRecord() 243 recordLatency(E.first, diff(E.second, Record.TSC)); in accountRecord() 490 Record.TSC, Record.TId, Record.PId) in __anona2b7686e0f02()
|
| H A D | xray-graph.cpp | 212 CurrentMaxTSC = Record.TSC; in accountRecord() 214 if (Record.TSC < CurrentMaxTSC) in accountRecord() 224 ThreadStack.push_back({Record.FuncId, Record.TSC}); in accountRecord() 244 TimestampT D = diff(ThreadStack.back().TSC, Record.TSC); in accountRecord() 255 uint64_t D = diff(ThreadStack.back().TSC, Record.TSC); in accountRecord()
|
| H A D | xray-converter.cpp | 88 R.TSC, R.TId, R.PId, R.CallArgs, R.Data}); in exportAsYAML() 143 Writer.write(R.TSC); in exportAsRAWv1() 288 double EventTimestampUs = double(1000000) / CycleFreq * double(R.TSC); in exportAsChromeTraceEventFormat()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/XRay/ |
| H A D | FDRRecords.h | 160 uint64_t TSC = 0; variable 171 CPUId(C), TSC(T) {} in NewCPUIDRecord() 175 uint64_t tsc() const { return TSC; } in tsc() 208 uint64_t TSC = 0; variable 221 Size(S), TSC(T), CPU(C), Data(std::move(D)) {} in CustomEventRecord() 224 uint64_t tsc() const { return TSC; } in tsc()
|
| H A D | YAMLXRayRecord.h | 37 uint64_t TSC; member 86 IO.mapRequired("tsc", Record.TSC);
|
| H A D | XRayRecord.h | 86 uint64_t TSC; member
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Interpreter/ |
| H A D | IncrementalExecutor.cpp | 28 IncrementalExecutor::IncrementalExecutor(llvm::orc::ThreadSafeContext &TSC, in IncrementalExecutor() argument 31 : TSCtx(TSC) { in IncrementalExecutor()
|
| H A D | IncrementalExecutor.h | 38 IncrementalExecutor(llvm::orc::ThreadSafeContext &TSC, llvm::Error &Err,
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/ |
| H A D | DeclSpec.cpp | 520 const char *DeclSpec::getSpecifierName(TSC C) { in getSpecifierName() 679 bool DeclSpec::SetStorageClassSpecThread(TSCS TSC, SourceLocation Loc, in SetStorageClassSpecThread() argument 683 return BadSpecifier(TSC, (TSCS)ThreadStorageClassSpec, PrevSpec, DiagID); in SetStorageClassSpecThread() 685 ThreadStorageClassSpec = TSC; in SetStorageClassSpecThread() 710 bool DeclSpec::SetTypeSpecComplex(TSC C, SourceLocation Loc, in SetTypeSpecComplex() 714 return BadSpecifier(C, (TSC)TypeSpecComplex, PrevSpec, DiagID); in SetTypeSpecComplex() 1384 if (DeclSpec::TSCS TSC = getThreadStorageClassSpec()) { in Finish() local 1386 SpecName += getSpecifierName(TSC); in Finish()
|
| /netbsd-src/sys/external/bsd/compiler_rt/dist/include/xray/ |
| H A D | xray_records.h | 93 uint64_t TSC = 0; member
|
| /netbsd-src/sys/external/mit/xen-include-public/dist/xen/include/public/arch-x86/ |
| H A D | cpufeatureset.h | 97 XEN_CPUFEATURE(TSC, 0*32+ 4) /*A Time Stamp Counter */
|