Searched refs:ReadAndAdvance (Results 1 – 4 of 4) sorted by relevance
/external/perfetto/src/traced/probes/android_log/ |
D | android_log_data_source.cc | 78 inline bool ReadAndAdvance(const char** ptr, const char* end, T* out) { in ReadAndAdvance() function 319 if (!ReadAndAdvance(&buf, end, &prio)) in ParseTextEvent() 367 if (!ReadAndAdvance(&buf, end, &eid)) in ParseBinaryEvent() 397 if (!ReadAndAdvance(&buf, end, &value)) in ParseBinaryEvent() 407 if (!ReadAndAdvance(&buf, end, &value)) in ParseBinaryEvent() 417 if (!ReadAndAdvance(&buf, end, &value)) in ParseBinaryEvent() 427 if (!ReadAndAdvance(&buf, end, &len) || buf + len > end) in ParseBinaryEvent()
|
/external/perfetto/src/traced/probes/ftrace/ |
D | cpu_reader.cc | 98 if (!CpuReader::ReadAndAdvance(&ptr, end, &data)) { in ReadDataLoc() 456 if (!CpuReader::ReadAndAdvance<uint64_t>(ptr, end_of_page, in ParsePageHeader() 464 if (!CpuReader::ReadAndAdvance<uint32_t>( in ParsePageHeader() 499 if (!ReadAndAdvance(&ptr, end, &event_header)) in ParsePagePayload() 513 if (!ReadAndAdvance<uint32_t>(&ptr, end, &length)) in ParsePagePayload() 524 if (!ReadAndAdvance<uint32_t>(&ptr, end, &time_delta_ext)) in ParsePagePayload() 537 if (!ReadAndAdvance<uint32_t>(&ptr, end, &time_delta_ext)) in ParsePagePayload() 551 if (!ReadAndAdvance<uint32_t>(&ptr, end, &event_size)) in ParsePagePayload() 567 if (!ReadAndAdvance<uint16_t>(&ptr, end, &ftrace_event_id)) in ParsePagePayload()
|
D | cpu_reader.h | 81 static bool ReadAndAdvance(const uint8_t** ptr, const uint8_t* end, T* out) { in ReadAndAdvance() function
|
D | cpu_reader_unittest.cc | 238 EXPECT_TRUE(CpuReader::ReadAndAdvance<uint64_t>(&ptr, ptr + 8, &actual)); in TEST() 255 EXPECT_TRUE(CpuReader::ReadAndAdvance<PlainStruct>(&ptr, ptr + 16, &actual)); in TEST() 276 CpuReader::ReadAndAdvance<ComplexStruct>(&ptr, ptr + 16, &actual)); in TEST() 288 EXPECT_FALSE(CpuReader::ReadAndAdvance<uint64_t>(&ptr, ptr + 7, &result)); in TEST() 298 EXPECT_FALSE(CpuReader::ReadAndAdvance<uint8_t>(&ptr, ptr, &result)); in TEST() 310 EXPECT_TRUE(CpuReader::ReadAndAdvance<uint64_t>(&ptr, ptr + 8, &actual)); in TEST()
|