Commit Graph

7343 Commits

Author SHA1 Message Date
Nick Kralevich e570fd3a32 am 9453bce4: Merge "Apply restorecon_recursive to all of /data."
* commit '9453bce4cff952aab5c90f5b30c6c12d3e1521e5':
  Apply restorecon_recursive to all of /data.
2014-02-26 22:31:02 +00:00
Mark Salyzyn 8dd3ad1281 am 78617a08: Merge changes Id25cdef0,I80685cdc,I929dddc7
* commit '78617a0875ccf5662dc69a6fbcc72a7a39ab42a3':
  logd: Add SCHED_BATCH to reduce priority
  logd: Adjust to match defacto coding style
  logd: prune more aggressively when over the top
2014-02-26 22:30:59 +00:00
Nick Kralevich 1bb3489e60 resolved conflicts for merge of e9c8fb90 to klp-modular-dev-plus-aosp
Change-Id: I9ee9908a915258937b343de90dce5774d914f03a
2014-02-26 14:02:02 -08:00
Nick Kralevich 9453bce4cf Merge "Apply restorecon_recursive to all of /data." 2014-02-26 21:36:30 +00:00
Mark Salyzyn 785fff4844 am ca1e3438: Merge "logcat: test: add clear and blocking check"
* commit 'ca1e34385706b954e6974094285924d8ff59f860':
  logcat: test: add clear and blocking check
2014-02-26 21:34:18 +00:00
Elliott Hughes e2c0bc4095 am ecb5dd69: Merge "Fix undefined args access for x86_64."
* commit 'ecb5dd697ca72828079bf40f932abf9f9ee7b7db':
  Fix undefined args access for x86_64.
2014-02-26 21:34:17 +00:00
Mark Salyzyn 78617a0875 Merge changes Id25cdef0,I80685cdc,I929dddc7
* changes:
  logd: Add SCHED_BATCH to reduce priority
  logd: Adjust to match defacto coding style
  logd: prune more aggressively when over the top
2014-02-26 21:29:34 +00:00
Mark Salyzyn e9c8fb900a Merge "logd: initial checkin." 2014-02-26 21:29:14 +00:00
Mark Salyzyn ca1e343857 Merge "logcat: test: add clear and blocking check" 2014-02-26 21:28:58 +00:00
Elliott Hughes ecb5dd697c Merge "Fix undefined args access for x86_64." 2014-02-26 21:28:27 +00:00
Elliott Hughes 8828994d05 am 431735f0: Merge "libcutils: Socket type might contain bitwise OR flags"
* commit '431735f005af79407e01a68995ac6dde7ff4b815':
  libcutils: Socket type might contain bitwise OR flags
2014-02-26 19:38:35 +00:00
Elliott Hughes 431735f005 Merge "libcutils: Socket type might contain bitwise OR flags" 2014-02-26 19:34:40 +00:00
Paul Kocialkowski a7e2e7634c libcutils: Socket type might contain bitwise OR flags
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Change-Id: Ia5c8f136793a989fc1d71c61292afe4e5cf169fa
2014-02-26 11:33:45 -08:00
Mark Salyzyn 882f856668 logd: Add SCHED_BATCH to reduce priority
(cherry picked from commit 85620a1bff)

Change-Id: Id25cdef0dd7f8c5e154a0da2db2dd0554849babc
2014-02-26 09:55:03 -08:00
Mark Salyzyn c03e72cc1c logd: Adjust to match defacto coding style
(cherry picked from commit c46f77bd2a)

Change-Id: I80685cdc7116e10c5a5a77abe856fd96804f9117
2014-02-26 09:54:23 -08:00
Mark Salyzyn 740f9b4f97 logd: prune more aggressively when over the top
(cherry picked from commit 63c15d5061)

Change-Id: I929dddc7da048c032fb791c7af23f215f8856bf3
2014-02-26 09:53:55 -08:00
Mark Salyzyn 0175b0747a logd: initial checkin.
* Create a new userspace log daemon for handling logging messages.

Original-Change-Id: I75267df16359684490121e6c31cca48614d79856
Signed-off-by: Nick Kralevich <nnk@google.com>

* Merge conflicts
* rename new syslog daemon to logd to prevent confusion with bionic syslog
* replace racy getGroups call with KISS call to client->getGid()
* Timestamps are filed at logging source
* insert entries into list in timestamp order
* Added LogTimeEntry tail filtration handling
* Added region locking around LogWriter list
* separate threads for each writer
* /dev/socket/logd* permissions

