Commit Graph

12360 Commits

Author SHA1 Message Date
Dmitriy Ivanov 1f741e51bc Remove some more gotos
Change-Id: I9c4b3a5aecf4011653933b051e67605a6feb123f
2015-03-06 14:26:37 -08:00
Elliott Hughes d73df6abb6 Merge "Fix outdated comments in grab-bootchart.sh." 2015-03-06 22:18:55 +00:00
Dmitriy Ivanov 3445cfe2b2 Merge "Reapply -Wold-style-cast" 2015-03-06 22:09:20 +00:00
Dmitriy Ivanov f94e159007 Reapply -Wold-style-cast
Added pragmas to disable checks for the method
 using libz.h macros.

Change-Id: I25aa1adf09f3ecff61d8fea6306b24b37990ab46
2015-03-06 13:57:43 -08:00
Elliott Hughes 7c0c15f0ed Fix outdated comments in grab-bootchart.sh.
I've been deliberately vague about the name of the readme because I want to
come back and switch to markdown, but that probably won't happen today.

Change-Id: I60651703709bbfd499227f882eb949396e8f4f6c
2015-03-06 13:25:32 -08:00
Dmitriy Ivanov 6821d0b623 am 25d2a1a9: Merge "Fix build: Remove -Wold-style-cast"
* commit '25d2a1a916058634a23d89d287b18eb18c140081':
  Fix build: Remove -Wold-style-cast
2015-03-06 21:17:50 +00:00
Dmitriy Ivanov 25d2a1a916 Merge "Fix build: Remove -Wold-style-cast" 2015-03-06 21:11:49 +00:00
Dmitriy Ivanov 34d1b0fa63 Fix build: Remove -Wold-style-cast
libz.h has macros using old-style-cast.

Change-Id: I48f7d85805c7c34e1453c863da3c9e734a57d479
2015-03-06 13:07:52 -08:00
Mark Salyzyn cd9afa1c27 am 4f0520fe: Merge "Revert "liblog: logprint use <endian.h>""
* commit '4f0520fe6c12baebb0c3098a1bdb17b814b8fd02':
  Revert "liblog: logprint use <endian.h>"
2015-03-06 20:56:37 +00:00
Dmitriy Ivanov 80a37e9abd am 34671b81: Merge "Remove some gotos"
* commit '34671b8100131b5a4f07f4dceac53a007497bc52':
  Remove some gotos
2015-03-06 20:56:36 +00:00
Mark Salyzyn 4f0520fe6c Merge "Revert "liblog: logprint use <endian.h>"" 2015-03-06 20:52:52 +00:00
Dmitriy Ivanov 34671b8100 Merge "Remove some gotos" 2015-03-06 20:51:48 +00:00
Dmitriy Ivanov 3ff6dd938b am 8b1a94c0: Merge "Cleanup old-style-cast warnings"
* commit '8b1a94c07cb02a0398238ebaab4a2a0a23f7d28c':
  Cleanup old-style-cast warnings
2015-03-06 20:50:11 +00:00
Dmitriy Ivanov d1ce725613 am 4b8b148a: Merge "Remove unnecessary allocation of FileMaps"
* commit '4b8b148a8cb6c6044e64cf3c8834ebdcdf6de9dd':
  Remove unnecessary allocation of FileMaps
2015-03-06 20:50:09 +00:00
Mark Salyzyn 8470dad24f Revert "liblog: logprint use <endian.h>"
This reverts commit 66bfc5ccbd.

Bug: 19634248
Change-Id: I7c4851a247042193674f226fd0d5c5663e8074c7
2015-03-06 20:46:31 +00:00
Dmitriy Ivanov 3ea93da3c2 Remove some gotos
Change-Id: I0e162c8e0a700940f4302786b8523e5b2f5e5c27
2015-03-06 12:45:03 -08:00
Dmitriy Ivanov 8b1a94c07c Merge "Cleanup old-style-cast warnings" 2015-03-06 20:43:42 +00:00
Dmitriy Ivanov 4b8b148a8c Merge "Remove unnecessary allocation of FileMaps" 2015-03-06 20:43:20 +00:00
Dmitriy Ivanov f4cb8e2ac2 Cleanup old-style-cast warnings
Change-Id: I6e17fd993557cbf78ade787f112794358aee39c8
2015-03-06 10:50:56 -08:00
Dmitriy Ivanov 4b67f8339d Remove unnecessary allocation of FileMaps
Change-Id: I97bb72b9edeee5b3eff4ffd21a761a1af472a3b5
2015-03-06 10:22:34 -08:00
Mark Salyzyn e7c2a40197 am 88492ec4: Merge "liblog: build cleanup"
* commit '88492ec4e171a33b2d1ef42a0b7714cb2abedd0f':
  liblog: build cleanup
2015-03-05 19:30:20 +00:00
Mark Salyzyn 88492ec4e1 Merge "liblog: build cleanup" 2015-03-05 19:23:32 +00:00
Mark Salyzyn 1b79369877 liblog: build cleanup
- Drop CYGWIN build checking
- Hard code the "liblog" event tag
- Drop use of internal WITH_MINGW

Change-Id: I7b63bd7fa4471f340f356b477a0e5e25fe83a851
2015-03-05 11:10:00 -08:00
Mark Salyzyn b71d0eabf1 am b6c411cf: Merge "liblog: logprint use <endian.h> part three"
* commit 'b6c411cf07b6cfe0cb2df3bce80ab8097b5d0d97':
  liblog: logprint use <endian.h> part three
2015-03-05 02:46:38 +00:00
Mark Salyzyn b6c411cf07 Merge "liblog: logprint use <endian.h> part three" 2015-03-05 02:42:43 +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 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 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 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