Lines Matching refs:logId

43 static int writeToLocalAvailable(log_id_t logId);
45 static int writeToLocalWrite(log_id_t logId, struct timespec* ts,
97 log_id_t logId; member
187 log_id_t logId = element->logId; in LogBufferLog() local
190 log->number[logId]++; in LogBufferLog()
191 log->size[logId] += element->len; in LogBufferLog()
192 log->totalSize[logId] += element->len; in LogBufferLog()
194 if (log->last[logId] == &log->head) { in LogBufferLog()
195 log->last[logId] = list_tail(&log->head); in LogBufferLog()
197 while (log->size[logId] > log->maxSize[logId]) { in LogBufferLog()
198 struct listnode* node = log->last[logId]; in LogBufferLog()
203 log->number[logId]--; in LogBufferLog()
204 log->size[logId] -= e->len; in LogBufferLog()
222 log->last[logId] = node->prev; in LogBufferLog()
265 static int writeToLocalAvailable(log_id_t logId) { in writeToLocalAvailable() argument
270 if ((logId >= NUMBER_OF_LOG_BUFFERS) || BLOCK_LOG_BUFFERS(logId)) { in writeToLocalAvailable()
289 static int writeToLocalWrite(log_id_t logId, struct timespec* ts, in writeToLocalWrite() argument
294 if ((logId >= NUMBER_OF_LOG_BUFFERS) || BLOCK_LOG_BUFFERS(logId)) { in writeToLocalWrite()
318 element->logId = logId; in writeToLocalWrite()
366 log_id_t logId; in writeToLocalNode() local
369 logId = element->logId; in writeToLocalNode()
371 if ((logMask & (1 << logId)) && !--tail) { in writeToLocalNode()
400 log_id_t logId; in writeToLocalRead() local
404 logId = element->logId; in writeToLocalRead()
406 if (logMask & (1 << logId)) { in writeToLocalRead()
413 log_msg->entry_v3.lid = logId; in writeToLocalRead()
442 ->logId)); in writeToLocalPoll()
465 log_id_t logId = logger->logId; in writeToLocalClear() local
468 if ((logId >= NUMBER_OF_LOG_BUFFERS) || BLOCK_LOG_BUFFERS(logId)) { in writeToLocalClear()
473 logbuf.number[logId] = 0; in writeToLocalClear()
474 logbuf.last[logId] = &logbuf.head; in writeToLocalClear()
479 if (logId == element->logId) { in writeToLocalClear()
508 log_id_t logId = logger->logId; in writeToLocalGetSize() local
510 if ((logId < NUMBER_OF_LOG_BUFFERS) && !BLOCK_LOG_BUFFERS(logId)) { in writeToLocalGetSize()
512 ret = logbuf.maxSize[logId]; in writeToLocalGetSize()
525 log_id_t logId = logger->logId; in writeToLocalSetSize() local
526 if ((logId < NUMBER_OF_LOG_BUFFERS) || !BLOCK_LOG_BUFFERS(logId)) { in writeToLocalSetSize()
528 ret = logbuf.maxSize[logId] = size; in writeToLocalSetSize()
540 log_id_t logId = logger->logId; in writeToLocalGetReadbleSize() local
542 if ((logId < NUMBER_OF_LOG_BUFFERS) && !BLOCK_LOG_BUFFERS(logId)) { in writeToLocalGetReadbleSize()
544 ret = logbuf.serviceName ? (ssize_t)logbuf.size[logId] : -EBADF; in writeToLocalGetReadbleSize()