| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Allow our own libraries to use this privately instead of
running the less efficient get_properties and doing the math.
Test: compile and boot smoke test
Bug: 27566046
Bug: 31456426
Change-Id: I2f677276d27fbcb6af01b600ac1d9891c8938d43
|
|\| |
| | |
| | |
| | |
| | |
| | | |
am: 5171bebf41
Change-Id: I28080f043ba5a042573e81a6da3f5be83c7a4251
|
| |\ \
| | |/
| |/| |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Bug: http://b/31537253
Test: builds
Change-Id: If02c8107206fb60e4622f8937bee0d0a362e1c7d
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
am: 5b7c6772b0
am: 27c6c4cf04
Change-Id: I2ceb40b4589dfc2721197065ae5a85e9dc83b907
|
| |\| |
| | | |
| | | |
| | | |
| | | |
| | | | |
am: 5b7c6772b0
Change-Id: I63e945622d47ab1cbcbdd82d00cfdf3d51c95564
|
| | |\ \ |
|
| | | |/
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Test: manual - make sure it works in both IPv4/IPv6 env.
BUG: 31537253
Change-Id: Ica492bff34a8c0441516a213d0e8b78fcdfd3282
Signed-off-by: Tao Wu <lepton@google.com>
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
am: bf72cf21dc
Change-Id: I5d4cc013421350dd30fa13d168112d30ad93e7cd
|
| |\| |
| | | |
| | | |
| | | |
| | | |
| | | | |
am: 28423b86fe
Change-Id: Ied7a062c6ce40864ea181819f5da21e64cae04de
|
| | |/
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
HIDL requires file descriptors to be wrapped in native_handle_t. We want
a low overhead way to do that when the number of file descriptors is known
at compile time. Instead of
// wrap an fd in native_handle_t
native_handle_t* fd_handle = native_handle_create(1, 0);
if (!fd_handle) {
// clean up and return error
}
fd_handle->data[0] = fd;
hidl_cb(..., fd_handle);
native_handle_delete(fd_handle);
this change adds native_handle_init to allow for
// wrap an fd in native_handle_t
NATIVE_HANDLE_DECLARE_STORAGE(fd_storage, 1, 0);
native_handle_t* fd_handle = native_handle_init(fd_storage, 1, 0);
fd_handle->data[0] = fd;
hidl_cb(..., fd_handle);
Test: make libcutils
Bug: 32021609
Change-Id: If1fd07482243d37492fdea57c602a1b13c8953cc
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
586c6985cf
am: 4b5456eacc
Change-Id: Id78628d7e7abfa16f1ada16f894f9616a2dc469b
|
| |\|
| | |
| | |
| | |
| | |
| | | |
am: 586c6985cf
Change-Id: I8c54bdc1a3582be1fc7c4a9be83b555624fcb0a3
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Test: Compile & adb functioning
Bug: 19235719
Bug: 26552300
Bug: 31289077
Bug: 31456426
Change-Id: I7ad8963bcca3d8b5c37b547c11d163b652d35556
|
|\| |
| | |
| | |
| | |
| | |
| | | |
am: cb52dc258e
Change-Id: I011555d429120a26e61fbce5f7a125ce96fadb3f
|
| |\|
| | |
| | |
| | |
| | |
| | | |
am: 462e087e40
Change-Id: I745341bf4c76fc8c75f36e578cf1086808119426
|
| | |\ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
libhwbinder's Parcel::readNativeHandleNoDup returns a temporary
native_handle_t. We want a way to save the temporary handle for later
use.
Change-Id: I16f32043aa8b7d2c0aa57d67551500259b411410
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
am: 04819403d6
Change-Id: I03fc482f4d0aab72991b351e855b8e240ed3abd9
|
| |\| |
| | | |
| | | |
| | | |
| | | |
| | | | |
am: 2e7e065db9
Change-Id: I9c7bee42bf1d7522d4dd95b5bb8a925841f96624
|
| | |\ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Bug: http://b/23392815
Test: builds
Change-Id: I7fce8de1f0e2314170cce456cd49346dcee9d134
|
|\| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
am: 6e5ffe2680
Change-Id: I4c1351fb61b3357d059a8e1da4ce14e3701e17af
|
| |\| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
am: cb670780be
Change-Id: I532a0f6143511f53f3303751f95de115ac034cd7
|
| | |/ /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
debuggerd does not require log/logger.h, can use android/log.h
In some cases, mark why log/logger.h was required.
Test: Compile and boot smoke test
Bug: 26552300
Bug: 31289077
Bug: 31456426
Change-Id: Ia34987e25a01d81971ec8d785415f732b8376c4f
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
aed39f1f3d
am: 2acb41b46c
Change-Id: Ifd5da3780cf05863b71fad9583b1b83f4962b46f
|
| |\| |
| | | |
| | | |
| | | |
| | | |
| | | | |
am: aed39f1f3d
Change-Id: If1615c62df20df58eda2910455f2a1e05268fba7
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Allows us to mitigate the impact of MAP_PRIVATE and copy on write by
calling android_lookupEventTag_len instead of android_lookupEventTag,
and delaying the copy on write impact to the later. We return a
string length in a supplied location along with the string pointer
with android_lookupEventTag_len(const EventTagMap* map, size_t* len,
int tag). The string is not guaranteed to be nul terminated. Since
android_lookupEventTag() called even once can cause the memory
impact, we will mark it as deprecated, but we currently have no
timeframe for removal since this is a very old interface.
Add an API for __android_log_is_loggable_len() that accepts the non
null terminated content and fixup callers that would gain because the
length is known prior to the call either in the compiler or at
runtime. Tackle transition to android_lookupEventTag_len() and
fixup callers.
On any application that performs logging (eg: com.android.phone)
/proc/<pid>/smaps before:
xxxxxxxxxx-xxxxxxxxxx rw-p 00000000 fd:00 463 /system/etc/event-log-tags
Size: 20 kB
Rss: 20 kB
Pss: 1 kB
Shared_Clean: 0 kB
Shared_Dirty: 20 kB
Private_Clean: 0 kB
Private_Dirty: 0 kB
Referenced: 0 kB
Anonymous: 20 kB
AnonHugePages: 0 kB
Swap: 0 kB
SwapPss: 0 kB
KernelPageSize: 4 kB
MMUPageSize: 4 kB
Locked: 0 kB
VmFlags: rd wr mr mw me ac
/proc/<pid>/smaps after:
xxxxxxxxxx-xxxxxxxxxx rw-p 00000000 fd:00 1773 /system/etc/event-log-tags
Size: 20 kB
Rss: 20 kB
Pss: 1 kB
Shared_Clean: 20 kB (was 0kB)
Shared_Dirty: 0 kB (was 20kB)
Private_Clean: 0 kB
Private_Dirty: 0 kB
Referenced: 20 kB (was 0kB)
Anonymous: 0 kB (was 20kB)
AnonHugePages: 0 kB
Swap: 0 kB
SwapPss: 0 kB
KernelPageSize: 4 kB
MMUPageSize: 4 kB
Locked: 0 kB
VmFlags: rd wr mr mw me ac
Added liblog-unit-tests --gtest_filter=liblog.event_log_tags to
check for Shared_Clean: to not be 0 and Anonymous: to be 0 for
all processes referencing event-log-tags. Which can include multiple
references to /system/etc/event-log-tags and future possible refs to
/data/misc/logd/event-log-tags and /dev/event-log-tags. We want
failure messages to help point to errant code using the deprecated
interface.
This change saves 1/4MB of memory or more on a typical system.
Test: gTest liblog-unit-tests
Bug: 31456426
Change-Id: I9e08e44d9092bd96fe704b5709242e7195281d33
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
am: 0308b0eabd
Change-Id: I4d631d53b4fc27e1a02d412bae21fffad6635258
|
| |\| |
| | | |
| | | |
| | | |
| | | |
| | | | |
am: cac331afd9
Change-Id: I95c6a64bc35a041688303fcee4d506865d0a19a4
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Should use android/log.h instead of log/log.h as a good example
to all others. Adjust header order to comply with Android Coding
standards.
Test: Compile
Bug: 26552300
Bug: 31289077
Change-Id: I33a8fb4e754d2dc4754d335660c450e0a67190fc
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
eb189f147b
am: 16f7786032
Change-Id: I26939d55686b6182c9fae5fc74f3e7ed92132cdb
|
| |\| |
| | | |
| | | |
| | | |
| | | |
| | | | |
am: eb189f147b
Change-Id: I3f2b13e259d9bbb7bc714f21eab7181fa72c35bf
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Should use android/log.h instead of cutils/log.h as a good example
to all others. Adjust header order to comply with Android Coding
standards.
Test: Compile
Bug: 26552300
Bug: 31289077
Change-Id: I2c9cbbbd64d8dccf2d44356361d9742e4a9b9031
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
am: 9fd2eaf827
Change-Id: If01fd686fc15aaf74b6f06b7e661eb46e127d51b
|
| |\| |
| | | |
| | | |
| | | |
| | | |
| | | | |
am: f56fce0240
Change-Id: I588c3a252594e1ecd4b34242217cf23c84e4af67
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Replace references to cutils/log.h and log/log.h with android/log.h.
Point cutils/log.h to android/log.h. Adjust header order to comply
with Android Coding standards.
Test: Compile
Bug: 26552300
Bug: 31289077
Change-Id: I4b00c0dff3a0a50cbb54301fdc5a6c29c21dab65
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
am: c528ac0fe8
Change-Id: I2e6eb5782ccd27e47e8302381d790611fd58a1d7
|
| |\| |
| | | |
| | | |
| | | |
| | | |
| | | | |
am: 499a33d6dc
Change-Id: If28b70b199b4bbf99f853d6c6d14b73a72fafacb
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Move all liblog related content into android/log.h, and make
log/log.h points to android/log.h.
Test: Compile
Bug: 26552300
Bug: 31289077
Change-Id: I858e0ebe047b86f2a8530a99bc9c380d3d58edbb
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
am: 2b42b87d8c
Change-Id: I4a977e248d0ea7e3b8ed31aed0643752aaab4e1c
|
| |\| |
| | | |
| | | |
| | | |
| | | |
| | | | |
am: 772ed1c63c
Change-Id: Ibd14ac6a57994019e188e6ec138682b50d1f7e69
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Should use log/log.h and in some cases android/log.h instead. Can
not remove file because still in use by partners, so log/logd.h
points to log/log.h.
Test: Compile
Bug: 26552300
Bug: 31289077
Change-Id: I3580d46154617abb7231027a44f4ab9ee023febf
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
am: 13c68b09d9
Change-Id: Icaab3eedecad8f55d8d1291b3414da5c12cec287
|
| |\| |
| | | |
| | | |
| | | |
| | | |
| | | | |
am: 78a459a8c8
Change-Id: If1a76043e7941191b3c6ba07ca0277b7f9b7f2e6
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Always used in combination with log/logger.h except in log_time.cpp,
and not used externally. As a result liblog has to support stl, a
small price to pay since goal is to convert liblog to C++ internally.
Test: compile
Bug: 31456426
Bug: 26552300
Bug: 31289077
Change-Id: I72828ec807d0a2c8e40bbdebd7a69f147a7ca5a9
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
am: 848da90978
Change-Id: I215d1da28c1d4e0377097f49493d1e9c5fc9ee75
|
| |\| |
| | | |
| | | |
| | | |
| | | |
| | | | |
am: 8b4cab3f69
Change-Id: I2760c8480818f30dd126e7cfbb900a0f5796c8b1
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Add android_log_event_context class.
Test: in context of 'logd: add getEventTag command and service'
Bug: 31456426
Bug: 26552300
Bug: 31289077
Bug: 19235719
Change-Id: Icf918b443f01e04040c8d3efe0cdb7a8e70be10c
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
e5976bea7a am: 8c274361fb
am: f610eaac14
Change-Id: I890fbb885044e82d4ec66a5a400240124003ac25
|