Commit Graph

13021 Commits

Author SHA1 Message Date
Elliott Hughes 85c0ab0802 am daef3367: am 830914a4: Merge "Lose touch to toybox."
* commit 'daef336718592fa8f1068a9cb96ce83cb1942749':
  Lose touch to toybox.
2015-02-11 02:48:03 +00:00
Mark Salyzyn 2044a34ca7 am 2671ffb6: am 95f7ecbd: Merge "liblog: add __android_log_is_loggable()"
* commit '2671ffb6191aadf17cd8770ffcc235bc0591e03f':
  liblog: add __android_log_is_loggable()
2015-02-11 02:48:01 +00:00
Elliott Hughes 35a32289fd am 7faec394: am 3bc8ae63: Merge "Use mkstemp for host ashmem."
* commit '7faec394d1cda4132d53f763c7bef7acd7c9d1ba':
  Use mkstemp for host ashmem.
2015-02-11 02:47:59 +00:00
Elliott Hughes 420ad7889d am 167c1dff: am 3f27558e: Merge "fix bug that passing invalid fd to fstats on win32 builds"
* commit '167c1dffc723a5052020cea52f3ce69a67fb7f22':
  fix bug that passing invalid fd to fstats on win32 builds
2015-02-11 02:47:58 +00:00
Christopher Ferris 06b308bef0 am 884f1942: Merge "Do not dump maps/memory/code of sibling threads."
* commit '884f19425558ba589b1c22113de6df51c9ed2c22':
  Do not dump maps/memory/code of sibling threads.
2015-02-11 01:55:06 +00:00
Christopher Ferris 884f194255 Merge "Do not dump maps/memory/code of sibling threads." 2015-02-11 01:19:56 +00:00
Mark Salyzyn de874aec8b am 05a67c96: Merge "liblog: test: ARM64: Enable 32 and 64-bit liblog_benchmark"
* commit '05a67c964ba41d520c27364b0849e8c329edd041':
  liblog: test: ARM64: Enable 32 and 64-bit liblog_benchmark
2015-02-10 18:31:58 +00:00
Mark Salyzyn 05a67c964b Merge "liblog: test: ARM64: Enable 32 and 64-bit liblog_benchmark" 2015-02-10 18:16:05 +00:00
Mark Salyzyn 53016d8949 liblog: test: ARM64: Enable 32 and 64-bit liblog_benchmark
- Enable build for 32 and 64 bit benchmark executables
- Fix some cosmetics issues in logd_write.c

Change-Id: I544446e5116607d7fec89171135f6e1eff6aebd8
2015-02-10 18:15:51 +00:00
Narayan Kamath 851f3aa51c am 0d385d1c: Merge "Track renaming of initUnchangeableSystemProperty."
* commit '0d385d1c625a5ef3ffdeab3f63a2171eecbb1e44':
  Track renaming of initUnchangeableSystemProperty.
2015-02-10 16:54:35 +00:00
Andreas Gampe f320e8e53d am ed318bff: Merge "log.h: Fix typo"
* commit 'ed318bff41c4515ca79a11afb97507a452e9fcd3':
  log.h: Fix typo
2015-02-10 16:53:30 +00:00
Mark Salyzyn 8a5198a150 am fd867303: Merge changes I420b5b8a,Ica23fe41
* commit 'fd867303861eb25bf7973739e71dc29b6356a336':
  log.h: wrap android_testLog around __android_log_is_loggable
  log.h: deprecate CONDITION
2015-02-10 16:53:24 +00:00
Elliott Hughes daef336718 am 830914a4: Merge "Lose touch to toybox."
* commit '830914a4b6c42d04004e2ec3ff38823f6be8c23f':
  Lose touch to toybox.
2015-02-10 16:52:50 +00:00
Mark Salyzyn 2671ffb619 am 95f7ecbd: Merge "liblog: add __android_log_is_loggable()"
* commit '95f7ecbd38df680c5295295bd2277f4b26865f1f':
  liblog: add __android_log_is_loggable()
2015-02-10 16:52:48 +00:00
Elliott Hughes 7faec394d1 am 3bc8ae63: Merge "Use mkstemp for host ashmem."
* commit '3bc8ae63ce3bbcc0ab61def99a4e9b4822ba3f51':
  Use mkstemp for host ashmem.
2015-02-10 16:52:44 +00:00
Elliott Hughes 167c1dffc7 am 3f27558e: Merge "fix bug that passing invalid fd to fstats on win32 builds"
* commit '3f27558e29c6ebe69c56bef6bee9d6e8b26ae43b':
  fix bug that passing invalid fd to fstats on win32 builds
2015-02-10 16:51:51 +00:00
Narayan Kamath 0d385d1c62 Merge "Track renaming of initUnchangeableSystemProperty." 2015-02-10 15:43:54 +00:00
Narayan Kamath 484c55b37f Track renaming of initUnchangeableSystemProperty.
It's now setUnchangeableSystemProperty.

