Commit Graph

21152 Commits

Author SHA1 Message Date
Mark Salyzyn 7cc8013e37 liblog: fix android_log_printLogLine empty event string
Allow _one_ empty line to get through before evaluating
further. Add __android_log_bswrite testing for content
and contentless cases; checking for propagation and for
expected printing. As for printing which is fixed here,
security variants cover the same code paths as the events.

Bug: 26646213
Change-Id: I484718aa604e0a00afde4c34a00e87468ea93aa5
2016-01-20 14:15:19 -08:00
Alex Vakulenko ea05ff9229 crash_reporter/metricsd: Update libchrome APIs to r369476
The new libchrome has been ported from Chromium and some APIs have
changed. Make necessary changes at call sites.

Change-Id: I9e45975cdef43913270b82e3fca2c027e614a464
2016-01-20 13:43:30 -08:00
James Hawkins 6d0d12a9d8 bootstat: Followup cleanups from the initial bootstat checkin.
* Clarify the README.md that the logs data may be utilized by anyone.
* Fix a whitespace issue.

Bug: 21724738
Change-Id: Id472485f505afb14588ccd645844a3f4a728abc2
2016-01-20 13:17:02 -08:00
Josh Gao 6176298929 Merge "adbd: don\'t leave zombies when subprocess creation fails." am: fb494eb40d
am: da0678946c

* commit 'da0678946c771f0cae418f866cbb9d2f0b2a4276':
  adbd: don't leave zombies when subprocess creation fails.
2016-01-20 20:54:13 +00:00
Josh Gao da0678946c Merge "adbd: don\'t leave zombies when subprocess creation fails."
am: fb494eb40d

* commit 'fb494eb40da4361b27c838480c7d7dcb86871331':
  adbd: don't leave zombies when subprocess creation fails.
2016-01-20 20:50:50 +00:00
Josh Gao fb494eb40d Merge "adbd: don't leave zombies when subprocess creation fails." 2016-01-20 20:44:40 +00:00
Josh Gao c65fae9ef5 adbd: don't leave zombies when subprocess creation fails.
Bug: http://b/26660675
Change-Id: I8e65d51af73f409c30be47575f76bc6b0f227c54
2016-01-20 11:40:31 -08:00
Paul Crowley 558d8f4364 Remove no-longer-needed crypto init builtins
Changes to the way FBE works to support lifecycles mean that these
commands aren't needed any more.

Bug: 22358539
Change-Id: Id73339e0aa8070dd688f35b5d59de75236961395
2016-01-20 11:20:23 +00:00
Steve Fung 333fc5c19d crash_reporter: Add unit tests to debug builds
Add crash_reporter_tests to debug builds, so that they can be
run by test_droid.

Bug: 26663796
Change-Id: Iddaa14ab55474875a45b0e8482bac310fbe8cff2
Test: /data/nativetest/crash_reporter_tests exists on eng build
2016-01-20 01:15:20 -08:00
Calin Juravle 7043542495 Merge "nativebrige: log code_cache access errors to stderr as well" am: 312532252a
am: 5828fe2f95

* commit '5828fe2f956aba75be6bb670385478497b4476fa':
  nativebrige: log code_cache access errors to stderr as well
2016-01-20 02:38:29 +00:00
Calin Juravle 5828fe2f95 Merge "nativebrige: log code_cache access errors to stderr as well"
am: 312532252a

* commit '312532252afeb7a488b9de98259e1fd038aa42b2':
  nativebrige: log code_cache access errors to stderr as well
2016-01-20 02:36:08 +00:00
Calin Juravle 312532252a Merge "nativebrige: log code_cache access errors to stderr as well" 2016-01-20 02:31:47 +00:00
Bertrand Simonnet edc273af0f Merge "metricsd: Add tests to the default debug build." am: 7fbe8b9285
am: 3a6ccb35dc

* commit '3a6ccb35dc7d2bcadd9c5f7ed88c4e07e6a42242':
  metricsd: Add tests to the default debug build.
2016-01-20 02:31:33 +00:00
Bertrand Simonnet 3a6ccb35dc Merge "metricsd: Add tests to the default debug build."
am: 7fbe8b9285

* commit '7fbe8b9285904513650af83711fd9c3562642de5':
  metricsd: Add tests to the default debug build.
2016-01-20 02:29:35 +00:00
Bertrand Simonnet 7fbe8b9285 Merge "metricsd: Add tests to the default debug build." 2016-01-20 02:18:33 +00:00
Bertrand SIMONNET 30c174b7f9 metricsd: Add tests to the default debug build.
This will allow the tests to be run by the continuous builder.

