| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| |
| |
| | |
that talks to netd."
* commit '07a1b526ae36368293909b6c3ee7d5f18b89a2a7':
Introduce netd_client, a dynamic library that talks to netd.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This library is dynamically loaded and used by bionic, to replace selected
standard socket syscalls with versions that talk to netd.
Implement connect() by requesting that the socket be marked with the netId of
the default network and then calling through to the actual syscall.
There are two escape hatches:
+ If the fwmark server is unavailable, it isn't an error; we proceed with the
syscall. This might help at boot time (when the server isn't ready yet) and if
we get rid of the fwmarkd socket entirely in future platform versions.
+ If the ANDROID_NO_USE_FWMARK_CLIENT environment variable is set, we don't
attempt to use the fwmark server (even if it's available). This allows apps to
sidestep unforseen issues in production at runtime.
(cherry picked from commit 0581cb455ef924f128a5c6d46bc70868b5099eec)
Change-Id: Ib6198e19dbc306521a26fcecfdf6e8424d163fc9
|
|\ \
| |/
| |
| |
| | |
* commit '0f5e957963d6f455f4685772d0e1181d8f44e7bd':
Fix ucontext_t forward declare for mac.
|
| |
| |
| |
| | |
Change-Id: I30470f5cc25553dee25d4858f64ec5af13aa20c9
|
|\ \
| |/
| |
| |
| | |
* commit 'c1087e55c63f2c206eae676fd4c237585a64e8e5':
Fix mac build.
|
| |
| |
| |
| |
| |
| |
| | |
Forward declare ucontext_t so that it's not necessary for ucontext.h
to be included in the global header.
Change-Id: Ic13677dd572ab1acd927f0a17b284f9b417a642f
|
|\ \
| |/
| |
| |
| | |
* commit '66e31dc51e0d8db595cc1514527c4db6f5cdeba7':
Rewrite unwind thread handling.
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This new version doesn't require any specialized thread
implementation, it uses the Current implementation to do its job.
In addition, it runs much faster when multiple threads are trying
to unwind at the same time since the global signal lock is held for
only a small amount of time. Even running through the threads one at
a time should be faster since it no longer requires two passes through
the unwound stacks.
The new code now allows multiple simultaneous unwinds of the
same thread.
Finally, add the ability to unwind from a ucontext_t passed in. This
functionality doesn't work for remote unwinds yet.
Change-Id: I4d181d7ca5ffd2acfd1686e668e6d21e36b425cb
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* commit '22a289a0b6fcb1c0edc372e477c876819749addd':
Remove the dead corkscrew header files too.
|
| |/
| |
| |
| | |
Change-Id: I0dd5cf3966994db19d98f60805211ed39099465a
|
|\ \
| |/
| |
| |
| | |
* commit '15704b1bdfc7ddf080d50f7a5cf478dfb6608962':
logd: 64-bit compile issue
|
| |
| |
| |
| |
| |
| |
| | |
- ULONG_MAX is used against an uint32
- Add tv_sec_max and tv_nsec_max constants to log_time
Change-Id: Ic86cd7b0680868ad0536198b71a34cb19134fc22
|
|\ \
| |/
| |
| |
| | |
* commit 'f8db4afb703e0005eca7207bfdcc989c6cf66f1a':
Use the si_code value bionic passes us.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Bionic needs to re-raise various signals, which means the si_code
debuggerd sees has been clobbered. If bionic sends us the original
si_code value, we can use that instead of the one we see when the
ptrace the crashed process' siginfo.
Change-Id: If116a6bc667d55a6fb39b74f96673292af4e4c8c
|
|\ \
| |/
| |
| |
| | |
* commit '0a04c556947e4fb8e12cd73b9aded27318002336':
audio: fix audio_is_bluetooth_sco_device()
|
| |
| |
| |
| |
| | |
Bug: 14268964
Change-Id: Ia2a185c5e0939930c5114209651a1e0db6c36ef3
|
|\ \
| |/
| |
| |
| | |
* commit 'b1bcd9c3ae89f9060fcd8468d5a04f3710e2b1a6':
Improve liblog's fatal logging.
|
| |
| |
| |
| |
| |
| |
| | |
This makes LOG_ALWAYS_FATAL and LOG_ALWAYS_FATAL_IF as good as regular
assert(3).
Change-Id: I0666684d30cae7baf23c64b33d35c1e43f81acf0
|
|\ \
| |/
| |
| |
| |
| |
| | |
LOG_ID_CRASH"
* commit '19697f3e1eaf9c54b612e42f93619658194707cd':
logd: liblog: logcat: debuggerd: Add LOG_ID_CRASH
|
| |\ |
|
| | |
| | |
| | |
| | | |
Change-Id: Iea453764a1a4fc1661f461f10c641c30150e4d20
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | | |
init environment"
* commit 'fe545b9cb7188036d5fe8c433c7c87dd1b364c2b':
logd: libsysutils: logd startup outside init environment
|
| |/
| |
| |
| | |
Change-Id: I3426b6c3eebdd0c8258e966dcaaaa2825d7a23d1
|
|\ \
| |/
| |
| |
| |
| |
| | |
android_filesystem_config."
* commit 'cda31324afdc3e9d1bc5d2e9ee45985cf1fb8819':
Include 64bit valgrind in the android_filesystem_config.
|
| |
| |
| |
| |
| |
| | |
Required so that we set the exectuable bit correctly.
Change-Id: If59bd0ff47d2b4b2b8f92a1c007b4ba414ea1876
|
|\ \
| |/
| |
| |
| |
| |
| | |
for user"
* commit 'ae3ba0b339e7a768fe58f179fdab55f273419e1e':
logd: liblog: logcat: enable prune features for user
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
- Enable whitelist, blacklist and logsize tuneables for user
Change-Id: Id0c283844c71c5263a8cfbebf2e550f7ac415858
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | | |
is available."
* commit '83fd6375f6d9016afe9bb03453d39b8c41cda548':
Add guards to prevent typedefs when C++11 is available.
|
| | |
| | |
| | |
| | |
| | |
| | | |
char32_t and char16_t are both defined in C++11.
Change-Id: I44fe8f4f05f230c18a1b77fa21b6a40c8f8ecc2d
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* commit 'e35cba9af02004d30033826638e00ba5fdcdd013':
Create an UnwindMapLocal object.
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The way libunwind handles local unwinds is different from remote unwinds,
so create a new map object to handle the differences.
Add new test to verify the map data is being generated correctly.
Add new tests to check for leaks.
Refactor the BACK_LOGW code into a single header file.
Change-Id: I01f3cbfc4b927646174ea1b614fa25d23b9b3427
|
|\ \
| |/
|/|
| |
| | |
* commit 'df33e8b544c457e4b08e8fa0b8a3eaf5eaf8fc2e':
Add BitSet64. DO NOT MERGE
|
| |
| |
| |
| | |
Change-Id: Idf3e21dfaa9f90f4dcb1b4d41eed3891dda99561
|
| |
| |
| |
| |
| |
| |
| | |
- switch format to PRId64 for int64_t
- switch format to PRId32 for int32_t
Change-Id: I1e66db06810000936d584ed49234550abd96cdff
|
| |
| |
| |
| | |
Change-Id: I10e8d92c933e31ee11e78d2d1114261a30c4be0e
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- liblog android_logger_get_log_size and android_logger_get_readable_size
adjusted to return long instead of int because of -G flag extending range
NB: ifdef'd only for userdebug and eng builds
- liblog Add android_logger_[sg]et_prune_list and android_logger_set_log_size
- logcat Add -P, -p and -G flags
- logd Add LogWhiteBlackList and configurable log size
(cherry picked from commit 18a5432158ad43b8faefe4950b30e760200ce0b4)
Change-Id: I1572338c1b34bd968ad7867857ef708156ec3b6a
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- logd add statistical collection and formatting
- liblog add android_logger_get_statistics call
- logcat add -S flag
- logcat add -b all
(cherry picked from commit 51a29c8dc445e4fb89860561933e54a231e6ffb4)
Change-Id: I521753b1969ecd4590c956aeeb1557d101059d67
|
| |
| |
| |
| | |
Change-Id: I55e8311bae97703be26e57b415a8ab0a6d9b4361
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- structure packing
- move towards log_time from struct timespec
- extend log_time to cover differences between
log_time and struct timespec
Change-Id: I106ed0b609917306d170044054b5b32645f2a295
|
| |
| |
| |
| |
| |
| |
| |
| | |
- init: set /proc/sys/net/unix/max_dgram_qlen to 300
- libsysutils: Add listen backlog argument to startListener
- logd: set listen backlog to 300
Change-Id: Id6d37d6c937ba2d221e76258d89c9516619caeec
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Modify liblog to send all messages to the new syslog user
space daemon.
Original-Change-Id: I0ce439738cd921efb2db4c1d6a289a96bdbc8bc2
Original-Change-Id: If4eb0d09409f7e9be3eb4bb7017073dc7e931ab4
Signed-off-by: Nick Kralevich <nnk@google.com>
* Add a TARGET_USES_LOGD make flag for BoardConfig.mk to manage
whether logd is enabled for use or not.
* rename syslog to logd to avert confusion with bionic syslog
* Add fake log support back in
* prefilter for logging messages from logd
* Fill in timestamps at logging source
* update abstract log reader
* switch from using suffix for id to v3 format
* log a message when creating devices that a deprecated interface
is being utilized.
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
(cherry pick from commit 099e2c1f6f706a8600c1cef74cce9066fc315480)
Change-Id: I47929a5432977a1d7235267a435cec0a7d6bd440
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
With AArch64 the enumerations with values in the range
0x80000000 to 0x80000007 are being assigned to ssize_t
typed variables which are 64-bit rather than 32-bit, and
are being used in conditions where they are being checked
for being negative. This is not the case when ssize_t is
64-bit, so redefine this to INT32_MIN value.
Change-Id: I7a031a940a28658b3bf34bebac93dfb3ba397b05
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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 3e76e0a49760c4970b7cda6153e51026af98e4f3)
Author: Nick Kralevich <nnk@google.com>
Change-Id: Ice88b1412d8f9daa7f9119b2b5aaf684a5e28098
|
| |
| |
| |
| |
| |
| |
| |
| | |
Eliminates various warnings from SELinux-related code.
Bug: 12587913
Change-Id: I28921f0ebd934324436609540d95ccef58552b64
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
|
| |
| |
| |
| |
| |
| |
| | |
This patch adds atomic functions for x86_64.
Change-Id: I298c760a1e6efa2ce2c61a143f833b6785805442
Signed-off-by: Qiming Shi <qiming.shi@intel.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Wrap the call in a if (0) when verbose logging is disabled
to provide compile time checking.
Also add a printf format attribute to the function to warn
if parameters are incorrect.
Change-Id: Ic77edeadcc4d886ca0f8b434f8550e18e22d5901
|
| |
| |
| |
| |
| |
| | |
This reverts commit 2a72c575d260cd256f767b7ad511a6959444134b.
Change-Id: Idb485f1be2906e8c1c8f0da3df186a7aade027f6
|