Commit Graph

35475 Commits

Author SHA1 Message Date
Tom Cherry b648daaa40 Remove ALOGD_IF_SLOW
ALOGD_IF_SLOW isn't intuitively implemented as it cannot handle
temporaries used as its parameters.  Since there are so few users of
it already and since it's just sugar on top of 2 otherwise trivial
lines, we opt to remove it entirely.

Bug: 62820330
Test: Build

Change-Id: Ie91b40cdaf650154203ccf0ca70e029cc097b350
2017-07-14 19:51:57 +00:00
Christopher Ferris d226a51409 Make the library usable as a library.
- Add namespace unwindstack everywhere so that it's easier for other
  code to use the library.
- Move some of the header files into include/unwindstack so that they
  can be exposed.
- Modify the headers so that only a limited number need to be exposed.
- Update the tools to use the new headers.
- Add a GetLoadBias() call on the Elf object. This prevents the need
  to get the interface object out of the Elf object.
- Move the GetRelPc() call out of the Reg class, to the Elf class. It's
  not always the case that a Reg object will be around when you want to
  get a relative pc. The tests for this moved to ElfTest.cpp.

Bug: 23762183

Test: Unit tests pass.
Change-Id: Iac609dac1dd90ed83d1a1e24ff2579c96c023bc3
2017-07-14 12:20:23 -07:00
Mark Salyzyn 93394034a2 rootdir: record last build signature and kernel version
Rotate /default.prop and /proc/version into /data/misc/recovery/
as an aid in determining the vintage of the LAST_LOGCAT and
LAST_DMESG in the bugreport collection.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Test: manually confirm content rotation through reboots
Bug: 62793047
Change-Id: Ibbe546c76041f20e308e58e5548939afac75db97
2017-07-14 11:39:14 -07:00
Daichi Hirono 926acb637f Remove ScopedLogSeverity for debugging
The ScopedLogSeverity was added to observe APCT failures, which turned
out to be a compiler optimization error.

Bug: 62429763
Test: None
Change-Id: Ibb45d018d8eaf4b29cb417da80ae5f0b000dda8e
2017-07-14 16:44:16 +09:00
Bowgo Tsai dc43b54d33 Merge "fs_mgr: trim the terminating '\0' when reading from device tree" am: b76158d56a am: 3205cd6cc4 am: 776c67b4d5
am: ec721bdda2

Change-Id: I229b411a591b04de4bb557b1bc5b604d9a2e63d0
2017-07-14 05:32:33 +00:00
Bowgo Tsai ec721bdda2 Merge "fs_mgr: trim the terminating '\0' when reading from device tree" am: b76158d56a am: 3205cd6cc4
am: 776c67b4d5

Change-Id: I5cccad6c1d5df0dd0b5505eaf18353c96ba5ea72
2017-07-14 05:26:30 +00:00
Bowgo Tsai 776c67b4d5 Merge "fs_mgr: trim the terminating '\0' when reading from device tree" am: b76158d56a
am: 3205cd6cc4

Change-Id: I81cb7e1f3bf6043bfc2f8383ba1bc6929d9785c8
2017-07-14 05:21:02 +00:00
Bowgo Tsai 3205cd6cc4 Merge "fs_mgr: trim the terminating '\0' when reading from device tree"
am: b76158d56a

Change-Id: I8498667cfdd266827a936a9e9a0bac50dc9699f4
2017-07-14 05:18:04 +00:00
Treehugger Robot b76158d56a Merge "fs_mgr: trim the terminating '\0' when reading from device tree" 2017-07-14 05:11:00 +00:00
Josh Gao 00c80f123e Merge "crasher: add a case that leaks until OOM-kill." am: f610d6db82 am: 0cb3d254a2 am: 914e341741
am: bf304469ba

Change-Id: Id503a6ccb75048f65e61f9f936f5eab491782756
2017-07-14 00:15:29 +00:00
Josh Gao bf304469ba Merge "crasher: add a case that leaks until OOM-kill." am: f610d6db82 am: 0cb3d254a2
am: 914e341741

Change-Id: Ibf118d9b85a5a8cb4fd195ebff5187b4a28a8583
2017-07-14 00:07:04 +00:00
Josh Gao 914e341741 Merge "crasher: add a case that leaks until OOM-kill." am: f610d6db82
am: 0cb3d254a2

Change-Id: Icd55ccdf17c0449315f943a7109c14141a235f65
2017-07-14 00:00:04 +00:00
Josh Gao 0cb3d254a2 Merge "crasher: add a case that leaks until OOM-kill."
am: f610d6db82

Change-Id: I475d8ca2e2959b66e19f71545e14f75f1ca8c202
2017-07-13 23:56:08 +00:00
Treehugger Robot f610d6db82 Merge "crasher: add a case that leaks until OOM-kill." 2017-07-13 23:46:59 +00:00
Christopher Ferris 74a35c1382 Merge "Move tools to separate directory." am: d312abe7c0 am: 3588f6a5fb am: 224087844b
am: fef6903926