Signed-off-by: Mark Salyzyn <salyzyn@google.com>

(cherry picked from commit 3e76e0a497)

Author: Nick Kralevich <nnk@google.com>
Change-Id: Ice88b1412d8f9daa7f9119b2b5aaf684a5e28098
2014-02-26 09:52:35 -08:00
Mark Salyzyn 9b986497e7 logcat: test: add clear and blocking check
(cherry picked from commit 1beb2ab6f6)

Change-Id: I243b1338c4a5935a297a0519c03697fd828e47e6
2014-02-26 09:52:02 -08:00
Fengwei Yin fff9d11be5 Fix undefined args access for x86_64.
From libc manual for vsnprintf:
   The  functions  vprintf(),  vfprintf(), vsprintf(), vsnprintf()
   are equivalent to the functions printf(), fprintf(), sprintf(), snprintf(),
   respectively, except that they are called with a va_list instead of a
   variable number of arguments.  These  functions  do  not  call  the  va_end  macro.
   Because they invoke the va_arg macro, the value of ap is undefined after the call.

We need to allocate/end new va_list for each vsnprintf.

Change-Id: I66ec058033be1cb918e7b2bc84ca546800da226b
Signed-off-by: Fengwei Yin <fengwei.yin@intel.com>
2014-02-27 01:17:09 +08:00
David 'Digit' Turner f936f66c2a am ebb46d76: Merge "fs_mgr: Don\'t run e2fsck inside SDK system images."
* commit 'ebb46d76e4bf4ee4f34b42709ea69cce07e3e322':
  fs_mgr: Don't run e2fsck inside SDK system images.
2014-02-25 08:19:12 +00:00
David 'Digit' Turner ebb46d76e4 Merge "fs_mgr: Don't run e2fsck inside SDK system images." 2014-02-25 04:57:26 +00:00
Elliott Hughes 4ce337385f am d7590650: Merge "Remove an unused #include of <asm/page.h>."
* commit 'd7590650dc7b36557efde7f63a6e904878572e12':
  Remove an unused #include of <asm/page.h>.
2014-02-25 00:06:49 +00:00
Elliott Hughes d7590650dc Merge "Remove an unused #include of <asm/page.h>." 2014-02-25 00:01:46 +00:00
Elliott Hughes 56ae6b687d am 410f51a8: Merge "Remove unused #includes of <asm/page.h>."
* commit '410f51a88cc40977ddc2d99ae72d429550715e13':
  Remove unused #includes of <asm/page.h>.
2014-02-24 23:45:27 +00:00
Elliott Hughes 763bfce0b1 Remove an unused #include of <asm/page.h>.
Change-Id: I000aead8c82ec11151f69e6ce439dd09b0f0b4f4
2014-02-24 15:42:22 -08:00
Elliott Hughes 410f51a88c Merge "Remove unused #includes of <asm/page.h>." 2014-02-24 23:39:49 +00:00
Elliott Hughes 2f77bb6931 Remove unused #includes of <asm/page.h>.
(<asm/page.h> is going away.)

Change-Id: Id0d7ad0eb791cd47490c48458f9f8a6468ddf5c9
2014-02-24 15:38:44 -08:00
David 'Digit' Turner 28483d7ec4 fs_mgr: Don't run e2fsck inside SDK system images.
These images do not have GPL-ed binaries like /system/bin/e2fsck so
avoid running the program when we detect that we're running inside
one of them.

Note that this does not affect other emulator-based build products
(e..g full-eng instead of sdk-eng), which do have the binaries.

BUG=13057123

Change-Id: Ia42f1d02a3845fbf4b2f9d95818f35d760711a12
2014-02-24 23:32:00 +01:00
Colin Cross b659ffd77d am deb3eecd: Merge "Fix the definition of LOCAL_PATH in libusbhost/Android.mk"
* commit 'deb3eecd061e8a3a5f19ef5e10296f248f247881':
  Fix the definition of LOCAL_PATH in libusbhost/Android.mk
2014-02-22 08:21:47 +00:00
Colin Cross deb3eecd06 Merge "Fix the definition of LOCAL_PATH in libusbhost/Android.mk" 2014-02-22 08:16:03 +00:00
Elliott Hughes bed58bf36f am 536dce31: Merge "Fix compiler warnings in libpixelflinger"
* commit '536dce31d35e9411c03102d6abd837cd4d54ce55':
  Fix compiler warnings in libpixelflinger
