Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/BTF/
H A DBTFParser.cpp157 case BTF::BTF_KIND_INT: in byteSize()
191 const BTF::CommonType VoidTypeInst = {0, BTF::BTF_KIND_UNKN << 24, {0}};
224 BTF::CommonType *Type = (BTF::CommonType *)&TypesBuffer[Pos]; in parseTypesInfo()
394 BTF = Sec; in parse()
398 if (!BTF) in parse()
483 case BTF::TYPE_MATCH: in relocKindGroup()
484 case BTF::TYPE_SIZE: in relocKindGroup()
487 case BTF::ENUM_VALUE: in relocKindGroup()
506 static bool printMod(const BTFParser &BTF, const BTF::CommonType *Type, in printMod() argument
527 static const BTF::CommonType *skipModsAndTypedefs(const BTFParser &BTF, in skipModsAndTypedefs() argument
[all …]
H A DBTFContext.cpp25 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()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/DebugInfo/BTF/
H A DBTFParser.h36 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 DBTF.def1 //===- BTF.def - BTF definitions --------------------------------*- C++ -*-===//
9 // Macros for BTF.
H A DBTFContext.h23 BTFParser BTF; variable
H A DBTF.h55 namespace BTF {
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBTFDebug.cpp52 Kind = BTF::BTF_KIND_PTR; in BTFTypeDerived()
76 Kind = BTF::BTF_KIND_PTR; in BTFTypeDerived()
94 assert((Kind == BTF::BTF_KIND_PTR || Kind == BTF::BTF_KIND_CONST || in completeType()
111 Kind = BTF::BTF_KIND_FWD; in BTFTypeFwd()
147 Kind = BTF::BTF_KIND_INT; in BTFTypeInt()
169 Kind = BTF::BTF_KIND_ENUM; in BTFTypeEnum()
282 Kind = IsStruct ? BTF::BTF_KIND_STRUCT : BTF::BTF_KIND_UNION; in BTFTypeStruct()
392 Kind = BTF::BTF_KIND_VAR; in BTFKindVar()
1218 uint8_t Scope = SP->isLocalToUnit() ? BTF::FUNC_STATIC : BTF::FUNC_GLOBAL; in beginFunctionImpl()
1521 if (Reloc == BTF::ENUM_VALUE_EXISTENCE || Reloc == BTF::ENUM_VALUE || in InstLower()
[all …]
H A DBPFAsmPrinter.cpp41 : AsmPrinter(TM, std::move(Streamer)), BTF(nullptr) {} in BPFAsmPrinter()
54 BTFDebug *BTF; member in __anon1e84fc600111::BPFAsmPrinter
63 BTF = new BTFDebug(this); in doInitialization()
64 Handlers.push_back(HandlerInfo(std::unique_ptr<BTFDebug>(BTF), "emit", in doInitialization()
146 if (!BTF || !BTF->InstLower(MI, TmpInst)) { in emitInstruction()
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;
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()
190 return BTFTypeBase::getSize() + BTF::BTFDataSecVarSize * Vars.size(); in getSize()
[all …]
H A DBPFAbstractMemberAccess.cpp377 if (InfoKind >= BTF::MAX_FIELD_RELOC_KIND) in IsPreserveDIAccessIndexCall()
393 CInfo.AccessIndex = BTF::TYPE_MATCH; in IsPreserveDIAccessIndexCall()
395 CInfo.AccessIndex = BTF::TYPE_SIZE; in IsPreserveDIAccessIndexCall()
409 CInfo.AccessIndex = BTF::ENUM_VALUE; in IsPreserveDIAccessIndexCall()
684 if (InfoKind == BTF::FIELD_EXISTENCE) in GetFieldInfo()
688 if (InfoKind == BTF::FIELD_BYTE_OFFSET) { in GetFieldInfo()
707 if (InfoKind == BTF::FIELD_BYTE_SIZE) { in GetFieldInfo()
727 if (InfoKind == BTF::FIELD_SIGNEDNESS) { in GetFieldInfo()
753 if (InfoKind == BTF::FIELD_LSHIFT_U64) { in GetFieldInfo()
790 if (InfoKind == BTF::FIELD_RSHIFT_U64) { in GetFieldInfo()
[all …]
H A DBPFPreserveDIType.cpp86 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()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Basic/
H A DBuiltinsBPF.def23 // Get BTF type id.
H A DAttrDocs.td2255 dwarf. For BPF targets, the ``ARGUMENT`` info will be emitted to .BTF ELF
2272 For BPF targets, the ``ARGUMENT`` string will also be emitted to .BTF ELF
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-objdump/
H A Dllvm-objdump.cpp539 static void printBTFRelocation(formatted_raw_ostream &FOS, llvm::BTFParser &BTF, in printBTFRelocation() argument
542 const llvm::BTF::BPFFieldReloc *Reloc = BTF.findFieldReloc(Address); in printBTFRelocation()
547 BTF.symbolize(Reloc, Val); in printBTFRelocation()
1723 std::optional<llvm::BTFParser> BTF; in disassembleObject() local
1725 BTF.emplace(); in disassembleObject()
1729 if (Error E = BTF->parse(Obj, Opts)) in disassembleObject()
2359 if (BTF) in disassembleObject()
2360 printBTFRelocation(FOS, *BTF, {Index, Section.getIndex()}, LVP); in disassembleObject()
/freebsd-14.2/lib/clang/libllvm/
H A DMakefile509 SRCS_MIW+= DebugInfo/BTF/BTFContext.cpp
510 SRCS_MIW+= DebugInfo/BTF/BTFParser.cpp
/freebsd-14.2/contrib/llvm-project/
H A DFREEBSD-Xlist555 llvm/lib/DebugInfo/BTF/CMakeLists.txt