summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
...
| * liblog: add __android_log_is_loggable()Mark Salyzyn2015-02-091-0/+6
| | | | | | | | | | | | | | | | | | - 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
* | am c9c401e6: Merge "Move map data into backtrace data proper."Christopher Ferris2015-02-062-8/+15
|\ \ | |/ | | | | | | * commit 'c9c401e64ba00e8fa295cae30b2b0035fae1183a': Move map data into backtrace data proper.
| * Merge "Move map data into backtrace data proper."Christopher Ferris2015-02-062-8/+15
| |\
| | * Move map data into backtrace data proper.Christopher Ferris2015-02-062-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | am 5e753100: Merge "Clean up reading and writing in init."Elliott Hughes2015-02-061-0/+3
|\ \ \ | |/ / | | | | | | | | | * commit '5e753100c32c7b42ae4306a8023c419defd34c4e': Clean up reading and writing in init.
| * | Clean up reading and writing in init.Elliott Hughes2015-02-061-0/+3
| |/ | | | | | | | | | | | | | | | | | | | | | | | | 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
* | am d558530b: Merge "Fix Windows build."Elliott Hughes2015-02-051-0/+3
|\ \ | |/ | | | | | | * commit 'd558530ba90cb6218fe8e255c71a034c3fe1ea58': Fix Windows build.
| * Fix Windows build.Elliott Hughes2015-02-051-0/+3
| | | | | | | | | | | | | | Take 2. Probably should have done this in the beginning, but thought I was being clever. Change-Id: I85c6e487eece9bcc75f8f62c850c2d4d1ee9e908
* | am 27d28d3b: Merge "Add a WriteStringToFile overload that cares about ↵Elliott Hughes2015-02-051-0/+3
|\ \ | |/ | | | | | | | | | | permissions." * commit '27d28d3baff860d1fd936a5fcf2d920577c52575': Add a WriteStringToFile overload that cares about permissions.
| * Add a WriteStringToFile overload that cares about permissions.Elliott Hughes2015-02-041-0/+3
| | | | | | | | Change-Id: I857a80b61768d4e9610bdd149eff2d9d8e48d2c0
* | am 55732f49: Merge "android_reboot should take a const char*."Elliott Hughes2015-02-041-1/+1
|\ \ | |/ | | | | | | * commit '55732f49287a75f9baabe9f150443aec9234c90d': android_reboot should take a const char*.
| * android_reboot should take a const char*.Elliott Hughes2015-02-031-1/+1
| | | | | | | | | | | | The kernel argument is actually a void*, but it's only read from. Change-Id: I305c50249bf12b7fbdea4721257aed52a0372f8d
* | am e44d25d6: Merge "Add Google-style StringPrintf."Elliott Hughes2015-02-031-0/+38
|\ \ | |/ | | | | | | * commit 'e44d25d64537f4ea2abcb56aabc7a5bf0731c222': Add Google-style StringPrintf.
| * Merge "Add Google-style StringPrintf."Elliott Hughes2015-02-031-0/+38
| |\
| | * Add Google-style StringPrintf.Elliott Hughes2015-02-031-0/+38
| | | | | | | | | | | | Change-Id: If333c28b8ed047346a2dd85e591c4bedbab874cc
* | | am 9fc43358: Merge "Extra Win32 compatibility."Elliott Hughes2015-02-031-0/+6
|\ \ \ | |/ / | | | | | | | | | * commit '9fc43358f72a581beb26532ea2cb1f2adc053758': Extra Win32 compatibility.
| * | Extra Win32 compatibility.Elliott Hughes2015-02-031-0/+6
| |/ | | | | | | Change-Id: Ibc583aba580f4fc15c243f495ead44b2ce4c6e5e
* | am 6974ba4e: Merge "Add Google-style ReadFileToString and WriteStringToFile."Elliott Hughes2015-02-031-0/+29
|\ \ | |/ | | | | | | * commit '6974ba4ed430ec3247c3a5c04a2263b4b04ff827': Add Google-style ReadFileToString and WriteStringToFile.
| * Add Google-style ReadFileToString and WriteStringToFile.Elliott Hughes2015-02-031-0/+29
| | | | | | | | | | Bug: 19217569 Change-Id: I64789d3fa6777ee30a324cdf00fdc275c1230e1b
* | am 2b2b7632: Merge "Revert "Remove netcfg\'s unused options.""Elliott Hughes2015-02-031-0/+1
|\ \ | | | | | | | | | | | | * commit '2b2b7632f55ca73562361cf4d06e60e7b62f7ff4': Revert "Remove netcfg's unused options."
| * | Revert "Remove netcfg's unused options."Elliott Hughes2015-02-031-0/+1
| | | | | | | | | | | | | | | | | | This reverts commit f8e83054cb8a8b13ee84a4aeeaa0a2fd8debca81. Change-Id: Iede772f96ff9008277df433dcbb5f6603de65283
* | | am 6a728fde: Merge "Remove netcfg\'s unused options."Elliott Hughes2015-02-031-1/+0
|\ \ \ | |/ / | | | | | | | | | * commit '6a728fde77d1367318c79e5b182f0cb316872a37': Remove netcfg's unused options.
| * | Remove netcfg's unused options.Elliott Hughes2015-02-031-1/+0
| |/ | | | | | | | | | | | | Only "netcfg" for a list of interfaces and "netcfg <interface> dhcp" still seem to be used. Change-Id: Iaf499c06b09ffe5e0925339b9cd6e502f3234a86
* | am ef89e8d1: Merge "Revert "Remove netcfg\'s unused options.""Elliott Hughes2015-02-031-0/+1
|\ \ | | | | | | | | | | | | * commit 'ef89e8d14619c68015103fd51ff75f82eeef8d61': Revert "Remove netcfg's unused options."
| * | Revert "Remove netcfg's unused options."Elliott Hughes2015-02-031-0/+1
| | | | | | | | | | | | | | | | | | This reverts commit 24c1885bc196940f48e478a220a360118ba84bd7. Change-Id: Iaae6502e2db90d67b4275faa104cfc6a0abc65c6
* | | am 67900498: Merge "Remove netcfg\'s unused options."Elliott Hughes2015-02-031-1/+0
|\ \ \ | |/ / | | | | | | | | | * commit '67900498cff54c8116b3f7afc84e046d98bb17e4': Remove netcfg's unused options.
| * | Remove netcfg's unused options.Elliott Hughes2015-02-021-1/+0
| |/ | | | | | | | | | | | | Only "netcfg" for a list of interfaces and "netcfg <interface> dhcp" still seem to be used. Change-Id: Ie0aecf5b18bd854cfb5878b6cfdd7160c9f42526
* | am 7cb19579: Merge "Add close_file flag to OpenArchiveFd()"Dmitriy Ivanov2015-02-021-1/+4
|\ \ | |/ | | | | | | * commit '7cb19579bc22bf38e15b970f801f8065d629611d': Add close_file flag to OpenArchiveFd()
| * Add close_file flag to OpenArchiveFd()Dmitriy Ivanov2015-01-301-1/+4
| | | | | | | | | | | | * We should be able to keep fd alive after CloseArchive() Change-Id: I1aa2c039bb2a590ae72f256acc9ba5401c2c59b1
* | am e862350b: Merge "Kill HAVE_PTHREADS."Yabin Cui2015-01-278-36/+33
|\ \ | |/ | | | | | | * commit 'e862350bb2eb3d3eda526da7f3b6d5c2dd40a445': Kill HAVE_PTHREADS.
| * Kill HAVE_PTHREADS.Yabin Cui2015-01-278-36/+33
| | | | | | | | | | Bug: 19083585 Change-Id: Ic09eb3dd250bc5c5b63cac7998f99f5fa007f407
* | am 91581f19: Merge "liblog: add pstore write"Mark Salyzyn2015-01-231-1/+11
|\ \ | |/ | | | | | | * commit '91581f19906ade01eabc6e10a7dac209e710117a': liblog: add pstore write
| * liblog: add pstore writeMark Salyzyn2015-01-231-1/+11
| | | | | | | | | | | | | | Used to push the Android log messages into pstore (when available, and no propagation of error). Change-Id: I9def8cf796d35d347f502d9745d5f42ec1200253
* | am 4730328d: Merge "logd: create private/android_logger.h"Mark Salyzyn2015-01-231-0/+34
|\ \ | |/ | | | | | | * commit '4730328da72ef9b7aeaefc120358155fdfd8dde8': logd: create private/android_logger.h
| * logd: create private/android_logger.hMark Salyzyn2015-01-231-0/+34
| | | | | | | | | | | | | | | | | | - create a structure to depict the private header expected at logd end of socket. - utilize this new structure instead of unscalable byte stream technique used to unpack in logd. Change-Id: I2d0e5c3531c279f2dc1fbd74807210ff8d804de0
* | am d426a4e7: Merge "Move 32 bit/64 bit check into debuggerd."Christopher Ferris2015-01-221-27/+13
|\ \ | |/ | | | | | | * commit 'd426a4e7b62c18124827868ddbf8987aa433451b': Move 32 bit/64 bit check into debuggerd.
| * Move 32 bit/64 bit check into debuggerd.Christopher Ferris2015-01-201-27/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On 64 bit systems, calls to dump_backtrace_to_file or dump_tombstone try and directly contact the correct debuggerd (32 bit vs 64 bit) by reading the elf information for the executable. Unfortunately, system_server makes a call to dump_backtrace_to_file and it doesn't have permissions to read the executable data, so it defaults to always contacting the 64 bit debuggerd. This CL changes the code so that all dump requests go to the 64 bit debuggerd, which reads the elf information and redirects requests for 32 bit processes to the 32 bit debuggerd. Testing: - Forced the watchdog code in system_server to dump stacks and verified that all native stacks are dumped correctly. - Verified that dumpstate and bugreport still properly dump the native processes on a 64 bit and 32 bit system. - Intentionally forced the 64 bit to 32 bit redirect to write only a byte at a time and verified there are no errors, and no dropped data. - Used debuggerd and debuggerd64 to dump 32 bit and 64 bit processes seemlessly. - Used debuggerd on a 32 bit system to dump native stacks. Bug: https://code.google.com/p/android/issues/detail?id=97024 Change-Id: Ie01945153bdc1c4ded696c7334b61d58575314d1
* | am 45c4c06f: Merge "Remove unused cruft from libcutils."Elliott Hughes2015-01-161-34/+0
|\ \ | |/ | | | | | | * commit '45c4c06ffe6f38e0f77f37f488e07f2537eddd45': Remove unused cruft from libcutils.
| * Remove unused cruft from libcutils.Elliott Hughes2015-01-151-34/+0
| | | | | | | | Change-Id: I316d39e8e0a9aa385d8e1f37678b8bf2c03441eb
* | am 9f72ef89: Merge "Extend to receive NFLOG packets."Jeff Sharkey2015-01-163-0/+3
|\ \ | |/ | | | | | | * commit '9f72ef8944a93bd333c6c7f87c7f7d79207ae663': Extend to receive NFLOG packets.
| * Merge "Extend to receive NFLOG packets."Jeff Sharkey2015-01-163-0/+3
| |\
| | * Extend to receive NFLOG packets.Jeff Sharkey2015-01-153-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Packets captured and logged by the NFLOG target are unicast, so extend to catch and decode them. To avoid escaping issues, the raw contents are passed around as hex strings. Bug: 18335678 Change-Id: Ib7299500baa00080a1f000f9da843eb527363353
| * | Add timed versions of stack dumping functions.Christopher Ferris2015-01-151-0/+15
| |/ | | | | | | | | | | | | | | | | | | | | | | | | Under some unknown circumstances, debuggerd could become unresponsive. If you try and take a bugreport during this time, it will hang forever. Adding functions that have a timeout will allow dumpstate to stop if dumping is taking too long. Bug: 18766581 (cherry picked from commit 5f2ff6a9106083e2a79b8600a0bf6a5341c6ca38) Change-Id: I39e8e9c60209e3ef9efac795fedb8e1edce2bd3e
* | am 70f6dea9: Merge "android_filesystem: Remove setuid bits from tcpdump" ↵Dmitry Shmidt2015-01-151-1/+0
|\ \ | | | | | | | | | | | | | | | | | | into lmp-mr1-dev * commit '70f6dea9d06876bc65181c40ee9e623be196fb4c': android_filesystem: Remove setuid bits from tcpdump
| * \ Merge "android_filesystem: Remove setuid bits from tcpdump" into lmp-mr1-devDmitry Shmidt2015-01-151-1/+0
| |\ \
| | * | android_filesystem: Remove setuid bits from tcpdumpDmitry Shmidt2015-01-151-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18669116 Change-Id: I25486f2fe0e994f569b788fc9f03ef6d383f54d4 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | | | am 5f2ff6a9: Add timed versions of stack dumping functions.Christopher Ferris2015-01-151-0/+15
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit '5f2ff6a9106083e2a79b8600a0bf6a5341c6ca38': Add timed versions of stack dumping functions.
| * | | Add timed versions of stack dumping functions.Christopher Ferris2015-01-141-0/+15
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | Under some unknown circumstances, debuggerd could become unresponsive. If you try and take a bugreport during this time, it will hang forever. Adding functions that have a timeout will allow dumpstate to stop if dumping is taking too long. Bug: 18766581 Change-Id: I85053b8dcfe6224e2b64b4d8f7f2ef448b3cda34
* | | am ce1928e9: Merge "Add required casts for clang/llvm -Wc++11-narrowing"Chih-Hung Hsieh2015-01-131-2/+2
|\ \ \ | | |/ | |/| | | | | | | * commit 'ce1928e987923a276ff048c69d9a6f43f22610ba': Add required casts for clang/llvm -Wc++11-narrowing
| * | Add required casts for clang/llvm -Wc++11-narrowingChih-Hung Hsieh2015-01-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | system/core/include/utils/Mutex.h:134:25: error: non-constant-expression cannot be narrowed from type 'long long' to '__kernel_time_t' (aka 'long') in initializer list [-Wc++11-narrowing] system/core/include/utils/Mutex.h:135:26: error: non-constant-expression cannot be narrowed from type 'long long' to 'long' in initializer list [-Wc++11-narrowing] Change-Id: Icb9df26aeb01617da5ab1c36987289f7c2b11954