Home
last modified time | relevance | path

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

/system/logging/liblog/
Dlogd_writer.cpp122 struct iovec newVec[nr + headerLength]; in LogdWrite() local
148 newVec[0].iov_base = (unsigned char*)&header; in LogdWrite()
149 newVec[0].iov_len = sizeof(header); in LogdWrite()
161 newVec[headerLength].iov_base = &buffer; in LogdWrite()
162 newVec[headerLength].iov_len = sizeof(buffer); in LogdWrite()
164 ret = TEMP_FAILURE_RETRY(writev(logd_socket.sock(), newVec, 2)); in LogdWrite()
173 newVec[i].iov_base = vec[i - headerLength].iov_base; in LogdWrite()
174 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in LogdWrite()
177 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in LogdWrite()
178 if (newVec[i].iov_len) { in LogdWrite()
[all …]
Dpmsg_writer.cpp72 struct iovec newVec[nr + headerLength]; in PmsgWrite() local
130 newVec[0].iov_base = (unsigned char*)&pmsgHeader; in PmsgWrite()
131 newVec[0].iov_len = sizeof(pmsgHeader); in PmsgWrite()
132 newVec[1].iov_base = (unsigned char*)&header; in PmsgWrite()
133 newVec[1].iov_len = sizeof(header); in PmsgWrite()
136 newVec[i].iov_base = vec[i - headerLength].iov_base; in PmsgWrite()
137 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in PmsgWrite()
140 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in PmsgWrite()
141 if (newVec[i].iov_len) { in PmsgWrite()
150 ret = TEMP_FAILURE_RETRY(writev(pmsg_fd, newVec, i)); in PmsgWrite()
/system/core/libstats/push_compat/
Dstatsd_writer.c160 struct iovec newVec[nr + headerLength]; in statsdWrite() local
195 newVec[0].iov_base = (unsigned char*)&header; in statsdWrite()
196 newVec[0].iov_len = sizeof(header); in statsdWrite()
214 newVec[headerLength].iov_base = &buffer; in statsdWrite()
215 newVec[headerLength].iov_len = sizeof(buffer); in statsdWrite()
217 ret = TEMP_FAILURE_RETRY(writev(sock, newVec, 2)); in statsdWrite()
227 newVec[i].iov_base = vec[i - headerLength].iov_base; in statsdWrite()
228 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in statsdWrite()
231 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in statsdWrite()
232 if (newVec[i].iov_len) { in statsdWrite()
[all …]
/system/logging/liblog/tests/
Dliblog_benchmark.cpp203 struct iovec newVec[nr + header_length]; in BM_pmsg_short() local
205 newVec[0].iov_base = (unsigned char*)&pmsg_header; in BM_pmsg_short()
206 newVec[0].iov_len = sizeof(pmsg_header); in BM_pmsg_short()
207 newVec[1].iov_base = (unsigned char*)&header; in BM_pmsg_short()
208 newVec[1].iov_len = sizeof(header); in BM_pmsg_short()
218 newVec[2].iov_base = &buffer; in BM_pmsg_short()
219 newVec[2].iov_len = sizeof(buffer); in BM_pmsg_short()
224 writev(pstore_fd, newVec, nr); in BM_pmsg_short()