<feed xmlns='http://www.w3.org/2005/Atom'>
<title>replicant/core/logd, branch master</title>
<subtitle>Patches not merged yet, used for building and testing them
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/'/>
<entry>
<title>logd: notify kernel log readers of new messages</title>
<updated>2018-04-25T16:43:21+00:00</updated>
<author>
<name>Tom Cherry</name>
<email>tomcherry@google.com</email>
</author>
<published>2018-04-24T21:13:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=398b551d51ef8bda9836c3c629aa2dbe9c30c39d'/>
<id>398b551d51ef8bda9836c3c629aa2dbe9c30c39d</id>
<content type='text'>
LogBuffer::log() returns either a negative number on error or a
positive number indicating the length of the message written.
Therefore, the check to notify kernel log readers of a new message
should be that this function's return value is &gt; 0.

Bug: 78209416
Test: `adb logcat -b kernel` updates when new log messages are present
Merged-In: Icc18c0c22e62340994e5c26aedb72282d61c1541
Change-Id: Icc18c0c22e62340994e5c26aedb72282d61c1541
(cherry picked from commit cbfebdbadb283ee13c555e7d79037fb5089caa4a)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
LogBuffer::log() returns either a negative number on error or a
positive number indicating the length of the message written.
Therefore, the check to notify kernel log readers of a new message
should be that this function's return value is &gt; 0.

Bug: 78209416
Test: `adb logcat -b kernel` updates when new log messages are present
Merged-In: Icc18c0c22e62340994e5c26aedb72282d61c1541
Change-Id: Icc18c0c22e62340994e5c26aedb72282d61c1541
(cherry picked from commit cbfebdbadb283ee13c555e7d79037fb5089caa4a)
</pre>
</div>
</content>
</entry>
<entry>
<title>Make logd more aggressive when scanning for the position from which to resume logging.</title>
<updated>2018-04-04T21:46:45+00:00</updated>
<author>
<name>Joe Onorato</name>
<email>joeo@google.com</email>
</author>
<published>2018-04-04T21:35:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=4bba6982455de327bdf018c386032277a08860d5'/>
<id>4bba6982455de327bdf018c386032277a08860d5</id>
<content type='text'>
Events in the LogBuffer are supposed to be sorted by timestamp, but for a variety
of reasons that doesn't always happen.  When a LogReader is reading from LogBuffer,
LogBuffer starts at the newest event, and scans backward through the list, looking
for the last event.  Previously it would accept a couple that were a little bit out
of order, but if it found one that was ancient, it would just bail. This change
removes that check for the ancient messages.  They are probably indicative of
something else upstream, but since there is no invariant of the list being sorted,
this change simplifies the search algorithm, and makes it look only at the previous
300 events.

Bug: 77222120
Test: while true ; do frameworks/base/cmds/statsd/run_tests.sh 2h ; done
Change-Id: I0824ee7590d34056ce27233a87cd7802c28f50e4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Events in the LogBuffer are supposed to be sorted by timestamp, but for a variety
of reasons that doesn't always happen.  When a LogReader is reading from LogBuffer,
LogBuffer starts at the newest event, and scans backward through the list, looking
for the last event.  Previously it would accept a couple that were a little bit out
of order, but if it found one that was ancient, it would just bail. This change
removes that check for the ancient messages.  They are probably indicative of
something else upstream, but since there is no invariant of the list being sorted,
this change simplifies the search algorithm, and makes it look only at the previous
300 events.

Bug: 77222120
Test: while true ; do frameworks/base/cmds/statsd/run_tests.sh 2h ; done
Change-Id: I0824ee7590d34056ce27233a87cd7802c28f50e4
</pre>
</div>
</content>
</entry>
<entry>
<title>logd: identical check access message data out of range</title>
<updated>2018-03-14T14:26:20+00:00</updated>
<author>
<name>Mark Salyzyn</name>
<email>salyzyn@google.com</email>
</author>
<published>2018-03-13T18:06:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=fec2e2c783ff95c1cc42f5f8474e54d9602f713d'/>
<id>fec2e2c783ff95c1cc42f5f8474e54d9602f713d</id>
<content type='text'>
(cherry pick from commit 22712428b825951e8a4b38f0482a7cc397e5cd78)

Discovered while running AddressSanitizer, binary events were fed
into logd that were smaller than the binary event string header.
Fix is to check the buffer sizes before performing the memcmp
operation.

Test: compile
Bug: 74574189
Change-Id: Ic01ef6fb0725258d9f39bbdca582ed648a1adc5d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry pick from commit 22712428b825951e8a4b38f0482a7cc397e5cd78)

Discovered while running AddressSanitizer, binary events were fed
into logd that were smaller than the binary event string header.
Fix is to check the buffer sizes before performing the memcmp
operation.