Change-Id: Ic26748e94dcff9c386c628a6acc94ababd011fc6
2017-07-13 22:55:33 +00:00
Christopher Ferris fef6903926 Merge "Move tools to separate directory." am: d312abe7c0 am: 3588f6a5fb
am: 224087844b

Change-Id: I279271308104e021865847e8857c49291a1c4dc3
2017-07-13 22:52:34 +00:00
Christopher Ferris 224087844b Merge "Move tools to separate directory." am: d312abe7c0
am: 3588f6a5fb

Change-Id: Ic9ad5d71681e5dc30af94faa4cc969095fe6e8ae
2017-07-13 22:48:28 +00:00
Christopher Ferris 3588f6a5fb Merge "Move tools to separate directory."
am: d312abe7c0

Change-Id: I824bf8bb7598383c9ffa4da8b9ffc1c7ded04268
2017-07-13 22:45:29 +00:00
Christopher Ferris d312abe7c0 Merge "Move tools to separate directory." 2017-07-13 22:41:55 +00:00
Josh Gao 399b4ee21e crasher: add a case that leaks until OOM-kill.
Bug: http://b/63143027
Test: adb shell crasher leak
Change-Id: I6e4105972ef3d86430d0f332938f5fd33ebae100
2017-07-13 14:00:26 -07:00
Colin Cross 4c76db9580 Merge "libmemunreachable: track kernel binder references" am: 454285dfcc am: 028aca2d06 am: d5a42720a5
am: fd8fb19d5a

Change-Id: I5a712bf34e1ef5cf0b78b836616812a65c772e0b
2017-07-13 20:35:51 +00:00
Christopher Ferris b5d7a87512 Move tools to separate directory.
Bug: 23762183

Test: Ran unit tests, ran new tools.
Change-Id: Icc7cbb4102a68042f4683d6dd622f21bc5e74deb
2017-07-13 13:20:10 -07:00
Colin Cross fd8fb19d5a Merge "libmemunreachable: track kernel binder references" am: 454285dfcc am: 028aca2d06
am: d5a42720a5

Change-Id: Ib5d71c98a3f34725d44df98c44d2546012994b90
2017-07-13 20:15:50 +00:00
Colin Cross d5a42720a5 Merge "libmemunreachable: track kernel binder references" am: 454285dfcc
am: 028aca2d06

Change-Id: Ic4ba34dbe304a462928ff132d4897a26cef14c57
2017-07-13 20:04:10 +00:00
Colin Cross 028aca2d06 Merge "libmemunreachable: track kernel binder references"
am: 454285dfcc

Change-Id: I2c30d94b6e628a637f59c353d862dc16cdf528e0
2017-07-13 19:55:22 +00:00
Colin Cross 454285dfcc Merge "libmemunreachable: track kernel binder references" 2017-07-13 19:41:26 +00:00
Steven Moreland e7ccb06021 Merge "Add vendor_available to liblog_headers." am: f42d02830d -s ours am: f2a35db75c am: 72180d4361
am: 102d7a6ea5  -s ours

Change-Id: I9a1f6daf0a973bd24b717767b7292c5136b05da4
2017-07-13 17:47:38 +00:00
Steven Moreland 102d7a6ea5 Merge "Add vendor_available to liblog_headers." am: f42d02830d -s ours am: f2a35db75c
am: 72180d4361

Change-Id: I3d39339fdbe9e1b7eefcc0b806ce1c2efc38dcb5
2017-07-13 17:45:39 +00:00
Steven Moreland 72180d4361 Merge "Add vendor_available to liblog_headers." am: f42d02830d -s ours
am: f2a35db75c

Change-Id: I29ff70be1034b5ea43a23b02fab038a94512e68d
2017-07-13 17:42:38 +00:00
Steven Moreland f2a35db75c Merge "Add vendor_available to liblog_headers."
am: f42d02830d  -s ours

Change-Id: Iba32e2a5ed864b0655428964bf09df60149e5184
2017-07-13 17:39:39 +00:00
Christopher Ferris 223f90d9fe Merge "A few cleanups." am: 0c22c5646e am: 35f2bf43a7 am: 55ed67cdaf
am: 26416367df

Change-Id: I65ce944f355a836812d78aa4782226635dae2a3b
2017-07-13 17:08:05 +00:00
Steven Moreland 0f2d5c93a1 Merge "libutils: liblog export headers" am: 5607f36e01 -s ours am: 83999b3df8 am: f16148c00b
am: 6d43164e09  -s ours

Change-Id: Id278f9a72c756390a15647ff647b7665e9e7a738
2017-07-13 17:07:17 +00:00
Christopher Ferris 26416367df Merge "A few cleanups." am: 0c22c5646e am: 35f2bf43a7
am: 55ed67cdaf

