Searched refs:TSC (Results 1 - 25 of 27) sorted by relevance

12

/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_fdr_controller.h146 PreambleResult recordPreamble(uint64_t TSC,
149 // We update our internal tracking state for the Latest TSC and CPU we've
151 LatestTSC = TSC;
157 W.writeMetadata<MetadataRecord::RecordKinds::NewCPUId>(CPU, TSC);
163 if (UNLIKELY(LatestTSC > TSC ||
164 TSC - LatestTSC >
166 // Either the TSC has wrapped around from the last TSC we've seen or the
169 LatestTSC = TSC;
174 W.writeMetadata<MetadataRecord::RecordKinds::TSCWrap>(TSC);
[all...]
H A Dxray_fdr_logging.cpp157 // metadata records for TSC wraparound and CPU migration).
412 uint64_t TSC = 0; member in struct:__xray::TSCAndCPU
417 // We want to get the TSC as early as possible, so that we can check whether
429 Result.TSC = __xray::readTSC(Result.CPU);
439 Result.TSC = TS.tv_sec * __xray::NanosecondsPerSecond + TS.tv_nsec;
498 auto &TSC = TC.TSC; variable
511 TLD.Controller->functionEnter(FuncId, TSC, CPU);
514 TLD.Controller->functionExit(FuncId, TSC, CPU);
517 TLD.Controller->functionTailExit(FuncId, TSC, CP
528 auto &TSC = TC.TSC; variable
558 auto &TSC = TC.TSC; variable
588 auto &TSC = TC.TSC; variable
[all...]
H A Dxray_basic_logging.cpp45 // We use elements of this type to record the entry TSC of every function ID we
52 uint64_t TSC; variable
173 uint64_t TSC = ReadTSC(CPU); variable
182 // When we encounter an entry event, we keep track of the TSC and the CPU,
188 E.TSC = TSC;
217 StackTop.TSC < TSC) {
218 auto Delta = TSC - StackTop.TSC;
[all...]
H A Dxray_function_call_trie.h115 uint64_t CumulativeLocalTime; // Typically in TSC deltas, not wall-time.
358 void enterFunction(const int32_t FId, uint64_t TSC,
380 if (ShadowStack.AppendEmplace(TSC, NewRoot, CPU) == nullptr) {
400 if (ShadowStack.AppendEmplace(TSC, Callee->NodePtr, CPU) == nullptr)
412 if (ShadowStack.AppendEmplace(TSC, NewNode, CPU) == nullptr)
417 void exitFunction(int32_t FId, uint64_t TSC,
437 // We may encounter overflow on the TSC we're provided, which may end up
438 // being less than the TSC when we first entered the function.
441 // we've overflowed (TSC < Top.EntryTSC) and then account the difference
442 // between the entry TSC an
[all...]
H A Dxray_profiling.cpp274 auto TSC = readTSC(CPU); variable
298 FCT->enterFunction(FuncId, TSC, CPU);
302 FCT->exitFunction(FuncId, TSC, CPU);
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/XRay/
H A DXRayRecord.h35 /// Whether the CPU that produced the timestamp counters (TSC) move at a
39 /// Whether the CPU that produced the timestamp counters (TSC) do not stop.
43 /// counter (TSC) values. Useful for estimating the amount of time that
85 /// Get the full 8 bytes of the TSC when we get the log record.
86 uint64_t TSC; member in struct:llvm::xray::XRayRecord
H A DYAMLXRayRecord.h37 uint64_t TSC; member in struct:llvm::xray::YAMLXRayRecord
86 IO.mapRequired("tsc", Record.TSC);
H A DFDRRecords.h160 uint64_t TSC = 0; member in class:llvm::xray::NewCPUIDRecord
171 CPUId(C), TSC(T) {}
175 uint64_t tsc() const { return TSC; }
208 uint64_t TSC = 0; member in class:llvm::xray::CustomEventRecord
221 Size(S), TSC(T), CPU(C), Data(std::move(D)) {}
224 uint64_t tsc() const { return TSC; }
/freebsd-11-stable/contrib/llvm-project/llvm/lib/XRay/
H A DFDRTraceExpander.cpp42 CurrentRecord.TSC = R.tsc();
57 CurrentRecord.TSC = BaseTSC;
72 CurrentRecord.TSC = BaseTSC;
116 CurrentRecord.TSC = BaseTSC;
H A DTrace.cpp128 Record.TSC = Reader.getU64(&OffsetPtr);
132 "Failed reading TSC field at offset %" PRId64 ".", OffsetPtr);
237 /// NewCPUId: 16 byte metadata record with CPUId and a 64 bit TSC reading.
240 /// TSCWrap: 16 byte metadata record with a full 64 bit TSC reading.
241 /// FunctionRecord: 8 byte record with FunctionId, entry/exit, and TSC delta.
263 /// CustomEventRecord and TypedEventRecord now use TSC delta encoding similar to
373 R.FuncId, R.TSC, R.TId,
472 return L.TSC < R.TSC;
H A DProfile.cpp345 TSD.push_back({E.TSC, E.FuncId});
357 auto FunctionLocalTime = AbsoluteDifference(Top.Timestamp, E.TSC);
H A DRecordInitializer.cpp74 R.TSC = E.getU64(&OffsetPtr);
77 "Cannot read CPU TSC at offset %" PRId64 ".",
89 "Invalid offset for a new TSC wrap record (%" PRId64 ").", OffsetPtr);
96 "Cannot read TSC wrap record at offset %" PRId64 ".", OffsetPtr);
125 R.TSC = E.getU64(&OffsetPtr);
129 "Cannot read a custom event TSC field at offset %" PRId64 ".",
203 "Cannot read a custom event record TSC delta field at offset "
267 "Cannot read a typed event record TSC delta field at offset "
425 "Failed reading TSC delta from offset %" PRId64 ".", OffsetPtr);
/freebsd-11-stable/contrib/llvm-project/compiler-rt/include/xray/
H A Dxray_records.h51 // The frequency by which TSC increases per-second.
91 // Get the full 8 bytes of the TSC when we get the log record.
92 uint64_t TSC = 0; variable
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-xray/
H A Dxray-stacks.cpp371 // When we encounter a new function entry, we want to record the TSC for
378 R.TSC);
392 TS.emplace_back(N, R.TSC);
395 // instead, add it to the stack associated with the TSC.
396 TS.emplace_back(*I, R.TSC);
430 std::max(E.second, R.TSC) - std::min(E.second, R.TSC));
434 std::max(Deepest.second, R.TSC) - std::min(Deepest.second, R.TSC));
437 std::max(Deepest.second, R.TSC)
[all...]
H A Dxray-account.cpp130 setMinMax(PerThreadMinMaxTSC[Record.TId], Record.TSC);
131 setMinMax(PerCPUMinMaxTSC[Record.CPU], Record.TSC);
134 CurrentMaxTSC = Record.TSC;
136 if (Record.TSC < CurrentMaxTSC)
147 ThreadStack.emplace_back(Record.FuncId, Record.TSC);
157 recordLatency(Top.first, diff(Top.second, Record.TSC));
204 recordLatency(E.first, diff(E.second, Record.TSC));
444 Record.TSC, Record.TId, Record.PId)
H A Dxray-graph.cpp168 // If the record is an ENTER record it pushes the FuncID and TSC onto a
188 CurrentMaxTSC = Record.TSC;
190 if (Record.TSC < CurrentMaxTSC)
200 ThreadStack.push_back({Record.FuncId, Record.TSC});
220 TimestampT D = diff(ThreadStack.back().TSC, Record.TSC);
231 uint64_t D = diff(ThreadStack.back().TSC, Record.TSC);
310 // Normalises the statistics in the graph for a given TSC frequency.
H A Dxray-converter.cpp88 R.TSC, R.TId, R.PId, R.CallArgs, R.Data});
143 Writer.write(R.TSC);
287 // TSC / CyclesPerMicro == TSC * 10^6 / CycleHertz == MicroTimestamp
288 // Could lose some precision here by converting the TSC to a double to
293 double EventTimestampUs = double(1000000) / CycleFreq * double(R.TSC);
H A Dxray-graph.h76 uint64_t TSC; member in struct:llvm::xray::GraphRenderer::FunctionAttr
/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/
H A DDeclSpec.cpp501 const char *DeclSpec::getSpecifierName(TSC C) {
651 bool DeclSpec::SetStorageClassSpecThread(TSCS TSC, SourceLocation Loc, argument
655 return BadSpecifier(TSC, (TSCS)ThreadStorageClassSpec, PrevSpec, DiagID);
657 ThreadStorageClassSpec = TSC;
682 bool DeclSpec::SetTypeSpecComplex(TSC C, SourceLocation Loc,
686 return BadSpecifier(C, (TSC)TypeSpecComplex, PrevSpec, DiagID);
1319 if (DeclSpec::TSCS TSC = getThreadStorageClassSpec()) {
1321 SpecName += getSpecifierName(TSC);
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DDeclSpec.h258 enum TSC { enum in class:clang::DeclSpec
343 /*TSC*/unsigned TypeSpecComplex : 2;
477 TSC getTypeSpecComplex() const { return (TSC)TypeSpecComplex; }
541 static const char *getSpecifierName(DeclSpec::TSC C);
657 bool SetStorageClassSpecThread(TSCS TSC, SourceLocation Loc,
661 bool SetTypeSpecComplex(TSC C, SourceLocation Loc, const char *&PrevSpec,
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DTargetInfo.cpp8835 mutable TypeStringCache TSC;
9001 CodeGen::CodeGenModule &CGM, TypeStringCache &TSC);
9007 if (getTypeString(Enc, D, CGM, TSC)) {
9046 TypeStringCache &TSC);
9054 TypeStringCache &TSC) {
9066 if (!appendType(Enc, Field->getType(), CGM, TSC))
9081 TypeStringCache &TSC, const IdentifierInfo *ID) {
9083 StringRef TypeString = TSC.lookupStr(ID);
9107 TSC.addIncomplete(ID, std::move(StubEnc));
9108 if (!extractFieldType(FE, RD, CGM, TSC)) {
9051 extractFieldType(SmallVectorImpl<FieldEncoding> &FE, const RecordDecl *RD, const CodeGen::CodeGenModule &CGM, TypeStringCache &TSC) argument
9079 appendRecordType(SmallStringEnc &Enc, const RecordType *RT, const CodeGen::CodeGenModule &CGM, TypeStringCache &TSC, const IdentifierInfo *ID) argument
9131 appendEnumType(SmallStringEnc &Enc, const EnumType *ET, TypeStringCache &TSC, const IdentifierInfo *ID) argument
9248 appendPointerType(SmallStringEnc &Enc, const PointerType *PT, const CodeGen::CodeGenModule &CGM, TypeStringCache &TSC) argument
9259 appendArrayType(SmallStringEnc &Enc, QualType QT, const ArrayType *AT, const CodeGen::CodeGenModule &CGM, TypeStringCache &TSC, StringRef NoSizeEnc) argument
9281 appendFunctionType(SmallStringEnc &Enc, const FunctionType *FT, const CodeGen::CodeGenModule &CGM, TypeStringCache &TSC) argument
9315 appendType(SmallStringEnc &Enc, QualType QType, const CodeGen::CodeGenModule &CGM, TypeStringCache &TSC) argument
9349 getTypeString(SmallStringEnc &Enc, const Decl *D, CodeGen::CodeGenModule &CGM, TypeStringCache &TSC) argument
[all...]
/freebsd-11-stable/sys/sys/
H A Dpmc.h135 __PMC_CLASS(TSC, 0x00, "CPU Timestamp counter") \
729 * modes on PMCs that are read-only (e.g., the x86 TSC), we
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/
H A DDecl.h1034 void setTSCSpec(ThreadStorageClassSpecifier TSC) {
1035 VarDeclBits.TSCSpec = TSC;
1036 assert(VarDeclBits.TSCSpec == TSC && "truncation");
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/
H A DAutoUpgrade.cpp3661 Value *TSC = Builder.CreateExtractValue(NewCall, 0); local
3668 CI->replaceAllUsesWith(TSC);
/freebsd-11-stable/sys/dev/hwpmc/
H A Dpmc_events.h4914 __PMC_EV(TSC, TSC)
7214 * 0x1000 0x0001 TSC
7234 __PMC_EV_BLOCK(TSC, 0x01000) \

Completed in 224 milliseconds

12