• Home
  • Raw
  • Download

Lines Matching refs:element

179     LogBufferElement& element = *it;  in Erase()  local
180 log_id_t id = element.log_id(); in Erase()
186 int key = (id == LOG_ID_EVENTS || id == LOG_ID_SECURITY) ? element.GetTag() : element.uid(); in Erase()
197 LogBufferPidIteratorMap::iterator found = mLastWorstPidOfSystem[id].find(element.pid()); in Erase()
205 int key = (id == LOG_ID_EVENTS || id == LOG_ID_SECURITY) ? element->GetTag() : element->uid(); in Erase()
209 stats()->Erase(element.ToLogStatisticsElement()); in Erase()
211 stats()->Subtract(element.ToLogStatisticsElement()); in Erase()
241 bool coalesce(LogBufferElement* element, uint16_t dropped) { in coalesce() argument
242 uint64_t key = LogBufferElementKey(element->uid(), element->pid(), element->tid()); in coalesce()
257 void add(LogBufferElement* element) { in add() argument
258 uint64_t key = LogBufferElementKey(element->uid(), element->pid(), element->tid()); in add()
259 map[key] = element; in add()
264 void clear(LogBufferElement* element) { in clear() argument
265 uint64_t current = element->realtime().nsec() - (EXPIRE_RATELIMIT * NS_PER_SEC); in clear()
355 LogBufferElement& element = *it; in Prune() local
357 if (element.log_id() != id || element.uid() != caller_uid) { in Prune()
362 if (oldest && oldest->start() <= element.sequence()) { in Prune()
440 LogBufferElement& element = *it; in Prune() local
442 if (oldest && oldest->start() <= element.sequence()) { in Prune()
447 if (element.log_id() != id) { in Prune()
453 uint16_t dropped = element.dropped_count(); in Prune()
461 if (dropped && last.coalesce(&element, dropped)) { in Prune()
466 int key = (id == LOG_ID_EVENTS || id == LOG_ID_SECURITY) ? element.GetTag() in Prune()
467 : element.uid(); in Prune()
469 if (check_high_priority && prune_->IsHighPriority(&element)) { in Prune()
470 last.clear(&element); in Prune()
486 worst_sizes -= element.msg_len(); in Prune()
491 if (element.realtime() < (lastt->realtime() - too_old) || in Prune()
492 element.realtime() > lastt->realtime()) { in Prune()
497 last.add(&element); in Prune()
498 if (worstPid && ((!gc && element.pid() == worstPid) || in Prune()
499 mLastWorstPidOfSystem[id].find(element.pid()) == in Prune()
504 mLastWorstPidOfSystem[id][element.pid()] = it; in Prune()
514 if (key != worst || (worstPid && element.pid() != worstPid)) { in Prune()
516 last.clear(&element); in Prune()
530 uint16_t len = element.msg_len(); in Prune()
536 stats()->Drop(element.ToLogStatisticsElement()); in Prune()
537 element.SetDropped(1); in Prune()
538 if (last.coalesce(&element, 1)) { in Prune()
541 last.add(&element); in Prune()
573 LogBufferElement& element = *it; in Prune() local
575 if (element.log_id() != id) { in Prune()
580 if (oldest && oldest->start() <= element.sequence()) { in Prune()
585 if (check_low_priority && !element.dropped_count() && prune_->IsLowPriority(&element)) { in Prune()
599 LogBufferElement& element = *it; in Prune() local
601 if (element.log_id() != id) { in Prune()
606 if (oldest && oldest->start() <= element.sequence()) { in Prune()