| /src/contrib/llvm-project/llvm/lib/DebugInfo/BTF/ |
| H A D | BTFParser.cpp | 103 Error BTFParser::parseBTF(ParseContext &Ctx, SectionRef BTF) { in parseBTF() argument 104 Expected<DataExtractor> MaybeExtractor = Ctx.makeExtractor(BTF); in parseBTF() 113 if (Magic != BTF::MAGIC) in parseBTF() 154 static size_t byteSize(BTF::CommonType *Type) { in byteSize() 155 size_t Size = sizeof(BTF::CommonType); in byteSize() 157 case BTF::BTF_KIND_INT: in byteSize() 160 case BTF::BTF_KIND_ARRAY: in byteSize() 161 Size += sizeof(BTF::BTFArray); in byteSize() 163 case BTF::BTF_KIND_VAR: in byteSize() 166 case BTF::BTF_KIND_DECL_TAG: in byteSize() [all …]
|
| H A D | BTFContext.cpp | 25 const BTF::BPFLineInfo *LineInfo = BTF.findLineInfo(Address); in getLineInfoForAddress() 30 Result.LineSource = BTF.findString(LineInfo->LineOff); in getLineInfoForAddress() 31 Result.FileName = BTF.findString(LineInfo->FileNameOff); in getLineInfoForAddress() 68 if (Error E = Ctx->BTF.parse(Obj, Opts)) in create()
|
| /src/contrib/llvm-project/llvm/include/llvm/DebugInfo/BTF/ |
| H A D | BTFParser.h | 36 using BTFLinesVector = SmallVector<BTF::BPFLineInfo, 0>; 37 using BTFRelocVector = SmallVector<BTF::BPFFieldReloc, 0>; 62 std::vector<const BTF::CommonType *> Types; 65 Error parseBTF(ParseContext &Ctx, SectionRef BTF); 84 const BTF::BPFLineInfo *findLineInfo(SectionedAddress Address) const; 90 const BTF::BPFFieldReloc *findFieldReloc(SectionedAddress Address) const; 95 void symbolize(const BTF::BPFFieldReloc *Reloc, 102 const BTF::CommonType *findType(uint32_t Id) const;
|
| H A D | BTF.def | 1 //===- BTF.def - BTF definitions --------------------------------*- C++ -*-===// 9 // Macros for BTF.
|
| H A D | BTFContext.h | 23 BTFParser BTF; variable
|
| H A D | BTF.h | 55 namespace BTF {
|
| /src/contrib/llvm-project/llvm/lib/Target/BPF/ |
| H A D | BTFDebug.cpp | 53 Kind = BTF::BTF_KIND_PTR; in BTFTypeDerived() 56 Kind = BTF::BTF_KIND_CONST; in BTFTypeDerived() 59 Kind = BTF::BTF_KIND_VOLATILE; in BTFTypeDerived() 62 Kind = BTF::BTF_KIND_TYPEDEF; in BTFTypeDerived() 65 Kind = BTF::BTF_KIND_RESTRICT; in BTFTypeDerived() 77 Kind = BTF::BTF_KIND_PTR; in BTFTypeDerived() 95 assert((Kind == BTF::BTF_KIND_PTR || Kind == BTF::BTF_KIND_CONST || in completeType() 96 Kind == BTF::BTF_KIND_VOLATILE) && in completeType() 112 Kind = BTF::BTF_KIND_FWD; in BTFTypeFwd() 134 BTFEncoding = BTF::INT_BOOL; in BTFTypeInt() [all …]
|
| H A D | BTFDebug.h | 44 struct BTF::CommonType BTFType; 53 virtual uint32_t getSize() { return BTF::CommonTypeSize; } in getSize() 103 std::vector<struct BTF::BTFEnum> EnumValues; 108 return BTFTypeBase::getSize() + EnumValues.size() * BTF::BTFEnumSize; in getSize() 116 struct BTF::BTFArray ArrayInfo; 120 uint32_t getSize() override { return BTFTypeBase::getSize() + BTF::BTFArraySize; } in getSize() 129 std::vector<struct BTF::BTFMember> Members; 135 return BTFTypeBase::getSize() + Members.size() * BTF::BTFMemberSize; in getSize() 146 std::vector<struct BTF::BTFParam> Parameters; 152 return BTFTypeBase::getSize() + Parameters.size() * BTF::BTFParamSize; in getSize() [all …]
|
| H A D | BPFAsmPrinter.cpp | 42 : AsmPrinter(TM, std::move(Streamer)), BTF(nullptr) {} in BPFAsmPrinter() 55 BTFDebug *BTF; member in __anonbdf7df3f0111::BPFAsmPrinter 64 BTF = new BTFDebug(this); in doInitialization() 65 DebugHandlers.push_back(std::unique_ptr<BTFDebug>(BTF)); in doInitialization() 145 if (!BTF || !BTF->InstLower(MI, TmpInst)) { in emitInstruction()
|
| H A D | BPFAbstractMemberAccess.cpp | 377 if (InfoKind >= BTF::MAX_FIELD_RELOC_KIND) in IsPreserveDIAccessIndexCall() 391 CInfo.AccessIndex = BTF::TYPE_EXISTENCE; in IsPreserveDIAccessIndexCall() 393 CInfo.AccessIndex = BTF::TYPE_MATCH; in IsPreserveDIAccessIndexCall() 395 CInfo.AccessIndex = BTF::TYPE_SIZE; in IsPreserveDIAccessIndexCall() 407 CInfo.AccessIndex = BTF::ENUM_VALUE_EXISTENCE; in IsPreserveDIAccessIndexCall() 409 CInfo.AccessIndex = BTF::ENUM_VALUE; in IsPreserveDIAccessIndexCall() 685 if (InfoKind == BTF::FIELD_EXISTENCE) in GetFieldInfo() 689 if (InfoKind == BTF::FIELD_BYTE_OFFSET) { in GetFieldInfo() 708 if (InfoKind == BTF::FIELD_BYTE_SIZE) { in GetFieldInfo() 728 if (InfoKind == BTF::FIELD_SIGNEDNESS) { in GetFieldInfo() [all …]
|
| H A D | BPFPreserveDIType.cpp | 86 Reloc = BTF::BTF_TYPE_ID_LOCAL; in BPFPreserveDITypeImpl() 88 Reloc = BTF::BTF_TYPE_ID_REMOTE; in BPFPreserveDITypeImpl() 98 if (Reloc == BTF::BTF_TYPE_ID_REMOTE) { in BPFPreserveDITypeImpl()
|
| /src/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | BuiltinsBPF.td | 18 // Get BTF type id
|
| H A D | AttrDocs.td | 2298 dwarf. For BPF targets, the ``ARGUMENT`` info will be emitted to .BTF ELF 2315 For BPF targets, the ``ARGUMENT`` string will also be emitted to .BTF ELF
|
| /src/contrib/llvm-project/llvm/tools/llvm-objdump/ |
| H A D | llvm-objdump.cpp | 655 static void printBTFRelocation(formatted_raw_ostream &FOS, llvm::BTFParser &BTF, in printBTFRelocation() argument 658 const llvm::BTF::BPFFieldReloc *Reloc = BTF.findFieldReloc(Address); in printBTFRelocation() 663 BTF.symbolize(Reloc, Val); in printBTFRelocation() 1857 std::optional<llvm::BTFParser> BTF; in disassembleObject() local 1859 BTF.emplace(); in disassembleObject() 1863 if (Error E = BTF->parse(Obj, Opts)) in disassembleObject() 2497 if (BTF) in disassembleObject() 2498 printBTFRelocation(FOS, *BTF, {Index, Section.getIndex()}, LVP); in disassembleObject()
|
| /src/lib/clang/libllvm/ |
| H A D | Makefile | 528 SRCS_MIW+= DebugInfo/BTF/BTFContext.cpp 529 SRCS_MIW+= DebugInfo/BTF/BTFParser.cpp
|
| /src/contrib/llvm-project/ |
| H A D | FREEBSD-Xlist | 563 llvm/lib/DebugInfo/BTF/CMakeLists.txt
|