Commit Graph

2 Commits

Author SHA1 Message Date
xshu
4cb3316da4 Followup CL for ringbuffer in wifi_hal
Bug: 72462185
Test: compile, unit tests
Test: manual
flash device
In a terminal create the archive:
adb shell
su
cd bugreports
lshal debug android.hardware.wifi@1.2::IWifi >> archive.cpio

In another termial pull and extract the archive:
adb pull bugreports/archive.cpio
cpio -iv < archive.cpio

Verify extracted files are the same as files generated in device under
/data/vendor/tombstones/wifi

Change-Id: Ia2e89dd08edce1f0ec6c0c6e2c26231a0a9d4cc4
2018-01-24 17:43:48 -08:00
xshu
5899e8e9a1 move ringbuffer interactions to wifi hal
Shallow copy of ringbuffer is stored inside the hal.
The maximum ringbuffer size is configured by the
framework.

overrides IBase::debug to:
1. write ringbuffers in memory to flash (wifi tombstones)
2. write wifi tombstones to lshal debug fd in archived format

Bug: 70171481
Test: compile, run on device
Test: run "lshal debug android.hardware.wifi@1.2::IWifi >>
archive.cpio" and compared archived files with originals using diff command
Change-Id: I33c30e37f245cfa36e005ba8cdc46e91f6de9237
2018-01-23 13:54:19 -08:00