OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:write_head
(Results
1 - 2
of
2
) sorted by null
/system/extras/simpleperf/
event_fd.cpp
217
// read_head
write_head
219
// So simpleperf can read records in [read_head,
write_head
), and the kernel
220
// can write records in [
write_head
, read_head). The kernel is responsible
221
// for updating
write_head
, and simpleperf is responsible for updating
225
size_t
write_head
=
local
230
if (read_head ==
write_head
) {
235
if (read_head <
write_head
) {
236
read_bytes =
write_head
- read_head;
238
read_bytes = mmap_data_buffer_size_ - read_head +
write_head
;
251
if (read_head <
write_head
) {
[
all
...]
UnixSocket.h
69
uint32_t
write_head
= (read_head_ + valid_bytes_) % data_.size();
local
70
if (message.len <= data_.size() -
write_head
) {
71
memcpy(data_.data() +
write_head
, &message, message.len);
73
uint32_t len1 = data_.size() -
write_head
;
74
memcpy(data_.data() +
write_head
, &message, len1);
Completed in 7799 milliseconds