reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Target/BPF/BTFDebug.cpp
  712   OS.AddComment("0x" + Twine::utohexstr(BTF::MAGIC));
  713   OS.EmitIntValue(BTF::MAGIC, 2);
  714   OS.EmitIntValue(BTF::VERSION, 1);
  715   OS.EmitIntValue(0, 1);
  723   MCContext &Ctx = OS.getContext();
  724   OS.SwitchSection(Ctx.getELFSection(".BTF", ELF::SHT_PROGBITS, 0));
  728   OS.EmitIntValue(BTF::HeaderSize, 4);
  735   OS.EmitIntValue(0, 4);
  736   OS.EmitIntValue(TypeLen, 4);
  737   OS.EmitIntValue(TypeLen, 4);
  738   OS.EmitIntValue(StrLen, 4);
  742     TypeEntry->emitType(OS);
  747     OS.AddComment("string offset=" + std::to_string(StringOffset));
  748     OS.EmitBytes(S);
  749     OS.EmitBytes(StringRef("\0", 1));
  761   MCContext &Ctx = OS.getContext();
  762   OS.SwitchSection(Ctx.getELFSection(".BTF.ext", ELF::SHT_PROGBITS, 0));
  766   OS.EmitIntValue(BTF::ExtHeaderSize, 4);
  788   OS.EmitIntValue(0, 4);
  789   OS.EmitIntValue(FuncLen, 4);
  790   OS.EmitIntValue(FuncLen, 4);
  791   OS.EmitIntValue(LineLen, 4);
  792   OS.EmitIntValue(FuncLen + LineLen, 4);
  793   OS.EmitIntValue(FieldRelocLen, 4);
  796   OS.AddComment("FuncInfo");
  797   OS.EmitIntValue(BTF::BPFFuncInfoSize, 4);
  799     OS.AddComment("FuncInfo section string offset=" +
  801     OS.EmitIntValue(FuncSec.first, 4);
  802     OS.EmitIntValue(FuncSec.second.size(), 4);
  805       OS.EmitIntValue(FuncInfo.TypeId, 4);
  810   OS.AddComment("LineInfo");
  811   OS.EmitIntValue(BTF::BPFLineInfoSize, 4);
  813     OS.AddComment("LineInfo section string offset=" +
  815     OS.EmitIntValue(LineSec.first, 4);
  816     OS.EmitIntValue(LineSec.second.size(), 4);
  819       OS.EmitIntValue(LineInfo.FileNameOff, 4);
  820       OS.EmitIntValue(LineInfo.LineOff, 4);
  821       OS.AddComment("Line " + std::to_string(LineInfo.LineNum) + " Col " +
  823       OS.EmitIntValue(LineInfo.LineNum << 10 | LineInfo.ColumnNum, 4);
  829     OS.AddComment("FieldReloc");
  830     OS.EmitIntValue(BTF::BPFFieldRelocSize, 4);
  832       OS.AddComment("Field reloc section string offset=" +
  834       OS.EmitIntValue(FieldRelocSec.first, 4);
  835       OS.EmitIntValue(FieldRelocSec.second.size(), 4);
  838         OS.EmitIntValue(FieldRelocInfo.TypeID, 4);
  839         OS.EmitIntValue(FieldRelocInfo.OffsetNameOff, 4);
  840         OS.EmitIntValue(FieldRelocInfo.RelocKind, 4);
  993       MCSymbol *ORSym = OS.getContext().createTempSymbol();
  994       OS.EmitLabel(ORSym);
 1043   MCSymbol *LineSym = OS.getContext().createTempSymbol();
 1044   OS.EmitLabel(LineSym);