Commit graph

66722 commits

Author SHA1 Message Date
Tom Cherry
cbfb0e38e9 Merge "libmodprobe: remove SetMinimumLogSeverity() from constructor" am: 03325fb854 am: daa14e59cd am: 3b7f554c8e am: 3793693264 am: f664dd717f
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1387857

Change-Id: Idf56c61fe7e7d74c911876266575c37e8d56b05a
2020-08-04 23:02:10 +00:00
Tom Cherry
f664dd717f Merge "libmodprobe: remove SetMinimumLogSeverity() from constructor" am: 03325fb854 am: daa14e59cd am: 3b7f554c8e am: 3793693264
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1387857

Change-Id: I7273e533975375fb5191fe9dc8b4da3713368082
2020-08-04 22:45:13 +00:00
Tom Cherry
3793693264 Merge "libmodprobe: remove SetMinimumLogSeverity() from constructor" am: 03325fb854 am: daa14e59cd am: 3b7f554c8e
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1387857

Change-Id: I2cf894f9f71ed6caa383c71f4d9115d838d8af35
2020-08-04 22:31:23 +00:00
Tom Cherry
3b7f554c8e Merge "libmodprobe: remove SetMinimumLogSeverity() from constructor" am: 03325fb854 am: daa14e59cd
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1387857

Change-Id: Ibb1d40eb215a74182f81b0310ea63d762eb1a957
2020-08-04 22:11:30 +00:00
Tom Cherry
daa14e59cd Merge "libmodprobe: remove SetMinimumLogSeverity() from constructor" am: 03325fb854
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1387857

Change-Id: Ifed528d6dfaaebe116b6b0714a77def969b76a27
2020-08-04 21:57:12 +00:00
Tom Cherry
03325fb854 Merge "libmodprobe: remove SetMinimumLogSeverity() from constructor" 2020-08-04 21:30:09 +00:00
Steven Moreland
0e998f69fa Merge "perfboot: significant figures + units for summary" am: fe8dec0447 am: b76d1b8873 am: 5b175d1261 am: bd246dfd1e am: f58a8fae60
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1386892

Change-Id: Idb2a73317f17be4ffd3d565eb869647687e8fc04
2020-08-04 19:39:27 +00:00
Steven Moreland
f58a8fae60 Merge "perfboot: significant figures + units for summary" am: fe8dec0447 am: b76d1b8873 am: 5b175d1261 am: bd246dfd1e
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1386892

Change-Id: I334b5cd416778d244bea14e6925a537a00117b95
2020-08-04 19:22:42 +00:00
Steven Moreland
bd246dfd1e Merge "perfboot: significant figures + units for summary" am: fe8dec0447 am: b76d1b8873 am: 5b175d1261
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1386892

Change-Id: I7ed82e502a94444d291107eedb0a56e1a0d0fb65
2020-08-04 19:06:37 +00:00
Steven Moreland
5b175d1261 Merge "perfboot: significant figures + units for summary" am: fe8dec0447 am: b76d1b8873
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1386892

Change-Id: I32a01ad3ebf2eae40bbcadeeada4babaf8d0696c
2020-08-04 18:46:14 +00:00
Steven Moreland
b76d1b8873 Merge "perfboot: significant figures + units for summary" am: fe8dec0447
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1386892

Change-Id: I0c3c4c09a23c9a9dd041b0d4d822d885bf1047b0
2020-08-04 18:28:54 +00:00
Steven Moreland
fe8dec0447 Merge "perfboot: significant figures + units for summary" 2020-08-04 18:10:32 +00:00
Tom Cherry
3085d957e8 libmodprobe: remove SetMinimumLogSeverity() from constructor
Only the parent executable, not libraries should set this value.

Note that `modprobe` in toolbox and first stage init, the two primary
users of this library already set this same minimum log severity.

