Commit Graph

13005 Commits

Author SHA1 Message Date
Mark Salyzyn b6c411cf07 Merge "liblog: logprint use <endian.h> part three" 2015-03-05 02:42:43 +00:00
Mark Salyzyn b99a984bc7 am 8b101304: am 92a2dab6: am 051222c2: Merge changes I12d6aa4e,I9e802113,I2b30e0fc,Iaf387b9e
* commit '8b1013049ef7768d13b3e26479212b46e6d905e1':
  logcat: remove dead label code
  logcat: do not stop on unexpected log ID
  Revert "logd: Add minimum time bucket statistics"
  liblog: Instrument logging of logd write drops
2015-03-05 02:25:08 +00:00
Mark Salyzyn 31dd00fcf5 liblog: logprint use <endian.h> part three
Fix host/sdk builds:
- Drop logprint from list of host products
- Drop <endian.h> for FAKE_LOG_DEVICE

Change-Id: I8aa854413ff6d809f0b04987cf913eb228e4213c
2015-03-04 17:40:04 -08:00
Mark Salyzyn 8b1013049e am 92a2dab6: am 051222c2: Merge changes I12d6aa4e,I9e802113,I2b30e0fc,Iaf387b9e
* commit '92a2dab69561a0fef77f82fe2e349aaa8c7a03c3':
  logcat: remove dead label code
  logcat: do not stop on unexpected log ID
  Revert "logd: Add minimum time bucket statistics"
  liblog: Instrument logging of logd write drops
2015-03-05 01:25:35 +00:00
Mark Salyzyn 92a2dab695 am 051222c2: Merge changes I12d6aa4e,I9e802113,I2b30e0fc,Iaf387b9e
* commit '051222c2436f3cb7fdbc87cc7bc28c5d3495eb28':
  logcat: remove dead label code
  logcat: do not stop on unexpected log ID
  Revert "logd: Add minimum time bucket statistics"
  liblog: Instrument logging of logd write drops
2015-03-05 01:17:19 +00:00
Mark Salyzyn 051222c243 Merge changes I12d6aa4e,I9e802113,I2b30e0fc,Iaf387b9e
* changes:
  logcat: remove dead label code
  logcat: do not stop on unexpected log ID
  Revert "logd: Add minimum time bucket statistics"
  liblog: Instrument logging of logd write drops
2015-03-05 01:12:06 +00:00
Sami Tolvanen 86cddf4074 Do not call libcutils property_set in init through libfs_mgr
Both init and libcutils define a property_set function. The init
version sets the property directly while libcutils simply calls
__system_property_set, which sends a message to init to set the
property.

Since libfs_mgr is statically linked to libcutils, any calls to
property_set end up sending a message to init and waiting for a
response. When libfs_mgr is further statically linked to init,
this leads to init sending a message to itself when property_set
is called in fs_mgr.

Because send_prop_msg in bionic only waits for a response for
250ms, this does not cause a deadlock. However, using libcutils
to set a property in the init process is hardly a good idea.

This change removes the property_set call from fs_mgr_verity.c.
If this property is required later, it should be set elsewhere.

Change-Id: I6a28cccb1ccce960841af20a4b20c32d424b5524
2015-03-05 00:44:12 +00:00
Mark Salyzyn 33a9a897b4 am f16675f6: am 904240bb: am e53d17c1: Merge "liblog: logprint use <endian.h> part deux"
* commit 'f16675f6b939807855f02ad84b6345d58ec7bae9':
  liblog: logprint use <endian.h> part deux
2015-03-05 00:43:21 +00:00
Mark Salyzyn f16675f6b9 am 904240bb: am e53d17c1: Merge "liblog: logprint use <endian.h> part deux"
* commit '904240bb745a1dd9fe27155808f877bfd40a287b':
  liblog: logprint use <endian.h> part deux
2015-03-05 00:36:57 +00:00
Mark Salyzyn 904240bb74 am e53d17c1: Merge "liblog: logprint use <endian.h> part deux"
* commit 'e53d17c15fd5b532f651fd6d6f5d2e9bd7c68a6d':
  liblog: logprint use <endian.h> part deux
