/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/xray/ |
H A D | xray_basic_logging.h | 31 void basicLoggingHandleArg0RealTSC(int32_t FuncId, XRayEntryType Entry); 32 void basicLoggingHandleArg0EmulateTSC(int32_t FuncId, XRayEntryType Entry); 33 void basicLoggingHandleArg1RealTSC(int32_t FuncId, XRayEntryType Entry, 35 void basicLoggingHandleArg1EmulateTSC(int32_t FuncId, XRayEntryType Entry,
|
H A D | xray_fdr_logging.h | 31 void fdrLoggingHandleArg0(int32_t FuncId, XRayEntryType Entry); 32 void fdrLoggingHandleArg1(int32_t FuncId, XRayEntryType Entry, uint64_t Arg1);
|
H A D | xray_trampoline_powerpc64.cpp | 9 void CallXRayPatchedFunction(int32_t FuncId, XRayEntryType Type) { argument 12 (*fptr)(FuncId, Type);
|
H A D | xray_interface_internal.h | 59 bool patchFunctionEntry(bool Enable, uint32_t FuncId, const XRaySledEntry &Sled, 61 bool patchFunctionExit(bool Enable, uint32_t FuncId, const XRaySledEntry &Sled); 62 bool patchFunctionTailExit(bool Enable, uint32_t FuncId, 64 bool patchCustomEvent(bool Enable, uint32_t FuncId, const XRaySledEntry &Sled); 65 bool patchTypedEvent(bool Enable, uint32_t FuncId, const XRaySledEntry &Sled);
|
H A D | xray_powerpc64.cpp | 52 bool patchFunctionEntry(const bool Enable, uint32_t FuncId, 56 // lis 0, FuncId[16..32] 57 // li 0, FuncId[0..15] 59 (0x3c000000ull + (FuncId >> 16)) + 60 ((0x60000000ull + (FuncId & 0xffff)) << 32); 70 bool patchFunctionExit(const bool Enable, uint32_t FuncId, 73 // lis 0, FuncId[16..32] 74 // li 0, FuncId[0..15] 76 (0x3c000000ull + (FuncId >> 16)) + 77 ((0x60000000ull + (FuncId [all...] |
H A D | xray_AArch64.cpp | 34 inline static bool patchSled(const bool Enable, const uint32_t FuncId, 73 *CurAddress = FuncId; 92 bool patchFunctionEntry(const bool Enable, const uint32_t FuncId, 95 return patchSled(Enable, FuncId, Sled, Trampoline); 98 bool patchFunctionExit(const bool Enable, const uint32_t FuncId, 100 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); 103 bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId, 105 return patchSled(Enable, FuncId, Sled, __xray_FunctionTailExit); 108 bool patchCustomEvent(const bool Enable, const uint32_t FuncId, 114 bool patchTypedEvent(const bool Enable, const uint32_t FuncId, [all...] |
H A D | xray_interface.cpp | 150 int32_t FuncId) XRAY_NEVER_INSTRUMENT { 154 Success = patchFunctionEntry(Enable, FuncId, Sled, __xray_FunctionEntry); 157 Success = patchFunctionExit(Enable, FuncId, Sled); 160 Success = patchFunctionTailExit(Enable, FuncId, Sled); 163 Success = patchFunctionEntry(Enable, FuncId, Sled, __xray_ArgLoggerEntry); 166 Success = patchCustomEvent(Enable, FuncId, Sled); 169 Success = patchTypedEvent(Enable, FuncId, Sled); 178 XRayPatchingStatus patchFunction(int32_t FuncId, 200 // FuncId must be a positive number, less than the number of functions 202 if (FuncId < [all...] |
H A D | xray_arm.cpp | 76 inline static bool patchSled(const bool Enable, const uint32_t FuncId, 109 write32bitLoadR0(CurAddress, reinterpret_cast<uint32_t>(FuncId)); 129 bool patchFunctionEntry(const bool Enable, const uint32_t FuncId, 132 return patchSled(Enable, FuncId, Sled, Trampoline); 135 bool patchFunctionExit(const bool Enable, const uint32_t FuncId, 137 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); 140 bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId, 142 return patchSled(Enable, FuncId, Sled, __xray_FunctionTailExit); 145 bool patchCustomEvent(const bool Enable, const uint32_t FuncId, 151 bool patchTypedEvent(const bool Enable, const uint32_t FuncId, [all...] |
H A D | xray_mips.cpp | 52 inline static bool patchSled(const bool Enable, const uint32_t FuncId, 101 uint32_t LoFunctionID = FuncId & 0xffff; 102 uint32_t HiFunctionID = (FuncId >> 16) & 0xffff; 136 bool patchFunctionEntry(const bool Enable, const uint32_t FuncId, 139 return patchSled(Enable, FuncId, Sled, Trampoline); 142 bool patchFunctionExit(const bool Enable, const uint32_t FuncId, 144 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); 147 bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId, 151 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); 154 bool patchCustomEvent(const bool Enable, const uint32_t FuncId, [all...] |
H A D | xray_fdr_controller.h | 51 constexpr int32_t mask(int32_t FuncId) const XRAY_NEVER_INSTRUMENT { 52 return FuncId & ((1 << 29) - 1); 181 bool rewindRecords(int32_t FuncId, uint64_t TSC, 198 DCHECK_EQ(F.FuncId, FuncId & ~(0x0F << 28)); 244 bool functionEnter(int32_t FuncId, uint64_t TSC, 265 mask(FuncId), Delta); 268 bool functionTailExit(int32_t FuncId, uint64_t TSC, 283 return rewindRecords(FuncId, TSC, CPU); 290 mask(FuncId), Delt [all...] |
H A D | xray_basic_logging.cpp | 48 int32_t FuncId; variable 158 void InMemoryRawLog(int32_t FuncId, XRayEntryType Type, 185 E.FuncId = FuncId; 216 if (StackTop.FuncId == FuncId && StackTop.CPU == CPU && 242 R.FuncId = FuncId; 255 void InMemoryRawLogWithArg(int32_t FuncId, XRayEntryType Type, uint64_t Arg1, 277 InMemoryRawLog(FuncId, Typ [all...] |
H A D | xray_mips64.cpp | 53 inline static bool patchSled(const bool Enable, const uint32_t FuncId, 101 uint32_t LoFunctionID = FuncId & 0xffff; 102 uint32_t HiFunctionID = (FuncId >> 16) & 0xffff; 145 bool patchFunctionEntry(const bool Enable, const uint32_t FuncId, 148 return patchSled(Enable, FuncId, Sled, Trampoline); 151 bool patchFunctionExit(const bool Enable, const uint32_t FuncId, 153 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); 156 bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId, 160 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); 163 bool patchCustomEvent(const bool Enable, const uint32_t FuncId, [all...] |
H A D | xray_fdr_log_records.h | 61 int FuncId : 28;
|
H A D | xray_x86_64.cpp | 130 bool patchFunctionEntry(const bool Enable, const uint32_t FuncId, 162 *reinterpret_cast<uint32_t *>(Sled.Address + 2) = FuncId; 177 bool patchFunctionExit(const bool Enable, const uint32_t FuncId, 207 *reinterpret_cast<uint32_t *>(Sled.Address + 2) = FuncId; 222 bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId, 235 *reinterpret_cast<uint32_t *>(Sled.Address + 2) = FuncId; 250 bool patchCustomEvent(const bool Enable, const uint32_t FuncId, 297 bool patchTypedEvent(const bool Enable, const uint32_t FuncId,
|
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-xray/ |
H A D | func-id-helper.cpp | 20 std::string FuncIdConversionHelper::SymbolOrNumber(int32_t FuncId) const { 21 auto CacheIt = CachedNames.find(FuncId); 26 auto It = FunctionAddresses.find(FuncId); 28 F << "#" << FuncId; local 49 CachedNames[FuncId] = S; 53 std::string FuncIdConversionHelper::FileLineAndColumn(int32_t FuncId) const { 54 auto It = FunctionAddresses.find(FuncId);
|
H A D | trie-node.h | 32 int32_t FuncId; member in struct:TrieNode 56 assert(Left.FuncId == Right.FuncId); 58 Left.FuncId, NewParent, {}, MergeFn(Left.ExtraData, Right.ExtraData)}); 65 LeftCalleesByFuncId[Callee->FuncId] = Callee; 73 auto iter = LeftCalleesByFuncId.find(Callee->FuncId);
|
H A D | xray-converter.cpp | 85 Trace.Records.push_back({R.RecordType, R.CPU, R.Type, R.FuncId, 86 Symbolize ? FuncIdHelper.SymbolOrNumber(R.FuncId) 87 : llvm::to_string(R.FuncId), 142 Writer.write(R.FuncId); 188 if (node_iter->FuncId == FnId) 197 if (node_iter->FuncId == FnId) 208 StackTrieNode *Parent, int32_t FuncId, uint32_t TId, 214 auto match = find_if(ParentCallees, [FuncId](StackTrieNode *ParentCallee) { 215 return FuncId == ParentCallee->FuncId; 207 findOrCreateStackNode( StackTrieNode *Parent, int32_t FuncId, uint32_t TId, DenseMap<uint32_t, SmallVector<StackTrieNode *, 4>> &StackRootsByThreadId, DenseMap<unsigned, StackTrieNode *> &StacksByStackId, unsigned *id_counter, std::forward_list<StackTrieNode> &NodeStore) argument 238 writeTraceViewerRecord(uint16_t Version, raw_ostream &OS, int32_t FuncId, uint32_t TId, uint32_t PId, bool Symbolize, const FuncIdConversionHelper &FuncIdHelper, double EventTimestampUs, const StackTrieNode &StackCursor, StringRef FunctionPhenotype) argument [all...] |
H A D | func-id-helper.h | 41 std::string SymbolOrNumber(int32_t FuncId) const; 44 std::string FileLineAndColumn(int32_t FuncId) const;
|
H A D | xray-extract.cpp | 58 auto FuncId = Map.getFunctionId(Sled.Function); local 59 if (!FuncId) 61 YAMLSleds.push_back({*FuncId, Sled.Address, Sled.Function, Sled.Kind, 63 ExtractSymbolize ? FH.SymbolOrNumber(*FuncId) : ""});
|
H A D | xray-stacks.cpp | 118 "{FuncId: \"{0}\", ThreadId: \"{1}\", RecordType: \"{2}\"}", 119 Converter->SymbolOrNumber(Item.FuncId), Item.TId, 330 StackTrieNode *createTrieNode(uint32_t ThreadId, int32_t FuncId, argument 332 NodeStore.push_front(StackTrieNode{FuncId, Parent, {}, {{}, {}}}); 340 StackTrieNode *findRootNode(uint32_t ThreadId, int32_t FuncId) { argument 343 [&](StackTrieNode *N) { return N->FuncId == FuncId; }); 376 auto *Root = findRootNode(R.TId, R.FuncId); 377 TS.emplace_back(Root ? Root : createTrieNode(R.TId, R.FuncId, nullptr), 384 [&](StackTrieNode *N) { return N->FuncId 461 auto FuncId = FN.SymbolOrNumber(F->FuncId); local [all...] |
H A D | xray-account.h | 47 void recordLatency(int32_t FuncId, uint64_t Latency) { argument 48 FunctionLatencies[FuncId].push_back(Latency);
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/include/xray/ |
H A D | xray_interface.h | 105 extern XRayPatchingStatus __xray_patch_function(int32_t FuncId); 109 extern XRayPatchingStatus __xray_unpatch_function(int32_t FuncId); 114 extern uintptr_t __xray_function_address(int32_t FuncId);
|
H A D | xray_records.h | 89 int32_t FuncId = 0; variable 115 int32_t FuncId = 0; variable
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/MC/ |
H A D | MCCodeView.h | 148 bool recordFunctionId(unsigned FuncId); 154 bool recordInlinedCallSiteId(unsigned FuncId, unsigned IAFunc, 159 MCCVFunctionInfo *getCVFunctionInfo(unsigned FuncId); 174 std::vector<MCCVLoc> getFunctionLineEntries(unsigned FuncId); 176 std::pair<size_t, size_t> getLineExtent(unsigned FuncId); 181 void emitLineTableForFunction(MCObjectStreamer &OS, unsigned FuncId,
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/XRay/ |
H A D | XRayRecord.h | 83 int32_t FuncId; member in struct:llvm::xray::XRayRecord
|