Veerendranath Jakkam 25b3a6f0a4 Synchronize on_ring_buffer_data_callback and writeRingbufferFiles
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
2020-04-15 21:53:48 -07:00
2020-04-07 16:37:40 -07:00
2020-04-15 23:54:45 +00:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-08 13:36:51 +00:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-09 08:27:34 +00:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-09 08:27:34 +00:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-09 08:27:34 +00:00
2019-04-23 12:51:21 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-09 08:27:51 +00:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2020-04-09 08:27:34 +00:00
2020-04-07 16:37:40 -07:00
2020-04-07 16:37:40 -07:00
2019-12-13 14:24:23 -08:00
2016-08-30 11:28:36 -07:00
2016-08-30 11:28:36 -07:00
2019-12-10 09:51:58 -08:00
Description
No description provided
134 MiB
Languages
C++ 56.3%
AIDL 41.2%
C 1.5%
Rust 0.4%
Java 0.4%
Other 0.1%