/external/llvm-project/compiler-rt/lib/xray/ |
D | xray_interface.cpp | 150 int32_t FuncId) XRAY_NEVER_INSTRUMENT { in patchSled() argument 154 Success = patchFunctionEntry(Enable, FuncId, Sled, __xray_FunctionEntry); in patchSled() 157 Success = patchFunctionExit(Enable, FuncId, Sled); in patchSled() 160 Success = patchFunctionTailExit(Enable, FuncId, Sled); in patchSled() 163 Success = patchFunctionEntry(Enable, FuncId, Sled, __xray_ArgLoggerEntry); in patchSled() 166 Success = patchCustomEvent(Enable, FuncId, Sled); in patchSled() 169 Success = patchTypedEvent(Enable, FuncId, Sled); in patchSled() 179 findFunctionSleds(int32_t FuncId, in findFunctionSleds() argument 185 for (std::size_t I = 0; I < InstrMap.Entries && CurFn <= FuncId; I++) { in findFunctionSleds() 193 if (CurFn == FuncId) { in findFunctionSleds() [all …]
|
D | xray_powerpc64.cpp | 52 bool patchFunctionEntry(const bool Enable, uint32_t FuncId, in patchFunctionEntry() argument 57 // lis 0, FuncId[16..32] in patchFunctionEntry() 58 // li 0, FuncId[0..15] in patchFunctionEntry() 60 (0x3c000000ull + (FuncId >> 16)) + in patchFunctionEntry() 61 ((0x60000000ull + (FuncId & 0xffff)) << 32); in patchFunctionEntry() 71 bool patchFunctionExit(const bool Enable, uint32_t FuncId, in patchFunctionExit() argument 75 // lis 0, FuncId[16..32] in patchFunctionExit() 76 // li 0, FuncId[0..15] in patchFunctionExit() 78 (0x3c000000ull + (FuncId >> 16)) + in patchFunctionExit() 79 ((0x60000000ull + (FuncId & 0xffff)) << 32); in patchFunctionExit() [all …]
|
D | xray_AArch64.cpp | 34 inline static bool patchSled(const bool Enable, const uint32_t FuncId, in patchSled() argument 73 *CurAddress = FuncId; in patchSled() 92 bool patchFunctionEntry(const bool Enable, const uint32_t FuncId, in patchFunctionEntry() argument 95 return patchSled(Enable, FuncId, Sled, Trampoline); in patchFunctionEntry() 98 bool patchFunctionExit(const bool Enable, const uint32_t FuncId, in patchFunctionExit() argument 100 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); in patchFunctionExit() 103 bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId, in patchFunctionTailExit() argument 105 return patchSled(Enable, FuncId, Sled, __xray_FunctionTailExit); in patchFunctionTailExit() 108 bool patchCustomEvent(const bool Enable, const uint32_t FuncId, in patchCustomEvent() argument 114 bool patchTypedEvent(const bool Enable, const uint32_t FuncId, in patchTypedEvent() argument
|
D | xray_fdr_controller.h | 51 constexpr int32_t mask(int32_t FuncId) const XRAY_NEVER_INSTRUMENT { in mask() argument 52 return FuncId & ((1 << 29) - 1); in mask() 181 bool rewindRecords(int32_t FuncId, uint64_t TSC, in rewindRecords() argument 198 DCHECK_EQ(F.FuncId, FuncId & ~(0x0F << 28)); in rewindRecords() 244 bool functionEnter(int32_t FuncId, uint64_t TSC, in functionEnter() argument 265 mask(FuncId), Delta); in functionEnter() 268 bool functionTailExit(int32_t FuncId, uint64_t TSC, in functionTailExit() argument 283 return rewindRecords(FuncId, TSC, CPU); in functionTailExit() 290 mask(FuncId), Delta); in functionTailExit() 293 bool functionEnterArg(int32_t FuncId, uint64_t TSC, uint16_t CPU, in functionEnterArg() argument [all …]
|
D | xray_basic_logging.cpp | 48 int32_t FuncId; member 158 void InMemoryRawLog(int32_t FuncId, XRayEntryType Type, in InMemoryRawLog() argument 185 E.FuncId = FuncId; in InMemoryRawLog() 216 if (StackTop.FuncId == FuncId && StackTop.CPU == CPU && in InMemoryRawLog() 242 R.FuncId = FuncId; in InMemoryRawLog() 255 void InMemoryRawLogWithArg(int32_t FuncId, XRayEntryType Type, uint64_t Arg1, in InMemoryRawLogWithArg() argument 277 InMemoryRawLog(FuncId, Type, ReadTSC); in InMemoryRawLogWithArg() 286 R.FuncId = FuncId; in InMemoryRawLogWithArg() 300 void basicLoggingHandleArg0RealTSC(int32_t FuncId, in basicLoggingHandleArg0RealTSC() argument 302 InMemoryRawLog(FuncId, Type, readTSC); in basicLoggingHandleArg0RealTSC() [all …]
|
D | xray_mips.cpp | 52 inline static bool patchSled(const bool Enable, const uint32_t FuncId, in patchSled() argument 102 uint32_t LoFunctionID = FuncId & 0xffff; in patchSled() 103 uint32_t HiFunctionID = (FuncId >> 16) & 0xffff; in patchSled() 137 bool patchFunctionEntry(const bool Enable, const uint32_t FuncId, in patchFunctionEntry() argument 140 return patchSled(Enable, FuncId, Sled, Trampoline); in patchFunctionEntry() 143 bool patchFunctionExit(const bool Enable, const uint32_t FuncId, in patchFunctionExit() argument 145 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); in patchFunctionExit() 148 bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId, in patchFunctionTailExit() argument 152 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); in patchFunctionTailExit() 155 bool patchCustomEvent(const bool Enable, const uint32_t FuncId, in patchCustomEvent() argument [all …]
|
D | xray_arm.cpp | 76 inline static bool patchSled(const bool Enable, const uint32_t FuncId, in patchSled() argument 109 write32bitLoadR0(CurAddress, reinterpret_cast<uint32_t>(FuncId)); in patchSled() 129 bool patchFunctionEntry(const bool Enable, const uint32_t FuncId, in patchFunctionEntry() argument 132 return patchSled(Enable, FuncId, Sled, Trampoline); in patchFunctionEntry() 135 bool patchFunctionExit(const bool Enable, const uint32_t FuncId, in patchFunctionExit() argument 137 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); in patchFunctionExit() 140 bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId, in patchFunctionTailExit() argument 142 return patchSled(Enable, FuncId, Sled, __xray_FunctionTailExit); in patchFunctionTailExit() 145 bool patchCustomEvent(const bool Enable, const uint32_t FuncId, in patchCustomEvent() argument 151 bool patchTypedEvent(const bool Enable, const uint32_t FuncId, in patchTypedEvent() argument
|
D | xray_mips64.cpp | 53 inline static bool patchSled(const bool Enable, const uint32_t FuncId, in patchSled() argument 102 uint32_t LoFunctionID = FuncId & 0xffff; in patchSled() 103 uint32_t HiFunctionID = (FuncId >> 16) & 0xffff; in patchSled() 145 bool patchFunctionEntry(const bool Enable, const uint32_t FuncId, in patchFunctionEntry() argument 148 return patchSled(Enable, FuncId, Sled, Trampoline); in patchFunctionEntry() 151 bool patchFunctionExit(const bool Enable, const uint32_t FuncId, in patchFunctionExit() argument 153 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); in patchFunctionExit() 156 bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId, in patchFunctionTailExit() argument 160 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); in patchFunctionTailExit() 163 bool patchCustomEvent(const bool Enable, const uint32_t FuncId, in patchCustomEvent() argument [all …]
|
D | xray_trampoline_arm.S | 18 @ In C++ it is void extern "C" __xray_FunctionEntry(uint32_t FuncId) with 19 @ FuncId passed in r0 register. 49 @ In C++ it is extern "C" void __xray_FunctionExit(uint32_t FuncId) with 50 @ FuncId passed in r0 register. 81 @ In C++ it is void extern "C" __xray_FunctionTailExit(uint32_t FuncId) 82 @ with FuncId passed in r0 register.
|
/external/llvm/test/tools/llvm-readobj/ |
D | codeview-merging.test | 24 OBJ1: FuncId (0x100D) { 30 OBJ1-NEXT: FuncId (0x100E) { 36 OBJ1-NOT: FuncId 38 OBJ2: FuncId (0x100D) { 45 OBJ2: FuncId (0x1069) { 51 OBJ2-NOT: FuncId 53 CHECK: FuncId (0x100D) { 59 CHECK-NEXT: FuncId (0x100E) { 65 CHECK-NOT: FuncId
|
/external/llvm-project/llvm/tools/llvm-xray/ |
D | xray-converter.cpp | 85 Trace.Records.push_back({R.RecordType, R.CPU, R.Type, R.FuncId, in exportAsYAML() 86 Symbolize ? FuncIdHelper.SymbolOrNumber(R.FuncId) in exportAsYAML() 87 : llvm::to_string(R.FuncId), in exportAsYAML() 142 Writer.write(R.FuncId); in exportAsRAWv1() 188 if (node_iter->FuncId == FnId) in findSiblings() 197 if (node_iter->FuncId == FnId) in findSiblings() 208 StackTrieNode *Parent, int32_t FuncId, uint32_t TId, in findOrCreateStackNode() argument 214 auto match = find_if(ParentCallees, [FuncId](StackTrieNode *ParentCallee) { in findOrCreateStackNode() 215 return FuncId == ParentCallee->FuncId; in findOrCreateStackNode() 221 findSiblings(Parent, FuncId, TId, StackRootsByThreadId); in findOrCreateStackNode() [all …]
|
D | func-id-helper.cpp | 20 std::string FuncIdConversionHelper::SymbolOrNumber(int32_t FuncId) const { in SymbolOrNumber() 21 auto CacheIt = CachedNames.find(FuncId); in SymbolOrNumber() 26 auto It = FunctionAddresses.find(FuncId); in SymbolOrNumber() 28 F << "#" << FuncId; in SymbolOrNumber() 49 CachedNames[FuncId] = S; in SymbolOrNumber() 53 std::string FuncIdConversionHelper::FileLineAndColumn(int32_t FuncId) const { in FileLineAndColumn() 54 auto It = FunctionAddresses.find(FuncId); in FileLineAndColumn()
|
D | xray-account.cpp | 66 FUNCID, enumerator 79 cl::sub(Account), cl::init(SortField::FUNCID), 80 cl::values(clEnumValN(SortField::FUNCID, "funcid", "function id"), 178 ThreadStack.Stack.emplace_back(Record.FuncId, Record.TSC); in accountRecord() 180 ++(*ThreadStack.RecursionDepth)[Record.FuncId]; in accountRecord() 188 if (ThreadStack.Stack.back().first == Record.FuncId) { in accountRecord() 206 return E.first == Record.FuncId; in accountRecord() 314 const auto &FuncId = FT.first; in exportStats() local 316 Results.emplace_back(FuncId, Timings.size(), getStats(Timings)); in exportStats() 328 Row.Function = FuncIdHelper.SymbolOrNumber(FuncId); in exportStats() [all …]
|
D | xray-graph.cpp | 192 // If the record is an ENTER record it pushes the FuncID and TSC onto a 205 // FuncId 0. 222 if (Record.FuncId != 0 && G.count(Record.FuncId) == 0) in accountRecord() 223 G[Record.FuncId].SymbolName = FuncIdHelper.SymbolOrNumber(Record.FuncId); in accountRecord() 224 ThreadStack.push_back({Record.FuncId, Record.TSC}); in accountRecord() 231 if (ThreadStack.size() == 0 || ThreadStack.back().FuncId != Record.FuncId) { in accountRecord() 237 [&](const FunctionAttr &A) { return A.FuncId == Record.FuncId; }); in accountRecord() 243 while (ThreadStack.back().FuncId != Record.FuncId) { in accountRecord() 245 VertexIdentifier TopFuncId = ThreadStack.back().FuncId; in accountRecord() 248 EdgeIdentifier EI(ThreadStack.back().FuncId, TopFuncId); in accountRecord() [all …]
|
D | trie-node.h | 32 int32_t FuncId; member 56 assert(Left.FuncId == Right.FuncId); in mergeTrieNodes() 58 Left.FuncId, NewParent, {}, MergeFn(Left.ExtraData, Right.ExtraData)}); in mergeTrieNodes() 65 LeftCalleesByFuncId[Callee->FuncId] = Callee; in mergeTrieNodes() 73 auto iter = LeftCalleesByFuncId.find(Callee->FuncId); in mergeTrieNodes()
|
/external/llvm-project/llvm/test/tools/llvm-readobj/COFF/ |
D | codeview-merging.test | 33 OBJ1: FuncId (0x100D) { 39 OBJ1-NEXT: FuncId (0x100E) { 45 OBJ1-NOT: FuncId 47 OBJ2: FuncId (0x100D) { 54 OBJ2: FuncId (0x1069) { 60 OBJ2-NOT: FuncId 100 CHECK: FuncId (0x1002) { 106 CHECK-NEXT: FuncId (0x1003) { 112 CHECK-NOT: FuncId
|
/external/llvm-project/llvm/lib/MC/ |
D | MCCodeView.cpp | 78 MCCVFunctionInfo *CodeViewContext::getCVFunctionInfo(unsigned FuncId) { in getCVFunctionInfo() argument 79 if (FuncId >= Functions.size()) in getCVFunctionInfo() 81 if (Functions[FuncId].isUnallocatedFunctionInfo()) in getCVFunctionInfo() 83 return &Functions[FuncId]; in getCVFunctionInfo() 86 bool CodeViewContext::recordFunctionId(unsigned FuncId) { in recordFunctionId() argument 87 if (FuncId >= Functions.size()) in recordFunctionId() 88 Functions.resize(FuncId + 1); in recordFunctionId() 91 if (!Functions[FuncId].isUnallocatedFunctionInfo()) in recordFunctionId() 95 Functions[FuncId].ParentFuncIdPlusOne = MCCVFunctionInfo::FunctionSentinel; in recordFunctionId() 99 bool CodeViewContext::recordInlinedCallSiteId(unsigned FuncId, unsigned IAFunc, in recordInlinedCallSiteId() argument [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/ |
D | MCCodeView.cpp | 78 MCCVFunctionInfo *CodeViewContext::getCVFunctionInfo(unsigned FuncId) { in getCVFunctionInfo() argument 79 if (FuncId >= Functions.size()) in getCVFunctionInfo() 81 if (Functions[FuncId].isUnallocatedFunctionInfo()) in getCVFunctionInfo() 83 return &Functions[FuncId]; in getCVFunctionInfo() 86 bool CodeViewContext::recordFunctionId(unsigned FuncId) { in recordFunctionId() argument 87 if (FuncId >= Functions.size()) in recordFunctionId() 88 Functions.resize(FuncId + 1); in recordFunctionId() 91 if (!Functions[FuncId].isUnallocatedFunctionInfo()) in recordFunctionId() 95 Functions[FuncId].ParentFuncIdPlusOne = MCCVFunctionInfo::FunctionSentinel; in recordFunctionId() 99 bool CodeViewContext::recordInlinedCallSiteId(unsigned FuncId, unsigned IAFunc, in recordInlinedCallSiteId() argument [all …]
|
/external/llvm/test/Bitcode/ |
D | thinlto-function-summary-callgraph.ll | 12 ; CHECK-NEXT: <PERMODULE {{.*}} op4=[[FUNCID:[0-9]+]] op5=1/> 16 ; External function func should have entry with value id FUNCID 17 ; CHECK-NEXT: <ENTRY {{.*}} op0=[[FUNCID]] {{.*}} record string = 'func' 25 ; COMBINED-NEXT: <COMBINED {{.*}} op5=[[FUNCID:[0-9]+]] op6=1/> 28 ; Entry for function func should have entry with value id FUNCID 29 ; COMBINED-NEXT: <COMBINED_ENTRY {{.*}} op0=[[FUNCID]] op1=7289175272376759421/>
|
D | thinlto-function-summary-callgraph-pgo.ll | 12 ; CHECK-NEXT: <PERMODULE_PROFILE {{.*}} op4=[[FUNCID:[0-9]+]] op5=1 op6=1/> 16 ; External function func should have entry with value id FUNCID 17 ; CHECK-NEXT: <ENTRY {{.*}} op0=[[FUNCID]] {{.*}} record string = 'func' 25 ; COMBINED-NEXT: <COMBINED_PROFILE {{.*}} op5=[[FUNCID:[0-9]+]] op6=1 op7=1/> 28 ; Entry for function func should have entry with value id FUNCID 29 ; COMBINED-NEXT: <COMBINED_ENTRY {{.*}} op0=[[FUNCID]] op1=7289175272376759421/>
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/XRay/ |
D | Profile.cpp | 78 static Expected<std::vector<Profile::FuncID>> readPath(DataExtractor &Extractor, in readPath() 81 std::vector<Profile::FuncID> Path; in readPath() 83 int32_t FuncId; in readPath() local 85 FuncId = Extractor.getSigned(&Offset, 4); in readPath() 91 Path.push_back(FuncId); in readPath() 92 } while (FuncId != 0); in readPath() 131 Expected<std::vector<Profile::FuncID>> Profile::expandPath(PathID P) const { in expandPath() 137 std::vector<Profile::FuncID> Path; in expandPath() 143 Profile::PathID Profile::internPath(ArrayRef<FuncID> P) { in internPath() 321 Profile::FuncID FuncId; member [all …]
|
/external/llvm-project/llvm/lib/XRay/ |
D | Profile.cpp | 78 static Expected<std::vector<Profile::FuncID>> readPath(DataExtractor &Extractor, in readPath() 81 std::vector<Profile::FuncID> Path; in readPath() 83 int32_t FuncId; in readPath() local 85 FuncId = Extractor.getSigned(&Offset, 4); in readPath() 91 Path.push_back(FuncId); in readPath() 92 } while (FuncId != 0); in readPath() 131 Expected<std::vector<Profile::FuncID>> Profile::expandPath(PathID P) const { in expandPath() 137 std::vector<Profile::FuncID> Path; in expandPath() 143 Profile::PathID Profile::internPath(ArrayRef<FuncID> P) { in internPath() 321 Profile::FuncID FuncId; member [all …]
|
/external/llvm/include/llvm/ExecutionEngine/Orc/ |
D | RPCUtils.h | 79 template <typename FunctionIdT, FunctionIdT FuncId, typename FnT> 83 template <typename FunctionIdT, FunctionIdT FuncId, typename RetT, 85 class FunctionHelper<FunctionIdT, FuncId, RetT(ArgTs...)> { 87 static_assert(FuncId != RPCFunctionIdTraits<FunctionIdT>::InvalidId && 88 FuncId != RPCFunctionIdTraits<FunctionIdT>::ResponseId, 92 static const FunctionIdT Id = FuncId; 141 template <typename FunctionIdT, FunctionIdT FuncId, typename... ArgTs> 142 class FunctionHelper<FunctionIdT, FuncId, void(ArgTs...)> { 144 static_assert(FuncId != RPCFunctionIdTraits<FunctionIdT>::InvalidId && 145 FuncId != RPCFunctionIdTraits<FunctionIdT>::ResponseId, [all …]
|
/external/llvm-project/compiler-rt/lib/xray/tests/unit/ |
D | fdr_controller_test.cpp | 32 using ::llvm::xray::testing::FuncId; 75 AllOf(FuncId(1), RecordType(llvm::xray::RecordTypes::ENTER)), in TEST_F() 76 AllOf(FuncId(1), RecordType(llvm::xray::RecordTypes::EXIT))))); in TEST_F() 99 AllOf(FuncId(FId), RecordType(llvm::xray::RecordTypes::ENTER)), in TEST_F() 100 AllOf(FuncId(FId), RecordType(llvm::xray::RecordTypes::EXIT)), in TEST_F() 101 AllOf(FuncId(FId), RecordType(llvm::xray::RecordTypes::ENTER_ARG)), in TEST_F() 102 AllOf(FuncId(FId), RecordType(llvm::xray::RecordTypes::TAIL_EXIT))))); in TEST_F() 135 AllOf(FuncId(1), RecordType(llvm::xray::RecordTypes::ENTER_ARG), in TEST_F() 137 AllOf(FuncId(1), RecordType(llvm::xray::RecordTypes::EXIT))))); in TEST_F() 159 AllOf(FuncId(1), RecordType(llvm::xray::RecordTypes::ENTER), in TEST_F() [all …]
|
/external/llvm-project/llvm/test/tools/llvm-xray/X86/ |
D | account-simple-sorting.yaml | 33 #DEFAULT-NEXT: funcid count [ min, med, 90p, 99p, max] sum function 38 #COUNT-ASC-NEXT: funcid count [ min, med, 90p, 99p, max] sum function 43 #COUNT-DSC-NEXT: funcid count [ min, med, 90p, 99p, max] sum function 48 #MIN-ASC-NEXT: funcid count [ min, med, 90p, 99p, max] sum function 53 #MIN-DSC-NEXT: funcid count [ min, med, 90p, 99p, max] sum function 58 #MAX-ASC-NEXT: funcid count [ min, med, 90p, 99p, max] sum function 63 #MAX-DSC-NEXT: funcid count [ min, med, 90p, 99p, max] sum function 68 #SUM-ASC-NEXT: funcid count [ min, med, 90p, 99p, max] sum function 73 #SUM-DSC-NEXT: funcid count [ min, med, 90p, 99p, max] sum function
|