Commit graph

688 commits

Author SHA1 Message Date
Android (Google) Code Review
05647c89ef Merge change 25170 into eclair
* changes:
  Disable sched_policy under Windows.
2009-09-16 19:43:11 -04:00
Android (Google) Code Review
6388fe801c Merge change 25383 into eclair
* changes:
  Add bitfields to header for screen shots.  This will allow ddms to distinguish between various 32 bit pixel formats.  Also adds new version number for future expansion.
2009-09-16 19:13:28 -04:00
San Mehat
35ad5f41c3 rootdir: init.rc: *LATENCY EXPERIMENT* - Disable cgroups in favor of new scheduler policy support
Signed-off-by: San Mehat <san@google.com>
2009-09-16 14:13:14 -07:00
San Mehat
7baff71b0d rootdir: init.rc: tweak cfs scheduler - disable child_runs_first
Signed-off-by: San Mehat <san@google.com>
2009-09-16 13:32:23 -07:00
Rebecca Schultz Zavin
154b7d7de4 Add bitfields to header for screen shots. This will allow ddms to distinguish
between various 32 bit pixel formats.  Also adds new version number for
future expansion.

Change-Id: Ia1d7d7485614e961a47ebb65493b19f4a16ded05
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2009-09-15 21:06:12 -07:00
Raphael
0384a98d6f Disable sched_policy under Windows.
This introduces a new HAVE_SCHED_H arch define, which is used
to prevent from building sched_policy.c during the Windows SDK.

Change-Id: I3667857a4ae7d6baaf1efd1cd187a5baf91419d8
2009-09-15 17:10:17 -07:00
David Ding
7a013f967e Fix vold coredump when enable_ums cmd comes without media inserted.
Signed-off-by: Ethan.Du <a7233c@motorola.com>
Signed-off-by: David Ding <david.j.ding@motorola.com>
2009-09-15 15:16:36 -07:00
San Mehat
3cd5b66ba0 libcutils: Dont include kernel header + add defines
Signed-off-by: San Mehat <san@google.com>
2009-09-14 16:05:51 -07:00
San Mehat
493dad9663 libcutils: Add abstracted support for setting scheduler policies
Also changes the background policy to use SCHED_BATCH. IDLEPRIO
can cause 100% starvation.

Signed-off-by: San Mehat <san@google.com>
2009-09-12 10:48:03 -07:00
Mike Lockwood
25f1a5aaff init.rc: Adjust permissions on /data/dontpanic/ so dumpstate will not need root
Change-Id: Iff83310f9411c39e1833b3d710b029b12f702993
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-11 17:13:28 -04:00
Android (Google) Code Review
8880093fe3 Merge change 24493 into eclair
* changes:
  Fix several issues in framebuffer_service
2009-09-10 19:31:27 -04:00
Rebecca Schultz Zavin
04bee29ad9 Fix several issues in framebuffer_service
-supports fb's with x and y offsets
-dumps the front buffer (instead of just the low end of the buffer)
-switch from mmap to read/write, for fb's with very large offsets

Change-Id: Id560790c9661f7cc3b4350a44cc29f0104831e85
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2009-09-10 15:37:08 -07:00
Android (Google) Code Review
e67eff1c61 Merge change 24564 into eclair
* changes:
  init: Make /dev/pmem_gpu* be writable by all
2009-09-10 17:22:33 -04:00
Android (Google) Code Review
374ad789df Merge change 24577 into eclair
* changes:
  Update peephole optimizer
2009-09-10 17:07:54 -04:00
Android (Google) Code Review
e7aa14978f Merge change 24576 into eclair
* changes:
  Add a script "accarm" for ad-hoc testing of the ARM acc compiler.
2009-09-10 17:07:24 -04:00
Jack Palevich
53f0658792 Update peephole optimizer
+ Save one instruction for loads of local byte or float values.
+ Save two instructions for pointer arithmetic with a stride that
  is a power of two.