Bug: 26571398
Change-Id: I7eae2761603e83e3d1f003cb3b06582abc4ed24f
Test: Build an eng build. The tests are installed.
2016-01-19 17:58:40 -08:00
Elliott Hughes 19cd398e28 Merge "bootstat: Fix the base includes to be AOSP-friendly." am: d320cbf5ba
am: fe37b0da22

* commit 'fe37b0da22097f52ac50067a146786cb381da0ba':
  bootstat: Fix the base includes to be AOSP-friendly.
2016-01-20 01:41:27 +00:00
Elliott Hughes fe37b0da22 Merge "bootstat: Fix the base includes to be AOSP-friendly."
am: d320cbf5ba

* commit 'd320cbf5ba1b4490700f2ff89af29f28a2e326e3':
  bootstat: Fix the base includes to be AOSP-friendly.
2016-01-20 01:38:44 +00:00
Bertrand Simonnet 26078f3a5f Merge "metricsd: Persist metrics on shutdown." am: 195bbc718b
am: 4101ba7bbc

* commit '4101ba7bbc2989d95d0361c341a268b54e6eac23':
  metricsd: Persist metrics on shutdown.
2016-01-20 01:37:07 +00:00
Mark Salyzyn dcaa0ed94b Merge "logd: prune maintain per-id watermark (part deux)" am: 390100305b
am: 0252f43322

* commit '0252f43322b2997f609fc698e281dbbb2a43404f':
  logd: prune maintain per-id watermark (part deux)
2016-01-20 01:37:01 +00:00
Elliott Hughes d320cbf5ba Merge "bootstat: Fix the base includes to be AOSP-friendly." 2016-01-20 01:29:12 +00:00
James Hawkins eabe08b55e bootstat: Fix the base includes to be AOSP-friendly.
Change-Id: I625cc55b41f5258addf3bb74bcef42063c565465
Bug: 21724738
2016-01-20 01:28:48 +00:00
Bertrand Simonnet 4101ba7bbc Merge "metricsd: Persist metrics on shutdown."
am: 195bbc718b

* commit '195bbc718be30c025a512ad6e1f7eae866ae67cd':
  metricsd: Persist metrics on shutdown.
2016-01-20 01:26:09 +00:00
Mark Salyzyn 0252f43322 Merge "logd: prune maintain per-id watermark (part deux)"
am: 390100305b

* commit '390100305b032d0d6bd42a1797c01b35c714d13f':
  logd: prune maintain per-id watermark (part deux)
2016-01-20 01:26:03 +00:00
Bertrand Simonnet 195bbc718b Merge "metricsd: Persist metrics on shutdown." 2016-01-20 00:58:37 +00:00
Mark Salyzyn 390100305b Merge "logd: prune maintain per-id watermark (part deux)" 2016-01-20 00:50:10 +00:00
Mark Salyzyn 7fd6c5c6f5 logd: prune maintain per-id watermark (part deux)
iterator corruption as we allow mLast to slip through the FIFO

Bug: 23685592
Bug: 26646087
Change-Id: Ifcbaecf390ee47b195c3d823d080c66c15db4530
2016-01-19 16:14:39 -08:00
James Hawkins 0f9caa1ea2 Merge "system/core: Add initial implementation of the bootstat command." am: d0009911de
am: 0e16bdf276

* commit '0e16bdf276cd1ff1363a8a8217f56993c1aacef1':
  system/core: Add initial implementation of the bootstat command.
2016-01-19 23:30:40 +00:00
James Hawkins 0e16bdf276 Merge "system/core: Add initial implementation of the bootstat command."
am: d0009911de

* commit 'd0009911de67f0625df8175bd298fa3863c1879d':
  system/core: Add initial implementation of the bootstat command.
2016-01-19 23:28:51 +00:00
James Hawkins d0009911de Merge "system/core: Add initial implementation of the bootstat command." 2016-01-19 23:23:48 +00:00
James Hawkins abd73e6179 system/core: Add initial implementation of the bootstat command.
The bootstat command enables the measurement and logging of boot time
metrics
for GMS devices.

BUG:21724738
Change-Id: I331456dd38a60fb4ef24a4d5320909dbad30db66
2016-01-19 15:10:38 -08:00
Josh Gao 08550d5cc9 Merge "fastboot: show progress when sending sparse images." am: 6a27196516
am: 69c9274c3e

* commit '69c9274c3ea023a7d3505592fab99f87144a61dd':
  fastboot: show progress when sending sparse images.
