25b3a6f0a4
on_ring_buffer_data_callback callback is invoked on getting the corresponding driver/firmware ringbuffer logs. This callback further stores the ringbuffer data locally in cur_buffer. While the data is getting updated through this callback, writeRingbufferFilesInternal can get triggered from a different context which accesses the same buffer -cur_buffer. Synchronization is missing between these two contexts while accessing the buffer and this commit attempts the same. Bug: 153970986 Test: Manual - collect the bugreport and check the ring buffer logs. Change-Id: Id99a517f4d72872b84b48c3df75dd29743f3e9b2 |
||
---|---|---|
.. | ||
tests | ||
android.hardware.wifi@1.0-service-lazy.rc | ||
android.hardware.wifi@1.0-service.rc | ||
android.hardware.wifi@1.0-service.xml | ||
Android.mk | ||
hidl_callback_util.h | ||
hidl_return_util.h | ||
hidl_struct_util.cpp | ||
hidl_struct_util.h | ||
hidl_sync_util.cpp | ||
hidl_sync_util.h | ||
OWNERS | ||
ringbuffer.cpp | ||
ringbuffer.h | ||
service.cpp | ||
THREADING.README | ||
wifi.cpp | ||
wifi.h | ||
wifi_ap_iface.cpp | ||
wifi_ap_iface.h | ||
wifi_chip.cpp | ||
wifi_chip.h | ||
wifi_feature_flags.cpp | ||
wifi_feature_flags.h | ||
wifi_iface_util.cpp | ||
wifi_iface_util.h | ||
wifi_legacy_hal.cpp | ||
wifi_legacy_hal.h | ||
wifi_legacy_hal_stubs.cpp | ||
wifi_legacy_hal_stubs.h | ||
wifi_mode_controller.cpp | ||
wifi_mode_controller.h | ||
wifi_nan_iface.cpp | ||
wifi_nan_iface.h | ||
wifi_p2p_iface.cpp | ||
wifi_p2p_iface.h | ||
wifi_rtt_controller.cpp | ||
wifi_rtt_controller.h | ||
wifi_sta_iface.cpp | ||
wifi_sta_iface.h | ||
wifi_status_util.cpp | ||
wifi_status_util.h |