2015-03-05 00:29:54 +00:00
Mark Salyzyn e53d17c15f Merge "liblog: logprint use <endian.h> part deux" 2015-03-05 00:23:21 +00:00
Mark Salyzyn f8d62a0107 liblog: logprint use <endian.h> part deux
Change-Id: I042194d0f5ec444dd192ee9da50d6b48d556f8ac
2015-03-04 16:20:50 -08:00
Andreas Gampe 4234f6742a am a7a045a5: am 8c2c089a: am 291ce5b8: Merge "Fs_mgr: Fix format code"
* commit 'a7a045a58605f18a7c1779061b5040c6c1bbc3e2':
  Fs_mgr: Fix format code
2015-03-04 23:24:40 +00:00
Mark Salyzyn ec3def70de am 805bfea8: am 90446bf5: am eff8c801: Merge "logd: use <endian.h>"
* commit '805bfea89ac0b5064d2bf046df3a6400dbb517a3':
  logd: use <endian.h>
2015-03-04 23:24:39 +00:00
Mark Salyzyn ad966e88f5 am ddd1ea71: am e79201e4: am 4487c605: Merge changes I0ec0fe3e,I9e5fccba
* commit 'ddd1ea71b4260981fb4814da4b6580c16bd8bb7f':
  liblog: logprint use <endian.h>
  private: Add event payload structures to android_logger.h
2015-03-04 23:24:38 +00:00
Sami Tolvanen 891ea4c05e am 9c92cef4: am eb2ff9bb: am 8ee42f9c: Merge "Add init support for dm-verity logging mode"
* commit '9c92cef4480cdb463605b4ab39fbaeb586659aba':
  Add init support for dm-verity logging mode
2015-03-04 23:24:37 +00:00
Sami Tolvanen c1dadc6327 am 1ae4f750: am 6904e0c2: am a88fb24a: Merge "Add fs_mgr support for dm-verity modes"
* commit '1ae4f7507241d1754a4806f3151c385d909343cd':
  Add fs_mgr support for dm-verity modes
2015-03-04 23:24:36 +00:00
Andreas Gampe a7a045a586 am 8c2c089a: am 291ce5b8: Merge "Fs_mgr: Fix format code"
* commit '8c2c089ae2b9e07131e4125da9c44387954d04f5':
  Fs_mgr: Fix format code
2015-03-04 22:51:35 +00:00
Mark Salyzyn 805bfea89a am 90446bf5: am eff8c801: Merge "logd: use <endian.h>"
* commit '90446bf5b80048454786b69cf3bec6186abdd370':
  logd: use <endian.h>
2015-03-04 22:51:34 +00:00
Mark Salyzyn ddd1ea71b4 am e79201e4: am 4487c605: Merge changes I0ec0fe3e,I9e5fccba
* commit 'e79201e4cb030e9df773ff535d34e12c8b3c8624':
  liblog: logprint use <endian.h>
  private: Add event payload structures to android_logger.h
2015-03-04 22:51:33 +00:00
Sami Tolvanen 9c92cef448 am eb2ff9bb: am 8ee42f9c: Merge "Add init support for dm-verity logging mode"
* commit 'eb2ff9bb1b92feed65a610564569ddae525c3517':
  Add init support for dm-verity logging mode
2015-03-04 22:51:32 +00:00
Sami Tolvanen 1ae4f75072 am 6904e0c2: am a88fb24a: Merge "Add fs_mgr support for dm-verity modes"
* commit '6904e0c263a02f08c9c6f555dceafa2cce467954':
  Add fs_mgr support for dm-verity modes
2015-03-04 22:51:31 +00:00
Andreas Gampe 8c2c089ae2 am 291ce5b8: Merge "Fs_mgr: Fix format code"
* commit '291ce5b82d8a504be69132f1827e20041833c488':
  Fs_mgr: Fix format code
2015-03-04 22:44:44 +00:00
Mark Salyzyn 90446bf5b8 am eff8c801: Merge "logd: use <endian.h>"
* commit 'eff8c801fd0d9016ee039ca15e295c5a8056cc96':
  logd: use <endian.h>
2015-03-04 22:44:42 +00:00
Mark Salyzyn e79201e4cb am 4487c605: Merge changes I0ec0fe3e,I9e5fccba
* commit '4487c605eaeea2b85c8511fe915a286c3aaf4da4':
  liblog: logprint use <endian.h>
  private: Add event payload structures to android_logger.h
