Home
last modified time | relevance | path

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

/system/core/liblog/
Dlogd_writer.cpp130 struct iovec newVec[nr + headerLength]; in logdWrite() local
178 newVec[0].iov_base = (unsigned char*)&header; in logdWrite()
179 newVec[0].iov_len = sizeof(header); in logdWrite()
191 newVec[headerLength].iov_base = &buffer; in logdWrite()
192 newVec[headerLength].iov_len = sizeof(buffer); in logdWrite()
194 ret = TEMP_FAILURE_RETRY(writev(sock, newVec, 2)); in logdWrite()
209 newVec[headerLength].iov_base = &buffer; in logdWrite()
210 newVec[headerLength].iov_len = sizeof(buffer); in logdWrite()
212 ret = TEMP_FAILURE_RETRY(writev(sock, newVec, 2)); in logdWrite()
222 newVec[i].iov_base = vec[i - headerLength].iov_base; in logdWrite()
[all …]
Dpmsg_writer.cpp100 struct iovec newVec[nr + headerLength]; in pmsgWrite() local
150 newVec[0].iov_base = (unsigned char*)&pmsgHeader; in pmsgWrite()
151 newVec[0].iov_len = sizeof(pmsgHeader); in pmsgWrite()
152 newVec[1].iov_base = (unsigned char*)&header; in pmsgWrite()
153 newVec[1].iov_len = sizeof(header); in pmsgWrite()
156 newVec[i].iov_base = vec[i - headerLength].iov_base; in pmsgWrite()
157 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in pmsgWrite()
160 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in pmsgWrite()
161 if (newVec[i].iov_len) { in pmsgWrite()
170 ret = TEMP_FAILURE_RETRY(writev(atomic_load(&pmsgLoggerWrite.context.fd), newVec, i)); in pmsgWrite()
/system/core/libstats/
Dstatsd_writer.c179 struct iovec newVec[nr + headerLength]; in statsdWrite() local
214 newVec[0].iov_base = (unsigned char*)&header; in statsdWrite()
215 newVec[0].iov_len = sizeof(header); in statsdWrite()
233 newVec[headerLength].iov_base = &buffer; in statsdWrite()
234 newVec[headerLength].iov_len = sizeof(buffer); in statsdWrite()
236 ret = TEMP_FAILURE_RETRY(writev(sock, newVec, 2)); in statsdWrite()
246 newVec[i].iov_base = vec[i - headerLength].iov_base; in statsdWrite()
247 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in statsdWrite()
250 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in statsdWrite()
251 if (newVec[i].iov_len) { in statsdWrite()
[all …]
/system/core/liblog/tests/
Dliblog_benchmark.cpp218 struct iovec newVec[nr + header_length]; in BM_pmsg_short() local
220 newVec[0].iov_base = (unsigned char*)&pmsg_header; in BM_pmsg_short()
221 newVec[0].iov_len = sizeof(pmsg_header); in BM_pmsg_short()
222 newVec[1].iov_base = (unsigned char*)&header; in BM_pmsg_short()
223 newVec[1].iov_len = sizeof(header); in BM_pmsg_short()
233 newVec[2].iov_base = &buffer; in BM_pmsg_short()
234 newVec[2].iov_len = sizeof(buffer); in BM_pmsg_short()
239 writev(pstore_fd, newVec, nr); in BM_pmsg_short()