OSDN Git Service

Move libc_log code into libasync_safe.
authorChristopher Ferris <cferris@google.com>
Tue, 25 Apr 2017 00:48:32 +0000 (17:48 -0700)
committerChristopher Ferris <cferris@google.com>
Wed, 3 May 2017 15:50:43 +0000 (08:50 -0700)
commit7a3681e5b6c39bc2b3b62031ca5941dbf7bc4e63
tree78c25e2a38b7efed8db770a623a5cbfb7eaab11d
parentca5e0f49ca5df873a20c996755175b5c9c1e2ed9
Move libc_log code into libasync_safe.

This library is used by a number of different libraries in the system.
Make it easy for platform libraries to use this library and create
an actual exported include file.

Change the names of the functions to reflect the new name of the library.

Run clang_format on the async_safe_log.cpp file since the formatting is
all over the place.

Bug: 31919199

Test: Compiled for angler/bullhead, and booted.
Test: Ran bionic unit tests.
Test: Ran the malloc debug tests.
Change-Id: I8071bf690c17b0ea3bc8dc5749cdd5b6ad58478a
55 files changed:
libc/Android.bp
libc/arch-arm/bionic/atexit_legacy.c
libc/arch-mips/bionic/cacheflush.cpp
libc/async_safe/Android.bp [new file with mode: 0644]
libc/async_safe/async_safe_log.cpp [moved from libc/bionic/libc_logging.cpp with 54% similarity]
libc/async_safe/include/async_safe/log.h [moved from libc/private/libc_logging.h with 62% similarity]
libc/bionic/NetdClient.cpp
libc/bionic/__cxa_pure_virtual.cpp
libc/bionic/__stack_chk_fail.cpp
libc/bionic/assert.cpp
libc/bionic/bionic_arc4random.cpp
libc/bionic/bionic_systrace.cpp
libc/bionic/grp_pwd.cpp
libc/bionic/icu.cpp
libc/bionic/libc_init_common.cpp
libc/bionic/malloc_common.cpp
libc/bionic/ndk_cruft.cpp
libc/bionic/new.cpp
libc/bionic/open.cpp
libc/bionic/pthread_attr.cpp
libc/bionic/pthread_create.cpp
libc/bionic/pthread_internal.cpp
libc/bionic/setjmp_cookie.cpp
libc/bionic/strerror_r.cpp
libc/bionic/syslog.cpp
libc/bionic/system_properties.cpp
libc/dns/resolv/res_cache.c
libc/dns/resolv/res_send.c
libc/dns/resolv/res_state.c
libc/dns/resolv/res_stats.c
libc/malloc_debug/Android.bp
libc/malloc_debug/backtrace.cpp
libc/malloc_debug/debug_log.h
libc/malloc_debug/tests/log_fake.cpp
libc/private/WriteProtected.h
libc/private/bionic_fortify.h
libc/stdio/stdio_ext.cpp
libc/upstream-openbsd/android/include/arc4random.h
linker/Android.bp
linker/linker.cpp
linker/linker.h
linker/linker_allocator.cpp
linker/linker_allocator.h
linker/linker_config.cpp
linker/linker_debug.h
linker/linker_globals.h
linker/linker_libcxx_support.cpp
linker/linker_logger.cpp
linker/linker_main.cpp
linker/linker_memory.cpp
linker/linker_sleb128.h
linker/linker_soinfo.cpp
linker/tests/Android.mk
tests/Android.bp
tests/async_safe_test.cpp [moved from tests/libc_logging_test.cpp with 55% similarity]