2015-03-04 22:44:41 +00:00
Sami Tolvanen eb2ff9bb1b am 8ee42f9c: Merge "Add init support for dm-verity logging mode"
* commit '8ee42f9c50086830edb2cdf035ad5bedcf0fa6f1':
  Add init support for dm-verity logging mode
2015-03-04 22:44:38 +00:00
Sami Tolvanen 6904e0c263 am a88fb24a: Merge "Add fs_mgr support for dm-verity modes"
* commit 'a88fb24ab43eec9710a0d4d15aedb6d4bc51a2ec':
  Add fs_mgr support for dm-verity modes
2015-03-04 22:44:37 +00:00
Andreas Gampe 291ce5b82d Merge "Fs_mgr: Fix format code" 2015-03-04 22:03:35 +00:00
Mark Salyzyn eff8c801fd Merge "logd: use <endian.h>" 2015-03-04 21:38:19 +00:00
Andreas Gampe eb69e85768 Fs_mgr: Fix format code
Suggested printing for off_t is to cast to intmax_t and print that.

Follow-up to https://android-review.googlesource.com/133111.

Change-Id: Icff6844044c3d0fa6372c3f399453a526fd89954
2015-03-04 13:29:12 -08:00
Mark Salyzyn 5f6738af48 logcat: remove dead label code
Change-Id: I12d6aa4ebf48f06faf9435b4ffedfd309629cf3b
2015-03-04 13:21:42 -08:00
Mark Salyzyn 9421b0c060 logcat: do not stop on unexpected log ID
We are changing the log read API to allow event notification
regarding logging system data loss. We would like these out
of band events to be reported.

Change-Id: I9e802113604d8cc0fc9adff0d1e014bbc40914fe
2015-03-04 13:21:42 -08:00
Mark Salyzyn 29eb57066c logd: use <endian.h>
Change-Id: Iba843c054ea4fbe1a26c7821b5613fdb5e8001a1
2015-03-04 13:21:41 -08:00
Mark Salyzyn 4ed16b4381 Revert "logd: Add minimum time bucket statistics"
This forward port reverts
    commit e457b74ce6

No longer as necessary once we add
    liblog: Instrument logging of logd write drops
Although this provided an indication of how close statistically we
were to overloading logd it is simpler to understand fails thus to
hunt and peck a corrected value for /proc/sys/net/unix/max_dgram_qlen

Change-Id: I2b30e0fc30625a48fd11a12c2d2cc6a41f26226f
2015-03-04 13:21:41 -08:00
Mark Salyzyn d45d36e011 liblog: Instrument logging of logd write drops
- If logger system is prostrated, send an event message with the
  liblog tag from the associated UID and PID with a count of
  dropped messages once logging is resumed.
- Added to the README a description of the error return values.
- Describe in the README the appropriate mitigations for dropped
  messages.
- If the caller sees this message, then
  /proc/sys/net/unix/max_dgram_qlen is likely too small

Change-Id: Iaf387b9e5e1b6aa93bebc7481f9e8353732e3229
2015-03-04 13:21:41 -08:00
Mark Salyzyn 4487c605ea Merge changes I0ec0fe3e,I9e5fccba
* changes:
  liblog: logprint use <endian.h>
  private: Add event payload structures to android_logger.h
2015-03-04 21:21:13 +00:00
Mark Salyzyn 66bfc5ccbd liblog: logprint use <endian.h>
Change-Id: I0ec0fe3e954f6f04964d58e57c817d28057b630b
2015-03-04 12:48:04 -08:00
Mark Salyzyn fa1c063feb private: Add event payload structures to android_logger.h
- common android_event_header_t
- android_event_int_t ANDROID_TYPE_INT payload
- android_log_event_int_t single ANDROID_TYPE_INT event
- android_event_long_t ANDROID_TYPE_LONG payload
- android_log_event_long_t single ANDROID_TYPE_LONG event
- android_event_string_t ANDROID_TYPE_STRING payload
- android_log_event_string_t single ANDROID_TYPE_STRING event