Test: build
Change-Id: I888968deede3323cc270efc3cfd1b40fc521d2da
2020-08-04 08:28:36 -07:00
Jaegeuk Kim
9e1b09355a Merge "support f2fs casefolding formatting tool" am: ef2c28bf71 am: ec91233684 am: a704bca725 am: 50a033ed3a am: dbaab1820d
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1367758

Change-Id: I70eb34942e53f3cac03439a9d1ba6fca3fc87713
2020-08-04 06:31:14 +00:00
Jaegeuk Kim
dbaab1820d Merge "support f2fs casefolding formatting tool" am: ef2c28bf71 am: ec91233684 am: a704bca725 am: 50a033ed3a
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1367758

Change-Id: Idbcf723a9d773c42037f0f6d86a27a8486f17503
2020-08-04 06:06:43 +00:00
Jaegeuk Kim
50a033ed3a Merge "support f2fs casefolding formatting tool" am: ef2c28bf71 am: ec91233684 am: a704bca725
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1367758

Change-Id: I92a6351be6f6fb067c67ff29bfdde6d1555cd55b
2020-08-04 05:44:53 +00:00
Jaegeuk Kim
a704bca725 Merge "support f2fs casefolding formatting tool" am: ef2c28bf71 am: ec91233684
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1367758

Change-Id: I626360c9acdf0fcbcd3320b27ea1af6a2a59f4aa
2020-08-04 05:10:19 +00:00
Jaegeuk Kim
ec91233684 Merge "support f2fs casefolding formatting tool" am: ef2c28bf71
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1367758

Change-Id: I5b7c3e91f42832db1186f8b10064f96cac0d2ee3
2020-08-04 04:49:13 +00:00
Jaegeuk Kim
ef2c28bf71 Merge "support f2fs casefolding formatting tool" 2020-08-04 04:18:07 +00:00
Steven Moreland
18b73dd0b6 perfboot: significant figures + units for summary
This is correct significant figures/units based on the precision of our
measurements, but it does not reflect our actual certainty re the output
data, since in reality, confidence is diminished by temperature, device,
hardware revision, time of day/month/year, spurious activity, data
connectivity, app install list, inherent randomness of multiprogramming,
sensor activity, user interaction, /data caches, build-by-build
differences, charging state, data fragmentation, race-driven sleeps,
cosmic radiation, factory defects, local magnetic or gravitational field
differences, changes in device momentum, or other known and unknown
causes.

Bug: N/A
Test: run perfboot.py, and output has:
    mean: 10801 ms
    median: 10801 ms
    standard deviation: 18 ms
Change-Id: I796396acc203b29e9a14e4d6dffa58db7b8cd9fb
2020-08-04 00:58:40 +00:00
Tom Cherry
59cb155197 Merge "liblog: don't cache property size values and move to own file" am: 001a5df898 am: 6c33a55292 am: 119daf8d48 am: 77b7348571 am: 15840d433e
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1386258

Change-Id: I9fc043bce2c9421a3f79a2e547bee9a79f19646f
2020-08-04 00:52:34 +00:00
Tom Cherry
15840d433e Merge "liblog: don't cache property size values and move to own file" am: 001a5df898 am: 6c33a55292 am: 119daf8d48 am: 77b7348571
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1386258

Change-Id: Id5e12fd64fd966d3840930760abc8fcf1b307d71
2020-08-04 00:33:23 +00:00
Tom Cherry
77b7348571 Merge "liblog: don't cache property size values and move to own file" am: 001a5df898 am: 6c33a55292 am: 119daf8d48
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1386258

Change-Id: I778f24358722093c4e1b62716c17483664004795
2020-08-04 00:06:22 +00:00
Tom Cherry
119daf8d48 Merge "liblog: don't cache property size values and move to own file" am: 001a5df898 am: 6c33a55292
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1386258

Change-Id: I28f115dba48abb789668d98bde792792c4618f33
2020-08-03 23:42:14 +00:00
Tom Cherry
6c33a55292 Merge "liblog: don't cache property size values and move to own file" am: 001a5df898
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1386258

