<feed xmlns='http://www.w3.org/2005/Atom'>
<title>system_core/logd, branch replicant-6.0</title>
<subtitle>system/core
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/system_core/'/>
<entry>
<title>Merge tag 'android-6.0.1_r3' of https://android.googlesource.com/platform/system/core into HEAD</title>
<updated>2015-12-08T00:29:46+00:00</updated>
<author>
<name>Steve Kondik</name>
<email>steve@cyngn.com</email>
</author>
<published>2015-12-08T00:29:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/system_core/commit/?id=b1e86e2d1fc315a3b108c28a5ff6bc649ea584d5'/>
<id>b1e86e2d1fc315a3b108c28a5ff6bc649ea584d5</id>
<content type='text'>
Android 6.0.1 release 3

Change-Id: I8b65c0223e3444360432abd871a9d8f007831ba0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Android 6.0.1 release 3

Change-Id: I8b65c0223e3444360432abd871a9d8f007831ba0
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge tag 'android-6.0.0_r26' into cm-13.0</title>
<updated>2015-11-05T18:26:36+00:00</updated>
<author>
<name>Ricardo Cerqueira</name>
<email>ricardo@cyngn.com</email>
</author>
<published>2015-11-05T01:04:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/system_core/commit/?id=31756a19f79d62b71fa87c4e656e00bfbb9a5385'/>
<id>31756a19f79d62b71fa87c4e656e00bfbb9a5385</id>
<content type='text'>
Android 6.0.0 release 26

Change-Id: I93d1e3767cbacab2b18cff360065c91b9eaf1d96
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Android 6.0.0 release 26

Change-Id: I93d1e3767cbacab2b18cff360065c91b9eaf1d96
</pre>
</div>
</content>
</entry>
<entry>
<title>logd: pruning time horizon</title>
<updated>2015-11-04T21:00:23+00:00</updated>
<author>
<name>Mark Salyzyn</name>
<email>salyzyn@google.com</email>
</author>
<published>2015-10-12T20:45:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/system_core/commit/?id=a6116961338548409b14076eefbef211afc8c3fe'/>
<id>a6116961338548409b14076eefbef211afc8c3fe</id>
<content type='text'>
Estimate a time horizon of ten fold for worst UID pruning

Bug: 25453210
Bug: 24782000
Change-Id: I7118deb6d42531c68ed2ac2a59c57b0580b942cc
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Estimate a time horizon of ten fold for worst UID pruning

Bug: 25453210
Bug: 24782000
Change-Id: I7118deb6d42531c68ed2ac2a59c57b0580b942cc
</pre>
</div>
</content>
</entry>
<entry>
<title>logd: optimize code hotspots</title>
<updated>2015-11-01T12:29:12+00:00</updated>
<author>
<name>Mark Salyzyn</name>
<email>salyzyn@google.com</email>
</author>
<published>2015-10-02T16:22:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/system_core/commit/?id=75e80775d98d1d6e4fd3e6f3a8059a23413e031e'/>
<id>75e80775d98d1d6e4fd3e6f3a8059a23413e031e</id>
<content type='text'>
Discovered that we had a few libc hotspots. Adjust code to generally
reduce or nullify the number of calls to malloc, free, strlen,
strcmp, strncmp, memcmp &amp; strncasecmp. Total gain looks to be about
3% of logd's processing time. malloc still contributes to 3%, but all
others are now total 0.5%.

Bug: 23685592
Change-Id: Ife721121667969260cdb8b055524ae90f5911278
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Discovered that we had a few libc hotspots. Adjust code to generally
reduce or nullify the number of calls to malloc, free, strlen,
strcmp, strncmp, memcmp &amp; strncasecmp. Total gain looks to be about
3% of logd's processing time. malloc still contributes to 3%, but all
others are now total 0.5%.

Bug: 23685592
Change-Id: Ife721121667969260cdb8b055524ae90f5911278
</pre>
</div>
</content>
</entry>
<entry>
<title>logd: log_strtok_r deal with nuls</title>
<updated>2015-11-01T12:29:12+00:00</updated>
<author>
<name>Mark Salyzyn</name>
<email>salyzyn@google.com</email>
</author>
<published>2015-09-02T14:39:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/system_core/commit/?id=c5a324fe084901a93215498f983703e483d9c000'/>
<id>c5a324fe084901a93215498f983703e483d9c000</id>
<content type='text'>
Rename to log_strntok_r and change from dealing with strings
to dealing with a string and an associated length.

Bug: 23517551
Change-Id: Ia72f1305a53f55eeef9861ac378fb8205fd2378e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rename to log_strntok_r and change from dealing with strings
to dealing with a string and an associated length.

Bug: 23517551
Change-Id: Ia72f1305a53f55eeef9861ac378fb8205fd2378e
</pre>
</div>
</content>
</entry>
<entry>
<title>logd: Add LogUtils.h</title>
<updated>2015-11-01T12:29:12+00:00</updated>
<author>
<name>Mark Salyzyn</name>
<email>salyzyn@google.com</email>
</author>
<published>2015-08-28T15:02:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/system_core/commit/?id=064c3a5ea2bdc8a0332f8d7d1c40f593c4b2ff1f'/>
<id>064c3a5ea2bdc8a0332f8d7d1c40f593c4b2ff1f</id>
<content type='text'>
Move prototypes from LogBufferElement.h to LogUtils.h

Change-Id: I55e42e17e6c997e35b2b78b87fd2f84f8f393282
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Move prototypes from LogBufferElement.h to LogUtils.h