Change-Id: I9e5fccba38e3f230c2c4ec7dec51ed110c460f95
2015-03-04 12:48:04 -08:00
Sami Tolvanen 8ee42f9c50 Merge "Add init support for dm-verity logging mode" 2015-03-04 20:42:09 +00:00
Sami Tolvanen a88fb24ab4 Merge "Add fs_mgr support for dm-verity modes" 2015-03-04 20:41:49 +00:00
Eino-Ville Talvala 03743414cb Add ANativeWindow dataSpace; update graphics formats, color spaces
First stage of adding a new dataSpace field for ANativeWindow,
for communicating format- (and endpoint-) dependent information
about graphics buffers. For most formats, dataSpace describes the
color space of the buffer, while format describes the memory layout.

For some formats, the dataSpace may also specify that the buffer
contains depth measurements, encoded images, or other kinds of
information that is not necessarily a simple 2D image.
Rename the existing colorspace enumeration to dataspace, with an added
dataspace for depth, and sRGB gamma-corrected and linear colorspaces.

Add in a definition for Android depth point clouds as a
variable-length list of float-triplet coordinates, as the underlying
layout of buffers with format HAL_PIXEL_FORMAT_BLOB and dataSpace of
HAL_DATASPACE_DEPTH.

Also remove now-unnecessary sRGB HAL graphics formats, and remove the
alias RAW_SENSOR that was left in to ease transition to RAW16.

Change-Id: I8797f67fb9c2b18da5975f2145303ca0bf98e62d
2015-03-04 11:59:51 -08:00
Sami Tolvanen 8ff0190835 Add init support for dm-verity logging mode
Add a built-in command for loading verity state. If dm-verity
will be started in logging mode, trigger verity-logging.

Needs changes from
  Ibb82953594d234f81ad21c40f524190b88e4ac8f

Change-Id: I5af4918f2f14fdd4d07f51c55837e08111fd3748
2015-03-04 03:07:47 +00:00
Sami Tolvanen 51bf11ad95 Add fs_mgr support for dm-verity modes
Add support for dm-verity modes and storing persistent state in
a location specified by the following properties:

  ro.verity.state.location
  ro.verity.state.offset

If these properties do not exist, dm-verity is always loaded in
EIO mode. If the properties do exist, but the location does not
have valid state data, dm-verity is loaded in RESTART mode. The
mode is updated to LOGGING if a dm-verity triggered restart has
occurred.

Change-Id: Ibb82953594d234f81ad21c40f524190b88e4ac8f
2015-03-04 03:07:35 +00:00
Rom Lemarchand 38b340a52f Remove /proc/cpuinfo parsing
- Clean up the paths for ro.revision and ro.hardware parsing
- Use ro.hardwre in ueventd instead of parsing the kernel command line

Bug: 19366018
Change-Id: I018a293f3d46e736a8b65132b5b00b0f7c20edae
2015-02-27 19:09:59 -08:00
Sami Tolvanen 73bb196e35 am 3aa700e6: am 622d44d8: am fbb3f8ca: Merge "Set underlying block device RO when enabling verity"
* commit '3aa700e6857566290fdf42265091de9eb872ce35':
  Set underlying block device RO when enabling verity
2015-02-28 00:57:04 +00:00
Sami Tolvanen 3aa700e685 am 622d44d8: am fbb3f8ca: Merge "Set underlying block device RO when enabling verity"
* commit '622d44d86481295660534cd06a8b5914466acf29':
  Set underlying block device RO when enabling verity
2015-02-28 00:50:42 +00:00
Sami Tolvanen 622d44d864 am fbb3f8ca: Merge "Set underlying block device RO when enabling verity"
* commit 'fbb3f8ca499b04c82437155f87c8666cad607c6b':
  Set underlying block device RO when enabling verity
2015-02-28 00:43:58 +00:00
Sami Tolvanen fbb3f8ca49 Merge "Set underlying block device RO when enabling verity" 2015-02-28 00:40:11 +00:00
Nick Kralevich 8e6aea5c72 am 2f54e05b: am 5e14f416: am 6864e673: Merge "More SOCK_CLOEXEC"
* commit '2f54e05b36d0049b2db8694df978e9948444f7b1':
  More SOCK_CLOEXEC
2015-02-27 23:31:07 +00:00
Nick Kralevich 2f54e05b36 am 5e14f416: am 6864e673: Merge "More SOCK_CLOEXEC"
* commit '5e14f416afa412e49ebb07239e6e570c9405518d':
  More SOCK_CLOEXEC
2015-02-27 23:24:23 +00:00