Change-Id: If8240d3cc1761a201e80592a2bc5a84cb5bd773d
2020-08-03 23:18:36 +00:00
Tom Cherry
001a5df898 Merge "liblog: don't cache property size values and move to own file" 2020-08-03 22:59:03 +00:00
Tom Cherry
21509680e1 Merge "liblog: use unique log tags for is_loggable tests" am: d851b2ab07 am: 51d1bb3504 am: cbf354d26c am: 3d6e4537f7 am: f7466e6c1a
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1385942

Change-Id: Ie1652c2350389861f54a0580deb2510ae65966bb
2020-08-03 22:52:00 +00:00
Tom Cherry
f7466e6c1a Merge "liblog: use unique log tags for is_loggable tests" am: d851b2ab07 am: 51d1bb3504 am: cbf354d26c am: 3d6e4537f7
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1385942

Change-Id: I6d3f744fbf5b20356b612163ee7ca691e188a7dd
2020-08-03 22:25:45 +00:00
Tom Cherry
3d6e4537f7 Merge "liblog: use unique log tags for is_loggable tests" am: d851b2ab07 am: 51d1bb3504 am: cbf354d26c
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1385942

Change-Id: I5c8a81a8ed6846231c7d0bb0135612e37ad3a0a4
2020-08-03 22:02:30 +00:00
Tom Cherry
cbf354d26c Merge "liblog: use unique log tags for is_loggable tests" am: d851b2ab07 am: 51d1bb3504
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1385942

Change-Id: I9e27c767a30efcbc5df2f2f2b483290ff333cbfe
2020-08-03 21:36:47 +00:00
Matthew Maurer
0fccc4e2df Merge "Add support for tipc_send()" am: 0b9a329303 am: 7ae978ca0d am: 1f54d51ab4 am: b787e57045 am: e9b9a74938
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1339493

Change-Id: Iebc642cc43bf62867e6cd5dd32133c2c0abefdd7
2020-08-03 21:26:51 +00:00
Elliott Hughes
517ae246b0 Merge "libdebuggerd: do a to-do." am: 5c2c72b44b am: c9ca928f3f am: 3d8a7e789e am: df2c9ffdc9 am: 8690f93129
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1386256

Change-Id: Idc0ba61db8189b649ea86b62fa65f0895224fd90
2020-08-03 21:25:56 +00:00
Tom Cherry
51d1bb3504 Merge "liblog: use unique log tags for is_loggable tests" am: d851b2ab07
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1385942

Change-Id: I236cf6bfa72a32213a0ade3fa870867619113c65
2020-08-03 21:13:16 +00:00
Matthew Maurer
e9b9a74938 Merge "Add support for tipc_send()" am: 0b9a329303 am: 7ae978ca0d am: 1f54d51ab4 am: b787e57045
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1339493

Change-Id: I79b25976b7b9b7ce0a33929d1223726f6ccfbcd5
2020-08-03 21:00:24 +00:00
Elliott Hughes
8690f93129 Merge "libdebuggerd: do a to-do." am: 5c2c72b44b am: c9ca928f3f am: 3d8a7e789e am: df2c9ffdc9
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1386256

Change-Id: I961e8f521afab5d7f2d8ba0cfe6896e4cb1f306f
2020-08-03 20:59:39 +00:00
Tom Cherry
d851b2ab07 Merge "liblog: use unique log tags for is_loggable tests" 2020-08-03 20:46:30 +00:00
Matthew Maurer
b787e57045 Merge "Add support for tipc_send()" am: 0b9a329303 am: 7ae978ca0d am: 1f54d51ab4
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1339493

Change-Id: I0c6a3d04f5aa2bc79bb2977f258808735e301f71
2020-08-03 20:23:28 +00:00
Elliott Hughes
df2c9ffdc9 Merge "libdebuggerd: do a to-do." am: 5c2c72b44b am: c9ca928f3f am: 3d8a7e789e
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1386256