Change-Id: I55e42e17e6c997e35b2b78b87fd2f84f8f393282
</pre>
</div>
</content>
</entry>
<entry>
<title>logd: klogd deal with nuls in dmesg</title>
<updated>2015-11-01T12:29:12+00:00</updated>
<author>
<name>Mark Salyzyn</name>
<email>salyzyn@google.com</email>
</author>
<published>2015-09-04T18:37:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/system_core/commit/?id=0d139dd7bb2d85c8a9b7e41f9898c1e44215e3ab'/>
<id>0d139dd7bb2d85c8a9b7e41f9898c1e44215e3ab</id>
<content type='text'>
Switch to using string and length in all transactions, treating
trailing nuls the same as spaces.

ToDo: change dumpstate (bugreport) to use logcat -b printable _regardless_

Bug: 23517551
Change-Id: I42162365e6bf8ed79d356e7b689a673902116fdb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Switch to using string and length in all transactions, treating
trailing nuls the same as spaces.

ToDo: change dumpstate (bugreport) to use logcat -b printable _regardless_

Bug: 23517551
Change-Id: I42162365e6bf8ed79d356e7b689a673902116fdb
</pre>
</div>
</content>
</entry>
<entry>
<title>logd: klogd: sniff for time correction on Mediatek</title>
<updated>2015-11-01T12:29:12+00:00</updated>
<author>
<name>Mark Salyzyn</name>
<email>salyzyn@google.com</email>
</author>
<published>2015-09-01T20:09:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/system_core/commit/?id=f3337cb9c39deb52d42f32595190ef3298115761'/>
<id>f3337cb9c39deb52d42f32595190ef3298115761</id>
<content type='text'>
Need some more flexibility when parsing kernel messages
cluttered with extra fluff. This is the minimal relaxation
we can do to the rules to ensure that we work on all
possible devices and kernels when sniffing for time
correction information.

We want to minimize any future maintenance, keep in mind
klogd is a "userdebug" or "eng" feature and is disabled
in "user" builds. Manage expectations.

Bug: 23517551
Change-Id: I026d074e14fb2550e728683e85a973bd87e78a9c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Need some more flexibility when parsing kernel messages
cluttered with extra fluff. This is the minimal relaxation
we can do to the rules to ensure that we work on all
possible devices and kernels when sniffing for time
correction information.

We want to minimize any future maintenance, keep in mind
klogd is a "userdebug" or "eng" feature and is disabled
in "user" builds. Manage expectations.

Bug: 23517551
Change-Id: I026d074e14fb2550e728683e85a973bd87e78a9c
</pre>
</div>
</content>
</entry>
<entry>
<title>logd: klogd and Mediatek part deux</title>
<updated>2015-11-01T12:29:12+00:00</updated>
<author>
<name>Mark Salyzyn</name>
<email>salyzyn@google.com</email>
</author>
<published>2015-08-26T16:30:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/system_core/commit/?id=b9aae121b6b9c690f170c30de15d0b2cd5397a46'/>
<id>b9aae121b6b9c690f170c30de15d0b2cd5397a46</id>
<content type='text'>
- switch to an open coded strnrchr
- validity checking on n, taglen and b values.

Bug: 23517551
Change-Id: I568e25c5aa6d8474835454a0e83b19c2921b7986
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- switch to an open coded strnrchr
- validity checking on n, taglen and b values.

Bug: 23517551
Change-Id: I568e25c5aa6d8474835454a0e83b19c2921b7986
</pre>
</div>
</content>
</entry>
<entry>
<title>logd: klogd and Mediatek</title>
<updated>2015-11-01T12:29:12+00:00</updated>
<author>
<name>Mark Salyzyn</name>
<email>salyzyn@google.com</email>
</author>
<published>2015-08-26T16:30:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/system_core/commit/?id=16fa18971114e105f6a48156e4a4902f5fcc5235'/>
<id>16fa18971114e105f6a48156e4a4902f5fcc5235</id>
<content type='text'>
- sniff for PID in kernel log messages if available
- properly deal with klogd watermark in face of modified output
- deal more stringently with priority tag, must have [ following
- suppress process-name stutter in tag that can happen
- do not use : to demark tag if within [ ]

Mediatek-special change that adds &lt;printk_state&gt;(&lt;cpu&gt;)[&lt;pid&gt;:&lt;comm&gt;]
as a prefix to the printk messages. Along the lines of (simplified
for entertainment purposes, YMMV):

    char tbuf[50]; /* printk prefix */
    int this_cpu = smp_processor_id();
    char state = __raw_get_cpu_var(printk_state);
    unsigned tlen = snprintf(tbuf, sizeof(tbuf), "%c(%x)[%d:%s]",
               state, this_cpu, current-&gt;pid, current-&gt;comm);

Bug: 23517551
Change-Id: I568e25c5aa6d8474835454a0e83b19c2921b7985
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- sniff for PID in kernel log messages if available
- properly deal with klogd watermark in face of modified output
- deal more stringently with priority tag, must have [ following
- suppress process-name stutter in tag that can happen
- do not use : to demark tag if within [ ]

Mediatek-special change that adds &lt;printk_state&gt;(&lt;cpu&gt;)[&lt;pid&gt;:&lt;comm&gt;]
as a prefix to the printk messages. Along the lines of (simplified
for entertainment purposes, YMMV):

    char tbuf[50]; /* printk prefix */
    int this_cpu = smp_processor_id();
    char state = __raw_get_cpu_var(printk_state);
    unsigned tlen = snprintf(tbuf, sizeof(tbuf), "%c(%x)[%d:%s]",
               state, this_cpu, current-&gt;pid, current-&gt;comm);

Bug: 23517551
Change-Id: I568e25c5aa6d8474835454a0e83b19c2921b7985
</pre>
</div>
</content>
</entry>
</feed>
