Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f4470d0 authored by Roopa Sattiraju's avatar Roopa Sattiraju Committed by Etienne Ruffieux
Browse files

Increase the size of the snooz log buffer from 512 to 1024

Bug: 235641807
Test: Flash and capture the snoop log. Check to see the increase in
size.

Change-Id: I2305b33614183e9e42305094dfb1ac64576101e4
parent 53fe426f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -437,7 +437,7 @@ size_t SnoopLogger::GetMaxPacketsPerBuffer() {
  // and 512 KB memory for userdebug/eng builds
  auto is_debuggable = os::GetSystemProperty(kIsDebuggableProperty);
  size_t btsnooz_max_memory_usage_bytes =
      ((is_debuggable.has_value() && common::StringTrim(is_debuggable.value()) == "1") ? 512 : 256) * 1024;
      ((is_debuggable.has_value() && common::StringTrim(is_debuggable.value()) == "1") ? 1024 : 256) * 1024;
  // Calculate max number of packets based on max memory usage and max packet size
  return btsnooz_max_memory_usage_bytes / kDefaultBtSnoozMaxBytesPerPacket;
}