Change-Id: I97ad96045e8709f485d49cd598434a9fda2497b1
2017-07-13 17:04:53 +00:00
Steven Moreland 6d43164e09 Merge "libutils: liblog export headers" am: 5607f36e01 -s ours am: 83999b3df8
am: f16148c00b

Change-Id: Ia3efe3911b579165e7595b261c149c13a657f594
2017-07-13 17:04:35 +00:00
Christopher Ferris 55ed67cdaf Merge "A few cleanups." am: 0c22c5646e
am: 35f2bf43a7

Change-Id: I6efc7c8201c57932d6cb5ff4f5f474592e6d01db
2017-07-13 17:02:26 +00:00
Steven Moreland f16148c00b Merge "libutils: liblog export headers" am: 5607f36e01 -s ours
am: 83999b3df8

Change-Id: I8cdc21b4e822f0cbef6346b766ac219fc5f084ed
2017-07-13 17:02:09 +00:00
Christopher Ferris 35f2bf43a7 Merge "A few cleanups."
am: 0c22c5646e

Change-Id: I557f9348d53d6c64efba4e25c7fa46970ca5e7a0
2017-07-13 16:59:56 +00:00
Steven Moreland 83999b3df8 Merge "libutils: liblog export headers"
am: 5607f36e01  -s ours

Change-Id: I63edd403d5e56136b7516798ae8c044bdbbfd448
2017-07-13 16:59:37 +00:00
TreeHugger Robot 8aef7485ff Merge "Added libhealthd-headers." 2017-07-13 16:58:55 +00:00
Bowgo Tsai f559655912 fs_mgr: trim the terminating '\0' when reading from device tree
Bug: 63637343
Test: boot device
Change-Id: I35ead1ad852493f7f92bdb6c87617fde57b3b0be
2017-07-13 15:11:16 +08:00
Colin Cross f572b91c4f libmemunreachable: track kernel binder references
The kernel can hold references to binder objects that have no userspace
references.  Allow libmemunreachable to call into libbinder and
libhwbinder to get lists of kernel references.  Use undefined weak
symbols so that libmemunreachable will continue to work in processes
that do not have libbinder.

Test: memunreachable_binder_test
Bug: 28275695
Change-Id: I9eae73f2a51a49a7025ffe6309ccdc2693a2391b
2017-07-12 14:59:11 -07:00
Treehugger Robot f42d02830d Merge "Add vendor_available to liblog_headers." 2017-07-12 21:07:26 +00:00
Steven Moreland c30f248cd4 Add vendor_available to liblog_headers.
Renamed NDK headers to "liblog_ndk_headers"
(these names aren't used anywhere).

libutils_headers now properly export liblog_headers.

Test: with BOARD_VNDK_VERSION=current
Merged-In: I3a85385f588b84393c57fd6d1bcac620f708f0f1
Change-Id: I3a85385f588b84393c57fd6d1bcac620f708f0f1
2017-07-12 12:59:30 -07:00
Tom Cherry 08678e1f8b Remove ALOGD_IF_SLOW
ALOGD_IF_SLOW isn't intuitively implemented as it cannot handle
temporaries used as its parameters.  Since there are so few users of
it already and since it's just sugar on top of 2 otherwise trivial
lines, we opt to remove it entirely.

Bug: 62820330
Test: Build

Change-Id: Ie91b40cdaf650154203ccf0ca70e029cc097b350
Merged-In: Ie91b40cdaf650154203ccf0ca70e029cc097b350
2017-07-12 17:59:12 +00:00
Christopher Ferris 0c22c5646e Merge "A few cleanups." 2017-07-12 17:44:03 +00:00
TreeHugger Robot 67dec06c7c Merge "Add vendor_available to liblog_headers." 2017-07-12 15:29:20 +00:00
Treehugger Robot 5607f36e01 Merge "libutils: liblog export headers" 2017-07-12 05:42:10 +00:00
Christopher Ferris f6d5431273 A few cleanups.
- Cleanup the blueprint file a bit.
- Fix the formatting in DwarfMemoryTest.cpp.
- Fix the misnamed test MemoryBuffer.cpp to MemoryBufferTest.cpp.
- Add a function to find the location of the test files so it's not
  necessary to run the test in the same directory as the test files.

Bug: 23762183

Test: Builds and unit tests pass.
Change-Id: I5666972bd01f14b8ee47c518f1840f8aeb7fd08b
2017-07-11 19:10:34 -07:00
TreeHugger Robot 01af80094e Merge "Use the legacy linker namespace configs when target is sanitized" 2017-07-12 01:11:10 +00:00
Yifan Hong 5a70fe9745 Merge "Remove old LOG_EVENT_* code from libsysutils" am: 5aee3ff22a am: 67e0b810bc am: 3ba4e0a589
am: 4a4278968f

Change-Id: Ie6e734a5fc2894a2b56fd59cc38636a468a523e7
2017-07-12 00:28:48 +00:00