Commit graph

12720 commits

Author SHA1 Message Date
Elliott Hughes
36dfe06f81 am 6dbbcc57: Merge "Fix clang build by removing unused locals."
* commit '6dbbcc57a00e6b44488e595d128e27168a939a02':
  Fix clang build by removing unused locals.
2015-03-28 18:01:58 +00:00
Elliott Hughes
6dbbcc57a0 Merge "Fix clang build by removing unused locals." 2015-03-28 17:57:46 +00:00
Elliott Hughes
747383649c Fix clang build by removing unused locals.
Also don't manually set FD_CLOEXEC on a socket that's always opened
with SOCK_CLOEXEC. (None of the other callers to the function do this.)

Also move locals to where they're first used to help prevent more of this
kind of breakage.

Change-Id: I1ba7cd9400f53508dffb51a2bbf9d491ae647f26
2015-03-28 10:51:23 -07:00
Elliott Hughes
4ce3c8288b am 0cd316a4: am 5db3936d: Merge "Log more timing information from init."
* commit '0cd316a46b7903b7d014280cca1f4b67748bc517':
  Log more timing information from init.
2015-03-28 16:58:34 +00:00
Elliott Hughes
c02f81cccb Always unlink /dev/__kmsg__.
Whether the open succeeds or fails, we should unlink.

Change-Id: Ic2f1e10dc7b6d6e459c56049da00d165bd63ba8f
2015-03-28 09:51:54 -07:00
Elliott Hughes
0cd316a46b am 5db3936d: Merge "Log more timing information from init."
* commit '5db3936dbe6fa73d45ab0f02b7166f43680084d3':
  Log more timing information from init.
2015-03-28 16:50:35 +00:00
Elliott Hughes
5db3936dbe Merge "Log more timing information from init." 2015-03-28 16:46:06 +00:00
Elliott Hughes
da40c00137 Log more timing information from init.
Also make important events in init's life NOTICE rather than INFO,
and ensure that NOTICE events actually make it to the kernel log.

Also fix the logging so that if you have a printf format string
error, the compiler now catches it.