Change-Id: Ib42f8ac9f074230dfb7af2eb633e0a536ab7d4b7
2015-02-10 15:43:41 +00:00
Christopher Ferris ab9e7dcef6 Do not dump maps/memory/code of sibling threads.
Modifies the code so that if the unwind fails, the code still prints
as much data as possible.

Also, for sibling threads, skip printing the maps and memory/code
since it's not likely to be very relevant.

Fix a few cases where extra space is at the end of lines.

Fix an inverted if statement that was checking the wrong condition.

Bug: 18816322
Change-Id: Ic659e0c34489bf2c65c5a23e2b83e31653b927e4
2015-02-09 19:22:33 -08:00
Andreas Gampe ed318bff41 Merge "log.h: Fix typo" 2015-02-10 00:17:42 +00:00
Andreas Gampe f45bbe496f log.h: Fix typo
Change-Id: I6b5e9bc9d40e5e5ecf9f50f7392675391e6f18e6
2015-02-09 16:13:33 -08:00
Mark Salyzyn fd86730386 Merge changes I420b5b8a,Ica23fe41
* changes:
  log.h: wrap android_testLog around __android_log_is_loggable
  log.h: deprecate CONDITION
2015-02-09 23:59:11 +00:00
Mark Salyzyn 1df92e523e log.h: wrap android_testLog around __android_log_is_loggable
- take android_testLog from the bonepile and resurrect
- android_testLog is used, and makes sense in its current context
  as a holder for Android Logging policy.
- Default level when not specified is ANDROID_LOG_VERBOSE for
  eng and userdebug, and ANDROID_LOG_DEBUG for user.

NB: Properties, which are associated with __android_log_is_loggable are
not to be adjusted in user release; it would be useful at that juncture to
return a constant of (0) for VERBOSE, and a (1) for others on user builds.
Or default level to drop to ANDROID_LOG_DEBUG for all in future.

Bug: 17760225
Change-Id: I420b5b8a94d53d664c6a8b13546ebc424a147923
2015-02-09 15:37:32 -08:00
Mark Salyzyn f5af82edf3 log.h: deprecate CONDITION
- replace CONDITION with __predict_false to match with bionic

Change-Id: Ica23fe41cf9a7ea5eaf1b8552780af9ec7827808
2015-02-09 15:25:48 -08:00
Elliott Hughes 830914a4b6 Merge "Lose touch to toybox." 2015-02-09 22:15:39 +00:00
Mark Salyzyn 95f7ecbd38 Merge "liblog: add __android_log_is_loggable()" 2015-02-09 22:13:47 +00:00
Mark Salyzyn 956870518e liblog: add __android_log_is_loggable()
- Add new liblog API __android_log_is_loggable(prio, tag, def)
- future plan to integrate this into the runtime checks and into
  the logd daemon for filtration. Inert for now.

Bug: 17760225
Change-Id: I16395b4d42acc08f0209f55a1cbf87b0b2112898
2015-02-09 22:12:59 +00:00
Elliott Hughes c6fa276515 Lose touch to toybox.
Change-Id: Id9646ff10870425fc4013aab6621a5f6a0c6e98e
2015-02-09 14:10:44 -08:00
Elliott Hughes 3bc8ae63ce Merge "Use mkstemp for host ashmem." 2015-02-09 21:53:13 +00:00
Elliott Hughes 2004a863dc Use mkstemp for host ashmem.
Bug: 19310167
Change-Id: Ic4e32b3924a9aa0b0d095d445108cbcf2231cd91
2015-02-09 12:49:53 -08:00
Elliott Hughes 3f27558e29 Merge "fix bug that passing invalid fd to fstats on win32 builds" 2015-02-09 19:50:01 +00:00
eric.yan a859219fec fix bug that passing invalid fd to fstats on win32 builds
lfd returned by adb_open is not the actual file desc.
on win32 builds. calling through fstat with invalid fd
will lead to crash, using stat instead.

Change-Id: I7fdc8b825162eaa42efe8755265842c300b00e39
Signed-off-by: eric.yan <eric.yan@yulong.com>
Signed-off-by: severecold <severecold@gmail.com>
2015-02-09 13:41:27 +00:00
Elliott Hughes 2efbf02a83 am 1fb58d7b: am 5ac8b917: Merge "Bump do_write buffer size"
* commit '1fb58d7b7156e3dc135ef31da2b97f281716be8f':
  Bump do_write buffer size
2015-02-09 04:15:21 +00:00
Paul Lawrence d933fc0c05 am a1738915: am 317b4024: Revert "Make encryption configurable"
* commit 'a1738915329e704ea52fc09c222bb4893e6e51df':
  Revert "Make encryption configurable"