Change-Id: I33267e2f2dd44dfdebcfa782d57aeaa5cd10ed59
2020-08-03 20:23:10 +00:00
Tom Cherry
d2743ef5c9 liblog: don't cache property size values and move to own file
Don't cache the property size values since they're only queried at the
start of logd and only once during dumpstate.  Initializing
SerializedLogBuffer, which includes all of the logd queries, takes
under 100us without the cache, certainly fast enough that this cache
is unneeded.

Move these functions to their own file in preparation for removing
them from liblog.

Test: log sizes set appropriately
Change-Id: I15a2fd687dcffb4eab2f22ee0825ca86e40cdba3
2020-08-03 13:17:12 -07:00
Matthew Maurer
1f54d51ab4 Merge "Add support for tipc_send()" am: 0b9a329303 am: 7ae978ca0d
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1339493

Change-Id: Ic3c489709e86e7a52b62030293c7090212f6db8b
2020-08-03 19:55:26 +00:00
Elliott Hughes
3d8a7e789e Merge "libdebuggerd: do a to-do." am: 5c2c72b44b am: c9ca928f3f
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1386256

Change-Id: Ib9efe72edb3b115e29ea7d52d99b04991269069e
2020-08-03 19:55:19 +00:00
Matthew Maurer
7ae978ca0d Merge "Add support for tipc_send()" am: 0b9a329303
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1339493

Change-Id: I6c9bb3cdef14ff187420004db4f6703b20c124f5
2020-08-03 19:44:22 +00:00
Matthew Maurer
0b9a329303 Merge "Add support for tipc_send()" 2020-08-03 19:35:55 +00:00
Elliott Hughes
c9ca928f3f Merge "libdebuggerd: do a to-do." am: 5c2c72b44b
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1386256

Change-Id: I5ff9003b566f684c22a53513cf8819652ebf71b9
2020-08-03 19:32:46 +00:00
Elliott Hughes
5c2c72b44b Merge "libdebuggerd: do a to-do." 2020-08-03 18:56:46 +00:00
Elliott Hughes
713ec25103 libdebuggerd: do a to-do.
Until 77fdb22cf6, logd started as
AID_ROOT and then dropped its privileges. Since then, there's been no
reason to use string comparisons rather than checking the uid.

Test: pkill -SEGV logd
Test: treehugger
Change-Id: Ia709f8f59cb0ab9abac7df84c96c701b5d0a83ea
2020-08-03 18:56:35 +00:00
Tom Cherry
a11420856b Merge "liblog: disable property tag tests" am: 86adfc7b0b am: 10e45c1dc1 am: d184e1d652 am: 4fdbce9654 am: 96488bc212
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1385695

Change-Id: I4bab2522ddf1f26c6c320844f9e6ae28cc1c91fb
2020-08-03 18:48:32 +00:00
Tom Cherry
50d021ca7b liblog: use unique log tags for is_loggable tests
Apparently these tests are run in parallel, which causes errors since
they use the same log tag.  Use unique log tags based on pid to fix
this.

Also re-enable the previously disabled tests.

Bug: 162669552
Test: run these tests 100x+ and see that they no longer fail
Change-Id: Ib20d638e5e559bca23adec479a5dcf64075e376e
2020-08-03 11:38:59 -07:00
Tom Cherry
96488bc212 Merge "liblog: disable property tag tests" am: 86adfc7b0b am: 10e45c1dc1 am: d184e1d652 am: 4fdbce9654
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1385695

Change-Id: I6d5e10e3f87367677945f25f2f691ec76013f455
2020-08-03 18:28:52 +00:00
Tom Cherry
4fdbce9654 Merge "liblog: disable property tag tests" am: 86adfc7b0b am: 10e45c1dc1 am: d184e1d652
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1385695

Change-Id: I9efb35456eecdc1d3315fa59dbdec5eeed29bd33
2020-08-03 18:07:32 +00:00