Searched refs:EbpfDataHeader (Results 1 – 9 of 9) sorted by relevance
/developtools/smartperf_host/trace_streamer/src/parser/ebpf_parser/ |
D | ebpf_splitter.cpp | 37 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()
|
D | ebpf_data_reader.cpp | 50 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()
|
D | ebpf_data_reader.h | 42 const EbpfDataHeader *GetEbpfDataHeader() const; 77 EbpfDataHeader *ebpfDataHeader_;
|
D | ebpf_splitter.h | 80 std::unique_ptr<EbpfDataHeader> splitEbpfHeader_;
|
D | ebpf_data_structure.h | 26 struct EbpfDataHeader { struct
|
/developtools/smartperf_host/trace_streamer/test/unittest/ebpf/ |
D | ebpf_parser_test.cpp | 55 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);
|
D | paged_memory_parser_test.cpp | 46 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()
|
D | bio_parser_test.cpp | 85 EbpfDataHeader ebpfHeader_;
|
D | ebpf_file_system_test.cpp | 57 EbpfDataHeader ebpfHeader; in SetUp()
|