2015-02-09 04:14:22 +00:00
Christopher Ferris 14b964f52e am e6ed63e6: am c9c401e6: Merge "Move map data into backtrace data proper."
* commit 'e6ed63e610c5e6a56b04a5168e873dfa48c73aec':
  Move map data into backtrace data proper.
2015-02-09 04:13:37 +00:00
Elliott Hughes bc32de07e9 am b164b103: am 5e753100: Merge "Clean up reading and writing in init."
* commit 'b164b103ebdcb2b567079f30e38d878a21a9b632':
  Clean up reading and writing in init.
2015-02-09 04:13:02 +00:00
Elliott Hughes 1fb58d7b71 am 5ac8b917: Merge "Bump do_write buffer size"
* commit '5ac8b917ded904500f44c8c02b277a34eb9c14c7':
  Bump do_write buffer size
2015-02-07 17:18:40 +00:00
Elliott Hughes 5ac8b917de Merge "Bump do_write buffer size" 2015-02-07 17:07:01 +00:00
Johan Redestig 7e952f41f1 Bump do_write buffer size
In the case of do_write (write to generic file) there
is really no relation to the PROP_VALUE_MAX limitation
of system properties. The current value, 92, is not so
much for writing to files so bump it a bit.

Ideally there should not be any low hard limit in this
case. Either expand_props should allocate the output
buffer or take the output fd and to streaming write.
Such a change is rather invasive though and at this
point in time it seems reasonable that one dont want
more than 256 character strings in the init files.

Change-Id: I846a282ae4e747e6171eef38b302b46287951451
2015-02-07 10:57:10 +01:00
Paul Lawrence a173891532 am 317b4024: Revert "Make encryption configurable"
* commit '317b4024a2a46b8c57abfa08f2a649df13572bd3':
  Revert "Make encryption configurable"
2015-02-07 00:11:12 +00:00
Christopher Ferris e6ed63e610 am c9c401e6: Merge "Move map data into backtrace data proper."
* commit 'c9c401e64ba00e8fa295cae30b2b0035fae1183a':
  Move map data into backtrace data proper.
2015-02-06 23:43:11 +00:00
Christopher Ferris c9c401e64b Merge "Move map data into backtrace data proper." 2015-02-06 23:29:00 +00:00
Christopher Ferris 12385e3ad0 Move map data into backtrace data proper.
The backtrace structure used to include a pointer to a backtrace_map_t
that represented the map data for a particular pc. This introduced a
race condition where the pointer could be discarded, but the backtrace
structure still contained a pointer to garbage memory. Now all of the map
information is right in the structure.

Bug: 19028453
Change-Id: If7088a73f3c6bf1f3bc8cdd2bb4b62e7cab831c0
2015-02-06 15:00:09 -08:00
Elliott Hughes b164b103eb am 5e753100: Merge "Clean up reading and writing in init."
* commit '5e753100c32c7b42ae4306a8023c419defd34c4e':
  Clean up reading and writing in init.
2015-02-06 22:33:18 +00:00
Elliott Hughes 5e753100c3 Merge "Clean up reading and writing in init." 2015-02-06 22:22:30 +00:00
Elliott Hughes f682b4786a Clean up reading and writing in init.
This isn't particularly useful in and of itself, but it does introduce the
first (trivial) unit test, improves the documentation (including details
about how to debug init crashes), and made me aware of how unpleasant the
existing parser is.

I also fixed a bug in passing --- unless you thought the "peboot" and "pm"
commands were features...

Bug: 19217569
Change-Id: I6ab76129a543ce3ed3dab52ef2c638009874c3de
2015-02-06 14:20:30 -08:00
Nick Kralevich 8c6178960d am 846c8e0d: am 17b5b352: Merge "fs_mgr: error check umount calls / add retry logic"
* commit '846c8e0d34ab15de84adc462440f2e95f53ac863':
  fs_mgr: error check umount calls / add retry logic
2015-02-06 20:41:20 +00:00
Nick Kralevich 846c8e0d34 am 17b5b352: Merge "fs_mgr: error check umount calls / add retry logic"
* commit '17b5b3520094de679c9e43a872c02d15758c83b8':
  fs_mgr: error check umount calls / add retry logic
2015-02-06 20:34:57 +00:00
Nick Kralevich 17b5b35200 Merge "fs_mgr: error check umount calls / add retry logic" 2015-02-06 20:27:12 +00:00
Paul Lawrence 317b4024a2 Revert "Make encryption configurable"
This reverts commit bda6272446.

The original fix seems to have led to boot failures in QA. Rather than
risk shipping, revert the change. Bug 18764230 reopened.

Requires change
    https://googleplex-android-review.git.corp.google.com/#/c/629764/

Bug: 19278390
Bug: 19199624

Change-Id: I8b6ab585666f2b0f585ffb2a5f61ac2e3462e06e
2015-02-06 17:32:09 +00:00