2009-09-10 14:01:58 -07:00
Jack Palevich
bb3e9c1814 Add a script "accarm" for ad-hoc testing of the ARM acc compiler.
This script copies the test file over to the ARM, runs the acc compiler
on ARM, and then prints out the results.

It also syncs the acc compiler binary over to the ARM.
2009-09-10 12:45:31 -07:00
Dima Zavin
c2d8e0e701 init: Make /dev/pmem_gpu* be writable by all
STOPSHIP: The actual device entry needs to be removed once the products
that use this switch on the mmu.

Change-Id: I10afea36c8731d845382665ed3db7647f68d1276
Signed-off-by: Dima Zavin <dima@android.com>
2009-09-10 12:34:32 -07:00
Android (Google) Code Review
8b213f1ad9 Merge change 24474 into eclair
* changes:
  Fix an infinite loop in time2sub.
2009-09-10 13:47:50 -04:00
Android (Google) Code Review
ae0aa69f9c Merge change 24479 into eclair
* changes:
  Implement a simple peephole optimization framework for ARM.
2009-09-09 22:10:40 -04:00
Jack Palevich
d30a2ce244 Implement a simple peephole optimization framework for ARM.
Implement some optimizations:

+ performing arithmetic by a small constant is 3 instructions shorter.
+ reading a local variables is 1 instruction shorter.
+ constant array indexing (e.g. p[5]) is 5 instructions shorter.
2009-09-09 19:08:54 -07:00
David 'Digit' Turner
833ea8d502 Fix an infinite loop in time2sub.
The problem is that time_t is signed, and the original code relied on the
fact that (X + c < X) in case of overflow for c >= 0. Unfortunately, this
condition is only guaranteed by the standard for unsigned arithmetic, and
the gcc 4.4.0 optimizer did completely remove the corresponding test from
the code. This resulted in a missing boundary check, and an infinite loop.

The problem is solved by testing explicitely for TIME_T_MIN and TIME_T_MAX
in the loop that uses this.

Also fix increment_overflow and long_increment_overflow which were buggy
for exactly the same reasons.

Also remove some compiler warnings.

Note: a similar fix was performed in bionic/libc
2009-09-09 18:32:07 -07:00
Android (Google) Code Review
2f21659d45 Merge change 24213 into eclair
* changes:
  Fix a bug that prevented the "generic" product builds from working in the emulator.
2009-09-09 21:02:10 -04:00
Android (Google) Code Review
0e1f612d5d Merge change 24415 into eclair
* changes:
  Move ARM disassembler out of libacc and into the acc command-line tool.
2009-09-09 16:32:58 -04:00
Jack Palevich
d5315573d7 Move ARM disassembler out of libacc and into the acc command-line tool. 2009-09-09 13:19:34 -07:00
Android (Google) Code Review
d9a16d6e7d Merge change 23852 into eclair
* changes:
  Fix a call to memset(3) with reversed arguments.
2009-09-09 13:43:40 -04:00
Android (Google) Code Review
d62ae8f12f Merge change 24061 into eclair
* changes:
  Added a hack that makes the SD card world-writable when the sampling profiler is turned out. I'll remove this once egnor has the drop box in system_server working.
2009-09-09 02:10:07 -07:00
Mike Lockwood
9332482ed2 init.rc: Make /data/dontpanic files readable only by the system process.
Change-Id: If87470b7bcbb1c0774d10296ac82605db3dd9bf0
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-08 22:55:59 -04:00
David 'Digit' Turner
ca8177d814 Fix a bug that prevented the "generic" product builds from working in the emulator.
This also ensures that emulator-specific files /init.goldfish.rc and
/system/etc/init.goldfish.sh are never part of -user builds, which
correspond to production devices.
2009-09-08 16:03:49 -07:00
Android (Google) Code Review
c0b74902b8 Merge change 24171 into eclair
* changes:
  Turn an assert into an error to handle bad struct members more gracefully.