2014-02-20 22:28:48 +00:00
Elliott Hughes 536dce31d3 Merge "Fix compiler warnings in libpixelflinger" 2014-02-20 22:22:17 +00:00
Ashok Bhat 3078b13b98 Fix compiler warnings in libpixelflinger
Change-Id: I6a5708ae6bc934b196d59d81a6cd550b05ed704f
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
2014-02-20 14:21:55 -08:00
Nick Kralevich c0f95624ad am 783eb168: Merge "Add -D option to restorecon for relabeling /data/data."
* commit '783eb1689871850c082e0b6ccadeeccbaa81a5d2':
  Add -D option to restorecon for relabeling /data/data.
2014-02-20 21:00:36 +00:00
Nick Kralevich 783eb16898 Merge "Add -D option to restorecon for relabeling /data/data." 2014-02-20 20:54:18 +00:00
Elliott Hughes 8e66265a17 am acc0a23a: Merge "Remove dead code."
* commit 'acc0a23a20bf5e5db985661b2c8a8259d9e94498':
  Remove dead code.
2014-02-20 20:12:51 +00:00
Elliott Hughes acc0a23a20 Merge "Remove dead code." 2014-02-20 20:06:38 +00:00
Elliott Hughes b784f37341 Remove dead code.
We have benchmarking for memset in bionic itself, and a benchmarking
framework for other native benchmarking.

Change-Id: I241a288a96d3b2d37f3d51b04a519ac23f18a989
2014-02-20 11:12:41 -08:00
JP Abgrall a0d4b9e843 am 91237300: Merge "Handle FUSE_FSYNCDIR as FUSE_FSYNC"
* commit '912373005b53e70803cdae61dd63a18fa73a5e3e':
  Handle FUSE_FSYNCDIR as FUSE_FSYNC
2014-02-19 20:41:30 +00:00
JP Abgrall 406f1aff9a am 3b0c24e2: Merge "sdcard: direct I/O file access write buffer alignment"
* commit '3b0c24e28d7538ff5b49a98eee99bac85c8e687b':
  sdcard: direct I/O file access write buffer alignment
2014-02-19 20:37:59 +00:00
JP Abgrall 912373005b Merge "Handle FUSE_FSYNCDIR as FUSE_FSYNC" 2014-02-19 20:34:21 +00:00
Daisuke Okitsu b2831a2db9 Handle FUSE_FSYNCDIR as FUSE_FSYNC
There have been issues with sdcard data corruption even after
successfully calling fsync for /sdcard. This is caused by
the sdcard daemon doing nothing in this case.

Change-Id: I48149ceabdac79ac535b35c2598bb1fbb5410883
2014-02-19 20:33:50 +00:00
JP Abgrall 3b0c24e28d Merge "sdcard: direct I/O file access write buffer alignment" 2014-02-19 20:30:25 +00:00
Nick Kralevich 066cde92d2 am 223e0798: Merge "Enable building init with -Wall -Werror."
* commit '223e07983718e1515f2a54542b9b0163a8f508ed':
  Enable building init with -Wall -Werror.
2014-02-19 19:13:39 +00:00
Nick Kralevich 223e079837 Merge "Enable building init with -Wall -Werror." 2014-02-19 19:09:30 +00:00
Stephen Smalley eb3f421e02 Enable building init with -Wall -Werror.
Eliminates various warnings from SELinux-related code.

Bug: 12587913
Change-Id: I28921f0ebd934324436609540d95ccef58552b64
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
2014-02-19 09:15:09 -05:00
Stephen Smalley 500308a7e6 Add -D option to restorecon for relabeling /data/data.
This depends on change I137588013ed1750315702c0dbe088ce3e4a29e83.

Change-Id: I5a4fef9affd6cddf98d72dc9d54899be25741779
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
2014-02-18 11:15:52 -05:00
Arpad Horvath 49e9344bdd sdcard: direct I/O file access write buffer alignment
It is not enough to align the read buffer only, because
consequent writes might still fail with EINVAL. The write
buffer should be also aligned according to the write(2)
manual page.

Change-Id: I7547dec5208732c56f4466c1b0c88f36dabacf5b
2014-02-18 10:18:25 +01:00
Colin Cross bb2da79fda am 27fd413d: Merge "Start debuggerd64 for 64-bit processes"
* commit '27fd413d6d02a53c453cf926717b67e9a8d1eb32':
  Start debuggerd64 for 64-bit processes
2014-02-16 19:50:59 +00:00
Colin Cross 27fd413d6d Merge "Start debuggerd64 for 64-bit processes" 2014-02-16 19:46:55 +00:00