Home
last modified time | relevance | path

Searched refs:ReadAndAdvance (Results 1 – 4 of 4) sorted by relevance

/external/perfetto/src/traced/probes/ftrace/
Dcpu_reader.cc95 if (!CpuReader::ReadAndAdvance(&ptr, end, &data)) { in ReadDataLoc()
122 if (!CpuReader::ReadAndAdvance<uint64_t>(ptr, end_of_page, in ParsePageHeader()
130 if (!CpuReader::ReadAndAdvance<uint32_t>( in ParsePageHeader()
461 if (!ReadAndAdvance(&ptr, end, &event_header)) in ParsePage()
475 if (!ReadAndAdvance<uint32_t>(&ptr, end, &length)) in ParsePage()
483 if (!ReadAndAdvance<uint32_t>(&ptr, end, &time_delta_ext)) in ParsePage()
492 if (!ReadAndAdvance<TimeStamp>(&ptr, end, &time_stamp)) in ParsePage()
507 if (!ReadAndAdvance<uint32_t>(&ptr, end, &event_size)) in ParsePage()
523 if (!ReadAndAdvance<uint16_t>(&ptr, end, &ftrace_event_id)) in ParsePage()
Dcpu_reader_unittest.cc230 EXPECT_TRUE(CpuReader::ReadAndAdvance<uint64_t>(&ptr, ptr + 8, &actual)); in TEST()
247 EXPECT_TRUE(CpuReader::ReadAndAdvance<PlainStruct>(&ptr, ptr + 16, &actual)); in TEST()
268 CpuReader::ReadAndAdvance<ComplexStruct>(&ptr, ptr + 16, &actual)); in TEST()
280 EXPECT_FALSE(CpuReader::ReadAndAdvance<uint64_t>(&ptr, ptr + 7, &result)); in TEST()
290 EXPECT_FALSE(CpuReader::ReadAndAdvance<uint8_t>(&ptr, ptr, &result)); in TEST()
302 EXPECT_TRUE(CpuReader::ReadAndAdvance<uint64_t>(&ptr, ptr + 8, &actual)); in TEST()
Dcpu_reader.h74 static bool ReadAndAdvance(const uint8_t** ptr, const uint8_t* end, T* out) { in ReadAndAdvance() function
/external/perfetto/src/traced/probes/android_log/
Dandroid_log_data_source.cc72 inline bool ReadAndAdvance(const char** ptr, const char* end, T* out) { in ReadAndAdvance() function
302 if (!ReadAndAdvance(&buf, end, &prio)) in ParseTextEvent()
350 if (!ReadAndAdvance(&buf, end, &eid)) in ParseBinaryEvent()
380 if (!ReadAndAdvance(&buf, end, &value)) in ParseBinaryEvent()
390 if (!ReadAndAdvance(&buf, end, &value)) in ParseBinaryEvent()
400 if (!ReadAndAdvance(&buf, end, &value)) in ParseBinaryEvent()
410 if (!ReadAndAdvance(&buf, end, &len) || buf + len > end) in ParseBinaryEvent()