logging to statsd by native static libs
Here are the commit's result. 1. libstatslog.so is no longer a dynamic lib 2. there is only libnetd_resolv.so in com.android.resolv/lib64 -- list of dynamic libraries [Without the commit] objdump -p out/target/product/crosshatch/apex/com.android.resolv/lib64/libnetd_resolv.so |grep NEEDED Dynamic Section: NEEDED libbinder_ndk.so NEEDED libstatslog.so NEEDED libc.so NEEDED libm.so NEEDED libdl.so [With the commit] ( libstatslog.so is no longer a dynamic lib) objdump -p out/target/product/crosshatch/apex/com.android.resolv/lib64/libnetd_resolv.so |grep NEEDED Dynamic Section: NEEDED libbinder_ndk.so NEEDED libc.so NEEDED libm.so NEEDED libdl.so -size of libnetd_resolv.so before and after this change [Without commit] crosshatch:/apex/com.android.resolv/lib64 # ls -l total 3056 -rw-r--r-- 1 system system 83552 1970-01-01 08:00 libbase.so -rw-r--r-- 1 system system 842296 1970-01-01 08:00 libc++.so -rw-r--r-- 1 system system 73744 1970-01-01 08:00 libcutils.so -rw-r--r-- 1 system system 132320 1970-01-01 08:00 libjsoncpp.so -rw-r--r-- 1 system system 1545208 1970-01-01 08:00 libnetd_resolv.so -rw-r--r-- 1 system system 138816 1970-01-01 08:00 libprocessgroup.so -rw-r--r-- 1 system system 176896 1970-01-01 08:00 libstatslog.so -rw-r--r-- 1 system system 117424 1970-01-01 08:00 libutils.so [With the commit] (there is only one lib in com.android.resolv/lib64 ) crosshatch:/apex/com.android.resolv/lib64 # ls -l total 1520 -rw-r--r-- 1 system system 1553776 1970-01-01 08:00 libnetd_resolv.so Test: make statsd_testdrive ./out/host/linux-x86/bin/statsd_testdrive 116 => pass system/netd/tests/$ ./runtests.sh =>pass Bug: 132162484 Change-Id: Idbc7f35645b7eb994107b490fb8d89589dc1ac09
Loading
Please register or sign in to comment