Test: compile
Bug: 74574189
Change-Id: Ic01ef6fb0725258d9f39bbdca582ed648a1adc5d
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Remove unreachable condition" am: a281389bf4 am: 061759246c</title>
<updated>2018-03-02T01:06:14+00:00</updated>
<author>
<name>Yi Kong</name>
<email>yikong@google.com</email>
</author>
<published>2018-03-02T01:06:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=42d12f82bcb7bcd260b4fb85f623e5f56aaec2a9'/>
<id>42d12f82bcb7bcd260b4fb85f623e5f56aaec2a9</id>
<content type='text'>
am: 7a4070ca95

Change-Id: I9431f46a90cd1b08569a2413ab5ecc0699a0f880
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
am: 7a4070ca95

Change-Id: I9431f46a90cd1b08569a2413ab5ecc0699a0f880
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unreachable condition</title>
<updated>2018-03-01T22:54:08+00:00</updated>
<author>
<name>Yi Kong</name>
<email>yikong@google.com</email>
</author>
<published>2018-03-01T22:48:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=141cceee587d5a8867f9a19045ad22bb4369d955'/>
<id>141cceee587d5a8867f9a19045ad22bb4369d955</id>
<content type='text'>
Comparison of unsigned enum expression &lt; 0 is always false. Fixes
tautological-unsigned-enum-zero-compare warning.

Bug: 72331526
Test: m
Change-Id: I17eb218b256015f5f406fd24324a49b05a0e8866
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Comparison of unsigned enum expression &lt; 0 is always false. Fixes
tautological-unsigned-enum-zero-compare warning.

Bug: 72331526
Test: m
Change-Id: I17eb218b256015f5f406fd24324a49b05a0e8866
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "bpfmt." am: 0609e8d231 am: b57755c429</title>
<updated>2018-02-20T02:24:45+00:00</updated>
<author>
<name>Elliott Hughes</name>
<email>enh@google.com</email>
</author>
<published>2018-02-20T02:24:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=4c33b88c4b072c38eed1bd81517f94885de385f7'/>
<id>4c33b88c4b072c38eed1bd81517f94885de385f7</id>
<content type='text'>
am: a91867a788

Change-Id: Ieb0985434e2464e47b3adb93fb27fe5042e91657
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
am: a91867a788

Change-Id: Ieb0985434e2464e47b3adb93fb27fe5042e91657
</pre>
</div>
</content>
</entry>
<entry>
<title>bpfmt.</title>
<updated>2018-02-17T01:58:14+00:00</updated>
<author>
<name>Elliott Hughes</name>
<email>enh@google.com</email>
</author>
<published>2018-02-17T01:58:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=dc699a269f6a22af6cbba0f6e1359fde103dc4d3'/>
<id>dc699a269f6a22af6cbba0f6e1359fde103dc4d3</id>
<content type='text'>
Bug: N/A
Test: builds
Change-Id: I89ad00e1c4c7e0767bc80a7ac7935a4d55e090ac
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: N/A
Test: builds
Change-Id: I89ad00e1c4c7e0767bc80a7ac7935a4d55e090ac
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Use ro.logd.kernel for kernel logcat" am: d443dd327a am: 66d9c4aab8</title>
<updated>2018-01-16T19:01:37+00:00</updated>
<author>
<name>Siarhei Vishniakou</name>
<email>svv@google.com</email>
</author>
<published>2018-01-16T19:01:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=278e099f101c1a3fc89bae9f0d59ca993840c950'/>
<id>278e099f101c1a3fc89bae9f0d59ca993840c950</id>
<content type='text'>
am: 11273bc5b1

Change-Id: I9a829bc6c88503279ef8188c38bf5cebb9d0962e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
am: 11273bc5b1

Change-Id: I9a829bc6c88503279ef8188c38bf5cebb9d0962e
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Use ro.logd.kernel for kernel logcat"</title>
<updated>2018-01-16T18:24:08+00:00</updated>
<author>
<name>Treehugger Robot</name>
<email>treehugger-gerrit@google.com</email>
</author>
<published>2018-01-16T18:24:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=d443dd327a7340be02e57b202b3a8bb8d23c0978'/>
<id>d443dd327a7340be02e57b202b3a8bb8d23c0978</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "LogAudit: remove dynamic rate limiter" am: 9e7cec22e0 am: cf7f19f4b9</title>
<updated>2018-01-04T17:40:10+00:00</updated>
<author>
<name>Jeff Vander Stoep</name>
<email>jeffv@google.com</email>
</author>
<published>2018-01-04T17:40:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=b589cb7accf1af74c663e3acfa1576bd3231740d'/>
<id>b589cb7accf1af74c663e3acfa1576bd3231740d</id>
<content type='text'>
am: 9de839aeb7

Change-Id: I9ed04073db90617e0bc8e11e54dc7e798138ae65
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
am: 9de839aeb7

Change-Id: I9ed04073db90617e0bc8e11e54dc7e798138ae65
</pre>
</div>
</content>
</entry>
</feed>
