Home
last modified time | relevance | path

Searched refs:prune_rows (Results 1 – 5 of 5) sorted by relevance

/system/core/logd/
DSimpleLogBuffer.cpp269 unsigned long prune_rows; in MaybePrune() local
270 if (stats_->ShouldPrune(id, max_size_[id], &prune_rows)) { in MaybePrune()
271 Prune(id, prune_rows, 0); in MaybePrune()
275 bool SimpleLogBuffer::Prune(log_id_t id, unsigned long prune_rows, uid_t caller_uid) { in Prune() argument
307 KickReader(oldest, id, prune_rows); in Prune()
313 if (--prune_rows == 0) { in Prune()
343 void SimpleLogBuffer::KickReader(LogReaderThread* reader, log_id_t id, unsigned long prune_rows) { in KickReader() argument
355 LOG(WARNING) << "Skipping " << prune_rows << " entries from slow reader, " << reader->name() in KickReader()
357 reader->triggerSkip_Locked(id, prune_rows); in KickReader()
DSimpleLogBuffer.h50 virtual bool Prune(log_id_t id, unsigned long prune_rows, uid_t uid) REQUIRES(lock_);
58 void KickReader(LogReaderThread* reader, log_id_t id, unsigned long prune_rows)
DSerializedLogBuffer.cpp209 unsigned long prune_rows = bytes_to_free / 300; in KickReader() local
210 LOG(WARNING) << "Skipping " << prune_rows << " entries from slow reader, " << reader->name() in KickReader()
212 reader->triggerSkip_Locked(id, prune_rows); in KickReader()
DLogStatistics.cpp440 unsigned long* prune_rows) const { in ShouldPrune()
455 *prune_rows = elements * size_over / sizes; in ShouldPrune()
456 if (*prune_rows < min_elements) { in ShouldPrune()
457 *prune_rows = min_elements; in ShouldPrune()
459 if (*prune_rows > kMaxPrune) { in ShouldPrune()
460 *prune_rows = kMaxPrune; in ShouldPrune()
DLogStatistics.h544 bool ShouldPrune(log_id id, unsigned long max_size, unsigned long* prune_rows) const