/system/core/liblog/ |
D | logger_write.c | 40 static int __write_to_log_init(log_id_t, struct iovec *vec, size_t nr); 41 static int (*write_to_log)(log_id_t, struct iovec *vec, size_t nr) = __write_to_log_init; 224 static int __write_to_log_daemon(log_id_t log_id, struct iovec *vec, size_t nr) in __write_to_log_daemon() argument 232 len += vec[i].iov_len; in __write_to_log_daemon() 240 if (vec[0].iov_len < 4) { in __write_to_log_daemon() 257 if (vec[0].iov_len < 4) { in __write_to_log_daemon() 284 tag = android_lookupEventTag(m, get4LE(vec[0].iov_base)); in __write_to_log_daemon() 298 const char *tag = vec[0].iov_base; in __write_to_log_daemon() 299 size_t len = vec[0].iov_len; in __write_to_log_daemon() 309 len = vec[1].iov_len; in __write_to_log_daemon() [all …]
|
D | pmsg_writer.c | 42 struct iovec *vec, size_t nr); 99 struct iovec *vec, size_t nr) in pmsgWrite() argument 109 if (vec[0].iov_len < 4) { in pmsgWrite() 113 if (SNET_EVENT_LOG_TAG != get4LE(vec[0].iov_base)) { in pmsgWrite() 158 newVec[i].iov_base = vec[i - headerLength].iov_base; in pmsgWrite() 159 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in pmsgWrite() 214 struct iovec vec[3]; in __android_log_pmsg_file_write() local 254 vec[0].iov_base = &prio; in __android_log_pmsg_file_write() 255 vec[0].iov_len = sizeof(char); in __android_log_pmsg_file_write() 256 vec[1].iov_base = (unsigned char *)tag; in __android_log_pmsg_file_write() [all …]
|
D | fake_writer.c | 31 struct iovec *vec, size_t nr); 66 struct iovec *vec, size_t nr) in fakeWrite() argument 76 ret = TEMP_FAILURE_RETRY(fakeLogWritev(logFd, vec, nr)); in fakeWrite()
|
D | fake_log_device.c | 462 struct iovec* vec = stackVec; in showLog() local 470 vec = (struct iovec*)malloc(sizeof(struct iovec)*numVecs); in showLog() 471 if (vec == NULL) { in showLog() 475 vec = stackVec; in showLog() 483 struct iovec* v = vec; in showLog() 527 int cc = writev(fileno(stderr), vec, v-vec); in showLog() 545 if (vec != stackVec) in showLog() 546 free(vec); in showLog()
|
D | logd_writer.c | 52 struct iovec *vec, size_t nr); 118 struct iovec *vec, size_t nr) in logdWrite() argument 212 newVec[i].iov_base = vec[i - headerLength].iov_base; in logdWrite() 213 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in logdWrite()
|
D | logger.h | 49 int (*write)(log_id_t logId, struct timespec *ts, struct iovec *vec, size_t nr);
|
/system/extras/tests/pagingtest/ |
D | pageinout_test.c | 14 unsigned char *vec; in pageinout_test() local 31 vec = alloc_mincore_vec(file_size); in pageinout_test() 32 if (vec == NULL) { in pageinout_test() 42 if (!check_caching((void *)buf, vec, file_size, false)) { in pageinout_test() 57 if (!check_caching((void *)buf, vec, file_size, true)) { in pageinout_test() 73 if (!check_caching((void *)buf, vec, file_size, false)) { in pageinout_test() 88 free(vec); in pageinout_test()
|
D | pagingtest.c | 96 unsigned char *vec; in alloc_mincore_vec() local 98 vec = malloc(mincore_vec_len(size)); in alloc_mincore_vec() 99 if (vec == NULL) { in alloc_mincore_vec() 103 return vec; in alloc_mincore_vec() 106 bool check_caching(void *buf, unsigned char *vec, size_t size, bool is_cached) { in check_caching() argument 110 if (mincore(buf, size, vec)) { in check_caching() 117 if (!(vec[i] & 0x1)) { in check_caching() 124 if (vec[i] & 0x1) { in check_caching()
|
D | pagingtest.h | 13 bool check_caching(void *buf, unsigned char *vec, size_t size, bool is_cached);
|
/system/core/libsysutils/src/ |
D | SocketClient.cpp | 94 struct iovec vec[2]; in sendBinaryMsg() local 95 vec[0].iov_base = (void *) buf; in sendBinaryMsg() 96 vec[0].iov_len = sizeof(buf); in sendBinaryMsg() 97 vec[1].iov_base = (void *) data; in sendBinaryMsg() 98 vec[1].iov_len = len; in sendBinaryMsg() 101 int result = sendDataLockedv(vec, (len > 0) ? 2 : 1); in sendBinaryMsg() 154 struct iovec vec[1]; in sendData() local 155 vec[0].iov_base = (void *) data; in sendData() 156 vec[0].iov_len = len; in sendData() 159 int rc = sendDataLockedv(vec, 1); in sendData()
|
/system/core/sdcard/ |
D | sdcard.c | 701 struct iovec vec[2]; in fuse_reply() local 708 vec[0].iov_base = &hdr; in fuse_reply() 709 vec[0].iov_len = sizeof(hdr); in fuse_reply() 710 vec[1].iov_base = data; in fuse_reply() 711 vec[1].iov_len = len; in fuse_reply() 713 res = writev(fuse->fd, vec, 2); in fuse_reply() 768 struct iovec vec[3]; in fuse_notify_delete() local 781 vec[0].iov_base = &hdr; in fuse_notify_delete() 782 vec[0].iov_len = sizeof(hdr); in fuse_notify_delete() 783 vec[1].iov_base = &data; in fuse_notify_delete() [all …]
|