2009-09-08 12:08:24 -07:00
Jack Palevich
c408bbf4a7 Turn an assert into an error to handle bad struct members more gracefully. 2009-09-08 12:07:32 -07:00
Android (Google) Code Review
6b89efab5a Merge change 24168 into eclair
* changes:
  Improved DEBUG_SAVE_INPUT_TO_FILE logic.
2009-09-08 11:54:49 -07:00
Android (Google) Code Review
5f32438402 Merge change 24167 into eclair
* changes:
  Generate an error for the use of an undeclared struct.
2009-09-08 11:54:31 -07:00
Jack Palevich
9116bc4c18 Improved DEBUG_SAVE_INPUT_TO_FILE logic. 2009-09-08 11:46:42 -07:00
Jack Palevich
61de31feff Generate an error for the use of an undeclared struct. 2009-09-08 11:06:40 -07:00
San Mehat
82a6014d90 rootdir: init.rc: Allow all processes access to /data/dontpanic
***STOPSHIP***

Signed-off-by: San Mehat <san@google.com>
2009-09-05 15:01:52 -07:00
Bob Lee
bdb005acbc Added a hack that makes the SD card world-writable when the sampling
profiler is turned out. I'll remove this once egnor has the drop
box in system_server working.
2009-09-05 11:43:06 -07:00
Android (Google) Code Review
4599c1ff56 Merge change 23892 into eclair
* changes:
  android_atomic_write() implementation was using cmpxchg which was useless
2009-09-04 16:32:47 -07:00
Android (Google) Code Review
dfd31ee899 Merge change 24034 into eclair
* changes:
  Improve error message for unknown struct members
2009-09-04 15:35:58 -07:00
Jack Palevich
8fe5dcac34 Improve error message for unknown struct members
We now customize the error message to correctly refer to the '.' or
'->' operator , whichever one is actually being used when the error
occurs.
2009-09-04 15:34:21 -07:00
Android (Google) Code Review
9b7ed8a377 Merge change 24030 into eclair
* changes:
  Improve address operator (unary &).
2009-09-04 15:25:09 -07:00
Jack Palevich
5fd66ae01e Improve address operator (unary &).
Until now the address operator only worked with simple variables.
Now it works with arbitrary expressions (that are lvalues or function
names). So for example this now works:

struct S { int a[10]};

int f(struct S* p) {
    return &p->a[3];
}
2009-09-04 15:24:23 -07:00
Android (Google) Code Review
c62592bb46 Merge change 23911 into eclair
* changes:
  Add contacts aggregation event to the log.
2009-09-04 14:02:19 -07:00
Joe Onorato
91acb14877 Revert "adb: Another attempted workaround for the adb disconnect problem."
This reverts commit cc1de48dcd.

lockwood says to take this out.
2009-09-03 16:35:42 -07:00
Mathias Agopian
ca5e0bc3fe android_atomic_write() implementation was using cmpxchg which was useless 2009-09-03 16:31:37 -07:00
Ken Shirriff
f602030b35 Add contacts aggregation event to the log. 2009-09-03 16:13:08 -07:00
Mike Lockwood
f56d1b5a76 Revert "adb: "adb bugreport" now runs dumpstate via init rather than execing it in the shell."
This reverts commit be0045aafd.
This change broke compatibility with previous versions of adbd, so I will be implementing this
by modifying the bugreport command on the device instead.
2009-09-03 14:54:58 -04:00
Elliott Hughes
90764cfc76 Fix a call to memset(3) with reversed arguments.
Bug: 1999244
2009-09-03 11:52:31 -07:00
Android (Google) Code Review
e991decf34 Merge changes 23694,23695,23696 into eclair
* changes:
  init.rc: Add dumpstate service
  init: Add support for enforcing setprop by caller's group.
  adb: "adb bugreport" now runs dumpstate via init rather than execing it in the shell.
2009-09-02 21:40:39 -07:00
Mike Lockwood
abe3a9c305 init.rc: Add dumpstate service
Change-Id: Iaf7094dd4693c47566c1acf860b750b762af840c
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-03 00:36:25 -04:00