Also give messages from init, ueventd, and watchdogd distinct tags.
(Previously they'd all call themselves "init", and dmesg doesn't
include pids, so you couldn't untangle them.)

Also include the tag in SELinux messages.

Bug: 19544788
Change-Id: Ica6daea065bfdb80155c52c0b06f346a7df208fe
2015-03-28 00:25:22 -07:00
Richard Uhler
7d451ab96d Define atrace_* functions for both target and host.
This change defines atrace_* functions for the host that act as
no-ops, which makes it easier to add tracing in ART.

Change-Id: I89397e83986686a2b6a6f245c25017eb379081b1
2015-03-27 14:58:30 -07:00
Dan Albert
bfebb61b4c am 10cc88c1: am e29744d9: Merge "Remove uses of libcxx.mk."
* commit '10cc88c1a5b935c7850658b8b5fa2eda7a36807e':
  Remove uses of libcxx.mk.
2015-03-27 20:39:44 +00:00
Dan Albert
10cc88c1a5 am e29744d9: Merge "Remove uses of libcxx.mk."
* commit 'e29744d94df787fa83307572d90a954b1592f69b':
  Remove uses of libcxx.mk.
2015-03-27 18:43:43 +00:00
Dan Albert
e29744d94d Merge "Remove uses of libcxx.mk." 2015-03-27 18:33:41 +00:00
Dan Albert
d0a793dca3 Remove uses of libcxx.mk.
This is a no-op.

Change-Id: Iecbcd5f6d818abbf98767a2e996c10f454b652e4
2015-03-27 11:24:04 -07:00
Dan Albert
552d827f7e am a6ad2e7e: am 42f11922: Merge "Pull in Windows compatibility header."
* commit 'a6ad2e7ed87e57b857b55e7256e64617e3d1faf0':
  Pull in Windows compatibility header.
2015-03-27 06:48:43 +00:00
Dan Albert
22d9450d87 am a82875c6: am 5188d556: Merge "Include what we use."
* commit 'a82875c6fde9cc07fd08bf49bc3d8896ce11e2f2':
  Include what we use.
2015-03-27 06:48:42 +00:00
Dan Albert
1188a4d856 am a596623f: am 6ccfabcf: Merge "O_CLOEXEC is O_NOINHERIT on Windows."
* commit 'a596623fbf3c38e08ee5b3d2663f96258492e452':
  O_CLOEXEC is O_NOINHERIT on Windows.
2015-03-27 06:41:07 +00:00
Dan Albert
a6ad2e7ed8 am 42f11922: Merge "Pull in Windows compatibility header."
* commit '42f1192273f3d05531c3fcfc8ce0fe5c437f6b7f':
  Pull in Windows compatibility header.
2015-03-27 06:40:49 +00:00
Dan Albert
a82875c6fd am 5188d556: Merge "Include what we use."
* commit '5188d556d1530b3675dab2fc30dcc17432aa0718':
  Include what we use.
2015-03-27 06:40:48 +00:00
Dan Albert
42f1192273 Merge "Pull in Windows compatibility header." 2015-03-27 06:35:54 +00:00
Dan Albert
5188d556d1 Merge "Include what we use." 2015-03-27 06:35:14 +00:00
Dan Albert
a596623fbf am 6ccfabcf: Merge "O_CLOEXEC is O_NOINHERIT on Windows."
* commit '6ccfabcf5d547a04a1e6c5237f20670230a7f6a4':
  O_CLOEXEC is O_NOINHERIT on Windows.
2015-03-27 06:34:45 +00:00
Dan Albert
94d1360f7e Pull in Windows compatibility header.
Needed for O_CLOEXEC, O_NOFOLLOW, and DEFFILEMODE.

Change-Id: Id6c0465a6559c30ac8c085c28be0d47c9738f02a
2015-03-26 23:33:28 -07:00
Dan Albert
6ccfabcf5d Merge "O_CLOEXEC is O_NOINHERIT on Windows." 2015-03-27 06:29:40 +00:00
Dan Albert
c6b30f376d O_CLOEXEC is O_NOINHERIT on Windows.
Change-Id: I714aa08344fa10684c99651f953834086cc162c7
2015-03-26 23:24:15 -07:00
Dan Albert
4b3f533be9 Include what we use.
Change-Id: If510431d3d445de94f781b4fdec2e1b445f7c294
2015-03-26 23:23:43 -07:00
Dan Albert
43ac22f49f am be1eb6d4: am 87378814: Merge "adb shell: Win32: fix Ctrl-C, tab completion, line editing, server echo"
* commit 'be1eb6d4358dc3e66f2717d2d5da570b67a00415':
  adb shell: Win32: fix Ctrl-C, tab completion, line editing, server echo
2015-03-27 05:41:41 +00:00
Dan Albert
be1eb6d435 am 87378814: Merge "adb shell: Win32: fix Ctrl-C, tab completion, line editing, server echo"
* commit '87378814a06f6fa2d22026cbcb2f54be4b65e6c6':
  adb shell: Win32: fix Ctrl-C, tab completion, line editing, server echo
2015-03-27 05:34:47 +00:00
Dan Albert
87378814a0 Merge "adb shell: Win32: fix Ctrl-C, tab completion, line editing, server echo" 2015-03-27 05:28:38 +00:00
Andreas Gampe
3aa8dfe7ed am ebc903e3: am 6e014d77: Merge "Libbacktrace: Use frame-pointer on host"
* commit 'ebc903e3d15990c8a3d9ea5a52ea2763e398caaa':
  Libbacktrace: Use frame-pointer on host
2015-03-27 00:54:56 +00:00
Andreas Gampe
ebc903e3d1 am 6e014d77: Merge "Libbacktrace: Use frame-pointer on host"
* commit '6e014d774d5ff1fc05d619b348813a5e567f40d2':
  Libbacktrace: Use frame-pointer on host
2015-03-27 00:48:25 +00:00
Andreas Gampe
6e014d774d Merge "Libbacktrace: Use frame-pointer on host" 2015-03-27 00:43:15 +00:00
Andreas Gampe
dce8f2923d Libbacktrace: Use frame-pointer on host
Otherwise it may have problems unwinding over itself.

Change-Id: I9b0d108018ae3f5d98b9ae6fb62d0af83a77d18e
2015-03-26 16:21:13 -07:00
Nick Kralevich
b242c279de am 5e49911c: am de52ebc3: Merge "libaudit: limit to 5 selinux denials per sec"
* commit '5e49911c4a4d6c807afa0bc74f15888484670a61':
  libaudit: limit to 5 selinux denials per sec
2015-03-26 22:31:01 +00:00
Nick Kralevich
5e49911c4a am de52ebc3: Merge "libaudit: limit to 5 selinux denials per sec"
* commit 'de52ebc3f97500e7d618c32cf5d627a1beb0ead7':
  libaudit: limit to 5 selinux denials per sec
2015-03-26 22:24:26 +00:00
Nick Kralevich
de52ebc3f9 Merge "libaudit: limit to 5 selinux denials per sec" 2015-03-26 21:33:02 +00:00
Nick Kralevich
a15db51bbf libaudit: limit to 5 selinux denials per sec
watchdog is triggering on shamu. This may be due to an excessive
number of SELinux denials. Drop the limit from 20/sec to 5/sec.

Bug: 19950451
Bug: 19949988
Change-Id: I979f11e17c241ff2ebda4dec9694ef441dc5d0ed
2015-03-26 14:04:13 -07:00
Spencer Low
50184062b8 adb shell: Win32: fix Ctrl-C, tab completion, line editing, server echo
The 'adb shell' command on Windows has had problems:

* Ctrl-C killed the local Windows adb.exe process instead of sending the
Ctrl-C to the Android device.

* Local echo was enabled, causing everything typed to be displayed twice.

* Line input was enabled, so the Android device only received input
after hitting enter. This meant that tab completion did not work because
the tab wasn't seen by the shell until pressing enter.

* The usual input line editing keys did not work (Ctrl-A to go to the
beginning of the line, etc.).

This commit fixes these issues by reconfiguring the Win32 console and
then translating input into what Gnome Terminal would send, in effect
somewhat emulating a Unix terminal.

This does not fix all Win32 console issues, but is designed to be better
than what we had before, and to make the common day-to-day usage much
more comfortable and usable.

Change-Id: Idb10e0b634e27002804fa99c09a64e7176cf7c09
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2015-03-26 12:26:08 -07:00
Sami Tolvanen
825c2655b7 am 6ca1dbd4: am 6baab44e: Merge "Fix build"
* commit '6ca1dbd442016c41244c59d05d9b3c680aa2d27a':
  Fix build
2015-03-26 12:10:35 +00:00
Sami Tolvanen
6ca1dbd442 am 6baab44e: Merge "Fix build"
* commit '6baab44eed58ed647cfd18a117e6ea9f9a52c2a5':
  Fix build
2015-03-26 12:02:35 +00:00
Sami Tolvanen
6baab44eed Merge "Fix build" 2015-03-26 11:56:53 +00:00
Sami Tolvanen
4d3ead9d7c Fix build
Fix build breakage in aosp_fugu-userdebug_clang (linux) caused
by Id8711f7d51dc1e4e9a4d84f9951240f64528e69d

Change-Id: Icd04aeaf131be045cf5788846ae9832e6cbbb944
2015-03-26 11:44:42 +00:00
Sami Tolvanen
c28e2598af am 3fdc2f2b: am d33c6c0e: Merge "Use structured format for verity metadata"
* commit '3fdc2f2be80071eb510ad5e33e9f967d7e946b0f':
  Use structured format for verity metadata
2015-03-26 07:55:50 +00:00
Sami Tolvanen
3fdc2f2be8 am d33c6c0e: Merge "Use structured format for verity metadata"
* commit 'd33c6c0ef2a7b28b66aa372579bb8b2ac9d65ba6':
  Use structured format for verity metadata
2015-03-26 07:46:57 +00:00
Sami Tolvanen
d33c6c0ef2 Merge "Use structured format for verity metadata" 2015-03-26 07:38:15 +00:00
Elliott Hughes
6b77ef9480 am f6a683f1: am cfead6da: Merge " isn\'t set for continuous builds."
* commit 'f6a683f14af750810074a4a3785dc267717aeba5':
  $ANDROID_BUILD_TOP isn't set for continuous builds.
2015-03-26 04:32:29 +00:00
Elliott Hughes
f6a683f14a am cfead6da: Merge " isn\'t set for continuous builds."
* commit 'cfead6dacf422d0d9230d7881a7b4c32f4f2b309':
  $ANDROID_BUILD_TOP isn't set for continuous builds.
2015-03-26 04:24:42 +00:00
Elliott Hughes
cfead6dacf Merge "$ANDROID_BUILD_TOP isn't set for continuous builds." 2015-03-26 04:19:53 +00:00
Elliott Hughes
0142cccd64 am bde9b386: am 09b66b93: Merge "Auto-generate the getevent labels from <linux/input.h>."
* commit 'bde9b3869d502cda5beee0df95b4602b0fc6e136':
  Auto-generate the getevent labels from <linux/input.h>.
2015-03-26 04:19:41 +00:00
Elliott Hughes
608fb70dd8 $ANDROID_BUILD_TOP isn't set for continuous builds.
Instead, take advantage of the fact that we'll be run from the root of the
tree.

Change-Id: I5ce6d1c9ae8d478748ab90c9d3cc8e665ae5859b
2015-03-25 21:18:43 -07:00
Elliott Hughes
bde9b3869d am 09b66b93: Merge "Auto-generate the getevent labels from <linux/input.h>."
* commit '09b66b93f17e639a6ff3994a51b6de61ca1c78d4':
  Auto-generate the getevent labels from <linux/input.h>.
2015-03-26 04:09:23 +00:00