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

Commit 29370830 authored by Roopa Sattiraju's avatar Roopa Sattiraju
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
Merged-In: I2305b33614183e9e42305094dfb1ac64576101e4
parent a409e029
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -435,7 +435,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;
}