Home
last modified time | relevance | path

Searched refs:data_pos (Results 1 – 3 of 3) sorted by relevance

/system/extras/simpleperf/
Devent_fd.cpp215 size_t data_pos; in GetAvailableMmapData() local
216 size_t data_size = GetAvailableMmapDataSize(data_pos); in GetAvailableMmapData()
219 size_t copy_size = std::min(data_size, mmap_data_buffer_size_ - data_pos); in GetAvailableMmapData()
220 memcpy(&data[0], mmap_data_buffer_ + data_pos, copy_size); in GetAvailableMmapData()
229 size_t EventFd::GetAvailableMmapDataSize(size_t& data_pos) { in GetAvailableMmapDataSize() argument
253 data_pos = read_head & (mmap_data_buffer_size_ - 1); in GetAvailableMmapDataSize()
303 size_t data_pos = read_head & (aux_buffer_size_ - 1); in GetAvailableAuxData() local
305 *buf1 = aux_buffer_ + data_pos; in GetAvailableAuxData()
306 if (data_size <= aux_buffer_size_ - data_pos) { in GetAvailableAuxData()
310 *size1 = aux_buffer_size_ - data_pos; in GetAvailableAuxData()
Devent_fd.h86 virtual size_t GetAvailableMmapDataSize(size_t& data_pos);
DRecordReadThread_test.cpp181 size_t data_pos = buffer.size() - 4; in TEST() local
182 memcpy(&buffer[data_pos], records[0]->Binary(), 4); in TEST()
192 EXPECT_CALL(event_fd, GetAvailableMmapDataSize(Truly(SetArg(data_pos)))) in TEST()