2016-01-19 23:08:28 +00:00
Josh Gao 69c9274c3e Merge "fastboot: show progress when sending sparse images."
am: 6a27196516

* commit '6a27196516da6b900f39dc2c601f60452b917e21':
  fastboot: show progress when sending sparse images.
2016-01-19 23:06:32 +00:00
Josh Gao 163b83d01c Merge "fastboot: add .clang-format." am: d8ecde09c7
am: 5210031f9c

* commit '5210031f9c9873bbeca5f63af1ec22620590d2c1':
  fastboot: add .clang-format.
2016-01-19 23:06:32 +00:00
Josh Gao 5210031f9c Merge "fastboot: add .clang-format."
am: d8ecde09c7

* commit 'd8ecde09c717ded786fde49855ba7347bc2b3910':
  fastboot: add .clang-format.
2016-01-19 23:04:07 +00:00
Josh Gao 6a27196516 Merge "fastboot: show progress when sending sparse images." 2016-01-19 23:02:14 +00:00
Josh Gao d8ecde09c7 Merge "fastboot: add .clang-format." 2016-01-19 22:58:38 +00:00
Josh Gao 9da9ac5b2a fastboot: show progress when sending sparse images.
Bug: http://b/25443220
Change-Id: Ica0c88aea2a0661f39ff1415ebba464c037651da
2016-01-19 14:50:18 -08:00
Josh Gao cb73db7cd8 fastboot: add .clang-format.
Change-Id: Iacad00adfa3948118543d680651814b3c8c42858
2016-01-19 14:49:45 -08:00
Christopher Ferris df69064892 Merge "Allow setting an arbitrary alignment for an entry." am: ad12df20e9
am: 5633ccf042

* commit '5633ccf042f76a894fa31fe1579846ac516fa60c':
  Allow setting an arbitrary alignment for an entry.
2016-01-19 22:35:06 +00:00
Christopher Ferris 5633ccf042 Merge "Allow setting an arbitrary alignment for an entry."
am: ad12df20e9

* commit 'ad12df20e9094aa1b81c896f75f915f37b0a869b':
  Allow setting an arbitrary alignment for an entry.
2016-01-19 22:33:06 +00:00
Christopher Ferris ad12df20e9 Merge "Allow setting an arbitrary alignment for an entry." 2016-01-19 22:28:02 +00:00
Bertrand SIMONNET d6862317a6 metricsd: Persist metrics on shutdown.
When metricsd receives a SIGTERM signal (on system shutdown for
example), save the metrics to disk before exiting.

Bug: 26184202
Test: Start metricsd. Log a metric sample. Stop metricsd. The metric is
saved to disk.

Change-Id: Ib224efa8837130393fac5d06fa80d320263cfc84
2016-01-19 14:04:25 -08:00
Christopher Ferris 5e9f3d44a3 Allow setting an arbitrary alignment for an entry.
The current code only allows the creation of an entry that is 32 bit
aligned.

Bug: 25446938

Change-Id: I6c924df12ef2bc067b3de7789257af7e3db7e904
2016-01-19 13:55:53 -08:00
Steve Fung b3f35c3842 Merge "crash_reporter: Add README.md" am: 8074b16e3a
am: 2010bd7a22

* commit '2010bd7a22635408c1cfd5b7eb9d0e96497b2e7c':
  crash_reporter: Add README.md
2016-01-19 21:28:40 +00:00
Steve Fung 2010bd7a22 Merge "crash_reporter: Add README.md"
am: 8074b16e3a

* commit '8074b16e3a6053f885921a954f8e510ad7720c67':
  crash_reporter: Add README.md
2016-01-19 21:26:00 +00:00
Steve Fung 8074b16e3a Merge "crash_reporter: Add README.md" 2016-01-19 21:14:28 +00:00
Rubin Xu c43b47a31c Merge "Add logd security buffer tag types and string write API." am: 95d1bd2421
am: 7fa35356a8

* commit '7fa35356a845ee301c442e51e35c5690c35e54d5':
  Add logd security buffer tag types and string write API.
2016-01-19 20:55:00 +00:00
Rubin Xu 7fa35356a8 Merge "Add logd security buffer tag types and string write API."
am: 95d1bd2421

* commit '95d1bd2421385b6ad8e3a9df985b100bb3c328af':
  Add logd security buffer tag types and string write API.
2016-01-19 20:52:10 +00:00
Rubin Xu 95d1bd2421 Merge "Add logd security buffer tag types and string write API." 2016-01-19 20:40:16 +00:00