Home
last modified time | relevance | path

Searched refs:EbpfDataHeader (Results 1 – 9 of 9) sorted by relevance

/developtools/smartperf_host/trace_streamer/src/parser/ebpf_parser/
Debpf_splitter.cpp37 splitEbpfHeader_ = std::make_unique<EbpfDataHeader>(); in SplitEbpfHeader()
38 std::copy_n(dequeBuffer.begin(), EbpfDataHeader::EBPF_DATA_HEADER_SIZE, in SplitEbpfHeader()
40 if (splitEbpfHeader_->header.magic != EbpfDataHeader::HEADER_MAGIC) { in SplitEbpfHeader()
44 if (splitEbpfHeader_->header.headSize != EbpfDataHeader::EBPF_DATA_HEADER_SIZE) { in SplitEbpfHeader()
51 splittedLen_ += EbpfDataHeader::EBPF_DATA_HEADER_SIZE; in SplitEbpfHeader()
52 …dequeBuffer.erase(dequeBuffer.begin(), dequeBuffer.begin() + EbpfDataHeader::EBPF_DATA_HEADER_SIZE… in SplitEbpfHeader()
63 if (dequeBuffer.size() >= EbpfDataHeader::EBPF_DATA_HEADER_SIZE) { in AddAndSplitEbpfData()
67 … .size = EbpfDataHeader::EBPF_DATA_HEADER_SIZE}}; in AddAndSplitEbpfData()
78 …lerHeader_.data.length = usefulDataLen_ + sizeof(ProfilerTraceFileHeader) + sizeof(EbpfDataHeader); in AddAndSplitEbpfData()
Debpf_data_reader.cpp50 if (bufferSize_ < EbpfDataHeader::EBPF_DATA_HEADER_SIZE) { in InitEbpfHeader()
54 ebpfDataHeader_ = reinterpret_cast<EbpfDataHeader *>(startAddr_); in InitEbpfHeader()
56 if (ebpfDataHeader_->header.magic != EbpfDataHeader::HEADER_MAGIC) { in InitEbpfHeader()
60 if (ebpfDataHeader_->header.headSize != EbpfDataHeader::EBPF_DATA_HEADER_SIZE) { in InitEbpfHeader()
67 startAddr_ += EbpfDataHeader::EBPF_DATA_HEADER_SIZE; in InitEbpfHeader()
68 unresolvedLen_ -= EbpfDataHeader::EBPF_DATA_HEADER_SIZE; in InitEbpfHeader()
344 const EbpfDataHeader *EbpfDataReader::GetEbpfDataHeader() const in GetEbpfDataHeader()
346 return const_cast<const EbpfDataHeader *>(ebpfDataHeader_); in GetEbpfDataHeader()
Debpf_data_reader.h42 const EbpfDataHeader *GetEbpfDataHeader() const;
77 EbpfDataHeader *ebpfDataHeader_;
Debpf_splitter.h80 std::unique_ptr<EbpfDataHeader> splitEbpfHeader_;
Debpf_data_structure.h26 struct EbpfDataHeader { struct
/developtools/smartperf_host/trace_streamer/test/unittest/ebpf/
Debpf_parser_test.cpp55 EbpfDataHeader ebpfHeader;
73 EbpfDataHeader ebpfHeader;
91 EbpfDataHeader ebpfHeader;
94 ebpfHeader.header.headSize = EbpfDataHeader::EBPF_DATA_HEADER_SIZE;
105 …EXPECT_EQ(parser->reader_->ebpfDataHeader_->header.headSize, EbpfDataHeader::EBPF_DATA_HEADER_SIZE…
116 EbpfDataHeader ebpfHeader;
139 EbpfDataHeader ebpfHeader;
142 strncpy_s(ebpfHeader.cmdline, EbpfDataHeader::EBPF_COMMAND_MAX_SIZE, COMMAND_LINE.c_str(),
143 EbpfDataHeader::EBPF_COMMAND_MAX_SIZE);
Dpaged_memory_parser_test.cpp46 EbpfDataHeader ebpfHeader; in SetUp()
49 memcpy_s(ebpfHeader.cmdline, EbpfDataHeader::EBPF_COMMAND_MAX_SIZE, COMMAND_LINE.c_str(), in SetUp()
52 … &(reinterpret_cast<uint8_t *>(&ebpfHeader))[EbpfDataHeader::EBPF_DATA_HEADER_SIZE]); in SetUp()
Dbio_parser_test.cpp85 EbpfDataHeader ebpfHeader_;
Debpf_file_system_test.cpp57 EbpfDataHeader ebpfHeader; in SetUp()