Home
last modified time | relevance | path

Searched refs:BTF (Results 1 – 16 of 16) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/BTF/
H A DBTFParser.h37 using BTFLinesVector = SmallVector<BTF::BPFLineInfo, 0>;
38 using BTFRelocVector = SmallVector<BTF::BPFFieldReloc, 0>;
63 std::vector<const BTF::CommonType *> Types;
66 Error parseBTF(ParseContext &Ctx, SectionRef BTF);
85 LLVM_ABI const BTF::BPFLineInfo *findLineInfo(SectionedAddress Address) const;
91 LLVM_ABI const BTF::BPFFieldReloc *
97 LLVM_ABI void symbolize(const BTF::BPFFieldReloc *Reloc,
104 LLVM_ABI const BTF::CommonType *findType(uint32_t Id) const;
H A DBTF.def1 //===- BTF.def - BTF definitions --------------------------------*- C++ -*-===//
9 // Macros for BTF.
H A DBTFContext.h24 BTFParser BTF; variable
H A DBTF.h55 namespace BTF {
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBTFDebug.cpp64 Kind = BTF::BTF_KIND_PTR; in BTFTypeDerived()
67 Kind = BTF::BTF_KIND_CONST; in BTFTypeDerived()
70 Kind = BTF::BTF_KIND_VOLATILE; in BTFTypeDerived()
73 Kind = BTF::BTF_KIND_TYPEDEF; in BTFTypeDerived()
76 Kind = BTF::BTF_KIND_RESTRICT; in BTFTypeDerived()
88 Kind = BTF::BTF_KIND_PTR; in BTFTypeDerived()
99 case BTF::BTF_KIND_PTR: in completeType()
100 case BTF::BTF_KIND_CONST: in completeType()
101 case BTF::BTF_KIND_VOLATILE: in completeType()
102 case BTF::BTF_KIND_RESTRICT: in completeType()
[all …]
H A DBTFDebug.h44 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 DBPFAsmPrinter.cpp41 : AsmPrinter(TM, std::move(Streamer), ID), BTF(nullptr) {} in BPFAsmPrinter()
56 BTFDebug *BTF; member in __anon218b1baa0111::BPFAsmPrinter
65 BTF = new BTFDebug(this); in doInitialization()
66 Handlers.push_back(std::unique_ptr<BTFDebug>(BTF)); in doInitialization()
146 if (!BTF || !BTF->InstLower(MI, TmpInst)) { in emitInstruction()
H A DBPFAbstractMemberAccess.cpp370 if (InfoKind >= BTF::MAX_FIELD_RELOC_KIND) in IsPreserveDIAccessIndexCall()
384 CInfo.AccessIndex = BTF::TYPE_EXISTENCE; in IsPreserveDIAccessIndexCall()
386 CInfo.AccessIndex = BTF::TYPE_MATCH; in IsPreserveDIAccessIndexCall()
388 CInfo.AccessIndex = BTF::TYPE_SIZE; in IsPreserveDIAccessIndexCall()
400 CInfo.AccessIndex = BTF::ENUM_VALUE_EXISTENCE; in IsPreserveDIAccessIndexCall()
402 CInfo.AccessIndex = BTF::ENUM_VALUE; in IsPreserveDIAccessIndexCall()
676 if (InfoKind == BTF::FIELD_EXISTENCE) in GetFieldInfo()
680 if (InfoKind == BTF::FIELD_BYTE_OFFSET) { in GetFieldInfo()
699 if (InfoKind == BTF::FIELD_BYTE_SIZE) { in GetFieldInfo()
719 if (InfoKind == BTF::FIELD_SIGNEDNESS) { in GetFieldInfo()
[all …]
H A DBPFPreserveDIType.cpp85 Reloc = BTF::BTF_TYPE_ID_LOCAL; in BPFPreserveDITypeImpl()
87 Reloc = BTF::BTF_TYPE_ID_REMOTE; in BPFPreserveDITypeImpl()
97 if (Reloc == BTF::BTF_TYPE_ID_REMOTE) { in BPFPreserveDITypeImpl()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/BTF/
H A DBTFParser.cpp9 // BTFParser reads/interprets .BTF and .BTF.ext ELF sections.
14 #include "llvm/DebugInfo/BTF/BTFParser.h"
26 const char BTFSectionName[] = ".BTF";
27 const char BTFExtSectionName[] = ".BTF.ext";
103 Error BTFParser::parseBTF(ParseContext &Ctx, SectionRef BTF) { in parseBTF()
104 Expected<DataExtractor> MaybeExtractor = Ctx.makeExtractor(BTF); in parseBTF()
112 return Err(".BTF", C); in parseBTF()
113 if (Magic != BTF::MAGIC) in parseBTF()
114 return Err("invalid .BTF magi in parseBTF()
99 parseBTF(ParseContext & Ctx,SectionRef BTF) parseBTF() argument
222 std::optional<SectionRef> BTF; parse() local
[all...]
H A DBTFContext.cpp26 const BTF::BPFLineInfo *LineInfo = BTF.findLineInfo(Address); in getLineInfoForAddress()
31 Result.LineSource = BTF.findString(LineInfo->LineOff); in getLineInfoForAddress()
32 Result.FileName = BTF.findString(LineInfo->FileNameOff); in getLineInfoForAddress()
70 if (Error E = Ctx->BTF.parse(Obj, Opts)) in create()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DBuiltinsBPF.td18 // Get BTF type id
H A DAttrDocs.td2760 dwarf. For BPF targets, the ``ARGUMENT`` info will be emitted to .BTF ELF
2777 For BPF targets, the ``ARGUMENT`` string will also be emitted to .BTF ELF
/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/
H A Dllvm-objdump.cpp654 static void printBTFRelocation(formatted_raw_ostream &FOS, llvm::BTFParser &BTF, in printBTFRelocation() argument
657 const llvm::BTF::BPFFieldReloc *Reloc = BTF.findFieldReloc(Address); in printBTFRelocation()
662 BTF.symbolize(Reloc, Val); in printBTFRelocation()
1935 std::optional<llvm::BTFParser> BTF; in disassembleObject() local
1937 BTF.emplace(); in disassembleObject()
1941 if (Error E = BTF->parse(Obj, Opts)) in disassembleObject()
2576 if (BTF) in disassembleObject()
2577 printBTFRelocation(FOS, *BTF, {Index, Section.getIndex()}, LVP); in disassembleObject()
/freebsd/lib/clang/libllvm/
H A DMakefile564 SRCS_MIN+= DebugInfo/BTF/BTFContext.cpp
565 SRCS_MIN+= DebugInfo/BTF/BTFParser.cpp
/freebsd/contrib/llvm-project/
H A DFREEBSD-Xlist804 llvm/lib/DebugInfo/BTF/CMakeLists.txt