Home
last modified time | relevance | path

Searched refs:TSC (Results 1 – 25 of 37) sorted by relevance

12

/openbsd-src/gnu/llvm/compiler-rt/lib/xray/tests/unit/
H A Dfdr_controller_test.cpp83 uint64_t TSC = 2; in TEST_F() local
85 ASSERT_TRUE(C->functionEnter(FId, TSC++, CPU)); in TEST_F()
86 ASSERT_TRUE(C->functionExit(FId, TSC++, CPU)); in TEST_F()
87 ASSERT_TRUE(C->functionEnterArg(FId, TSC++, CPU, 1)); in TEST_F()
88 ASSERT_TRUE(C->functionTailExit(FId, TSC++, CPU)); in TEST_F()
142 uint64_t TSC = 1; in TEST_F() local
144 ASSERT_TRUE(C->functionEnter(1, TSC++, CPU)); in TEST_F()
145 ASSERT_TRUE(C->functionEnter(2, TSC++, CPU)); in TEST_F()
146 ASSERT_TRUE(C->functionExit(2, TSC++, CPU)); in TEST_F()
147 ASSERT_TRUE(C->functionExit(1, TSC += 1000, CPU)); in TEST_F()
[all …]
H A Dfdr_log_writer_test.cpp97 uint64_t TSC = 1; in TEST() local
99 Writer.writeFunction(FDRLogWriter::FunctionRecordKind::Enter, 1, TSC++)); in TEST()
101 Writer.writeFunction(FDRLogWriter::FunctionRecordKind::Exit, 1, TSC++)); in TEST()
113 Writer.writeFunction(FDRLogWriter::FunctionRecordKind::Enter, 1, TSC++)); in TEST()
H A Dtest_helpers.h50 return ::testing::Matcher<decltype(arg.TSC)>(M).MatchAndExplain(
51 arg.TSC, result_listener);
H A Dfunction_call_trie_test.cpp31 uint64_t TSC = 1; in TEST() local
33 Trie.enterFunction(1, TSC++, CPU++); in TEST()
34 Trie.exitFunction(1, TSC++, CPU++); in TEST()
/openbsd-src/gnu/llvm/compiler-rt/lib/xray/
H A Dxray_fdr_controller.h146 PreambleResult recordPreamble(uint64_t TSC, in recordPreamble() argument
151 LatestTSC = TSC; in recordPreamble()
157 W.writeMetadata<MetadataRecord::RecordKinds::NewCPUId>(CPU, TSC); in recordPreamble()
163 if (UNLIKELY(LatestTSC > TSC || in recordPreamble()
164 TSC - LatestTSC > in recordPreamble()
169 LatestTSC = TSC; in recordPreamble()
174 W.writeMetadata<MetadataRecord::RecordKinds::TSCWrap>(TSC); in recordPreamble()
181 bool rewindRecords(int32_t FuncId, uint64_t TSC, in rewindRecords() argument
222 if ((TSC - RewindingTSC) >= CycleThreshold) { in rewindRecords()
244 bool functionEnter(int32_t FuncId, uint64_t TSC, in functionEnter() argument
[all …]
H A Dxray_fdr_logging.cpp411 uint64_t TSC = 0; member
428 Result.TSC = __xray::readTSC(Result.CPU); in getTimestamp()
438 Result.TSC = TS.tv_sec * __xray::NanosecondsPerSecond + TS.tv_nsec; in getTimestamp()
497 auto &TSC = TC.TSC; in fdrLoggingHandleArg0() local
510 TLD.Controller->functionEnter(FuncId, TSC, CPU); in fdrLoggingHandleArg0()
513 TLD.Controller->functionExit(FuncId, TSC, CPU); in fdrLoggingHandleArg0()
516 TLD.Controller->functionTailExit(FuncId, TSC, CPU); in fdrLoggingHandleArg0()
527 auto &TSC = TC.TSC; in fdrLoggingHandleArg1() local
540 TLD.Controller->functionEnterArg(FuncId, TSC, CPU, Arg); in fdrLoggingHandleArg1()
543 TLD.Controller->functionExit(FuncId, TSC, CPU); in fdrLoggingHandleArg1()
[all …]
H A Dxray_basic_logging.cpp52 uint64_t TSC; member
173 uint64_t TSC = ReadTSC(CPU); in InMemoryRawLog() local
188 E.TSC = TSC; in InMemoryRawLog()
217 StackTop.TSC < TSC) { in InMemoryRawLog()
218 auto Delta = TSC - StackTop.TSC; in InMemoryRawLog()
238 R.TSC = TSC; in InMemoryRawLog()
H A Dxray_function_call_trie.h358 void enterFunction(const int32_t FId, uint64_t TSC, in enterFunction() argument
380 if (ShadowStack.AppendEmplace(TSC, NewRoot, CPU) == nullptr) { in enterFunction()
400 if (ShadowStack.AppendEmplace(TSC, Callee->NodePtr, CPU) == nullptr) in enterFunction()
412 if (ShadowStack.AppendEmplace(TSC, NewNode, CPU) == nullptr) in enterFunction()
417 void exitFunction(int32_t FId, uint64_t TSC, in exitFunction() argument
451 Top.EntryTSC > TSC in exitFunction()
452 ? (std::numeric_limits<uint64_t>::max() - Top.EntryTSC) + TSC in exitFunction()
453 : TSC - Top.EntryTSC; in exitFunction()
H A Dxray_profiling.cpp274 auto TSC = readTSC(CPU); in profilingHandleArg0() local
298 FCT->enterFunction(FuncId, TSC, CPU); in profilingHandleArg0()
302 FCT->exitFunction(FuncId, TSC, CPU); in profilingHandleArg0()
/openbsd-src/gnu/llvm/llvm/lib/XRay/
H A DFDRTraceExpander.cpp42 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 DTrace.cpp126 Record.TSC = Reader.getU64(&OffsetPtr); in loadNaiveFormatLog()
371 R.FuncId, R.TSC, R.TId, in loadYAMLLog()
471 return L.TSC < R.TSC; in loadTrace()
/openbsd-src/gnu/llvm/lldb/source/Plugins/Trace/intel-pt/
H A DDecodedThread.h63 using TSC = uint64_t;
68 TSC tsc;
86 TSC tsc;
235 void NotifyTsc(TSC tsc);
H A DTraceIntelPTOptions.td22 Desc<"Enable the use of TSC timestamps. This is supported on all "
32 "TSC timestamp and the current absolute instruction pointer. "
74 "option forces the capture of TSC timestamps (see --tsc). Also, "
100 Desc<"Enable the use of TSC timestamps. This is supported on all "
110 "TSC timestamp and the current absolute instruction pointer. "
H A DLibiptDecoder.cpp341 std::optional<DecodedThread::TSC> tsc_upper_bound) in PSBBlockDecoder()
375 std::optional<DecodedThread::TSC> tsc_upper_bound) { in Create()
471 Error ProcessPTEventTSC(DecodedThread::TSC tsc) { in ProcessPTEventTSC()
558 std::optional<DecodedThread::TSC> m_tsc_upper_bound;
H A DDecodedThread.cpp118 void DecodedThread::NotifyTsc(TSC tsc) { in NotifyTsc()
253 (sizeof(uint64_t) + sizeof(TSC)) * m_tscs.size() + in CalculateApproximateMemoryUsage()
/openbsd-src/gnu/llvm/llvm/tools/llvm-xray/
H A Dxray-stacks.cpp380 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 Dxray-account.cpp161 setMinMax(PerThreadMinMaxTSC[Record.TId], Record.TSC); in accountRecord()
162 setMinMax(PerCPUMinMaxTSC[Record.CPU], Record.TSC); in accountRecord()
165 CurrentMaxTSC = Record.TSC; in accountRecord()
167 if (Record.TSC < CurrentMaxTSC) in accountRecord()
180 ThreadStack.Stack.emplace_back(Record.FuncId, Record.TSC); in accountRecord()
194 recordLatency(Top.first, diff(Top.second, Record.TSC)); in accountRecord()
245 recordLatency(E.first, diff(E.second, Record.TSC)); in accountRecord()
492 Record.TSC, Record.TId, Record.PId) in __anonf550fb3a0f02()
H A Dxray-graph.cpp214 CurrentMaxTSC = Record.TSC; in accountRecord()
216 if (Record.TSC < CurrentMaxTSC) in accountRecord()
226 ThreadStack.push_back({Record.FuncId, Record.TSC}); in accountRecord()
247 TimestampT D = diff(ThreadStack.back().TSC, Record.TSC); in accountRecord()
258 uint64_t D = diff(ThreadStack.back().TSC, Record.TSC); in accountRecord()
/openbsd-src/gnu/llvm/llvm/include/llvm/XRay/
H A DFDRRecords.h160 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 DYAMLXRayRecord.h37 uint64_t TSC; member
86 IO.mapRequired("tsc", Record.TSC);
H A DXRayRecord.h86 uint64_t TSC; member
/openbsd-src/gnu/llvm/clang/lib/Interpreter/
H A DIncrementalExecutor.cpp31 IncrementalExecutor::IncrementalExecutor(llvm::orc::ThreadSafeContext &TSC, in IncrementalExecutor() argument
34 : TSCtx(TSC) { in IncrementalExecutor()
H A DIncrementalExecutor.h46 IncrementalExecutor(llvm::orc::ThreadSafeContext &TSC, llvm::Error &Err,
/openbsd-src/gnu/llvm/compiler-rt/include/xray/
H A Dxray_records.h92 uint64_t TSC = 0; member
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DDeclSpec.cpp524 const char *DeclSpec::getSpecifierName(TSC C) { in getSpecifierName()
688 bool DeclSpec::SetStorageClassSpecThread(TSCS TSC, SourceLocation Loc, in SetStorageClassSpecThread() argument
692 return BadSpecifier(TSC, (TSCS)ThreadStorageClassSpec, PrevSpec, DiagID); in SetStorageClassSpecThread()
694 ThreadStorageClassSpec = TSC; in SetStorageClassSpecThread()
719 bool DeclSpec::SetTypeSpecComplex(TSC C, SourceLocation Loc, in SetTypeSpecComplex()
723 return BadSpecifier(C, (TSC)TypeSpecComplex, PrevSpec, DiagID); in SetTypeSpecComplex()
1399 if (DeclSpec::TSCS TSC = getThreadStorageClassSpec()) { in Finish() local
1401 SpecName += getSpecifierName(TSC); in Finish()

12