summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2022-01-06 18:07:54 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-01-06 18:07:54 +0000
commit2dcff07c54d669648587949f5f3b243f0b1b2933 (patch)
tree947b44e42b58b98f065bc2a15cb99f3533db351c
parent8ad038fda950c06f438d38352f8cca1900836bda (diff)
parent75a2bb2d112907397124d4f0469bc64e7d2d571e (diff)
downloadlibhwbinder-2dcff07c54d669648587949f5f3b243f0b1b2933.tar.gz
Remove PGO rules for libhwbinder am: a5210bff01 am: 75a2bb2d11
Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/1933187 Change-Id: I03277ba3865ce6c610eb446ee11d15a5d1fdb4f0
-rw-r--r--Android.bp36
-rw-r--r--vts/performance/Android.bp3
2 files changed, 1 insertions, 38 deletions
diff --git a/Android.bp b/Android.bp
index 3a4ef35..1ca91b3 100644
--- a/Android.bp
+++ b/Android.bp
@@ -121,7 +121,6 @@ cc_library_static {
defaults: [
"libhwbinder_defaults",
"libhwbinder-impl-shared-libs",
- "hwbinder_pgo",
"hwbinder_lto",
],
host_supported: true,
@@ -141,41 +140,6 @@ cc_library_static {
min_sdk_version: "29",
}
-// Only libhwbinder_benchmark needs to have pgo enabled. When all places
-// support having PGO selectively enabled, all places can use libhwbinder.
-//
-// http://b/77320844
-cc_library_static {
- name: "libhwbinder_pgo-impl-internal",
- defaults: [
- "libhwbinder_defaults",
- "libhwbinder-impl-shared-libs",
- "hwbinder_benchmark_pgo",
- "hwbinder_lto",
- ],
-}
-
-// Provide pgo property to build hwbinder with PGO
-cc_defaults {
- name: "hwbinder_pgo",
- pgo: {
- instrumentation: true,
- profile_file: "hwbinder/hwbinder.profdata",
- benchmarks: ["hwbinder"],
- enable_profile_use: true,
- },
-}
-
-cc_defaults {
- name: "hwbinder_benchmark_pgo",
- pgo: {
- instrumentation: true,
- profile_file: "hwbinder/hwbinder.profdata",
- benchmarks: ["hwbinder_benchmark"],
- enable_profile_use: true,
- },
-}
-
// Provide lto property to build hwbinder with LTO
cc_defaults {
name: "hwbinder_lto",
diff --git a/vts/performance/Android.bp b/vts/performance/Android.bp
index 9508c83..fbb9f34 100644
--- a/vts/performance/Android.bp
+++ b/vts/performance/Android.bp
@@ -24,7 +24,6 @@ package {
cc_defaults {
name: "libhwbinder_test_defaults",
- defaults: ["hwbinder_benchmark_pgo",],
cflags: [
"-Wall",
@@ -40,7 +39,7 @@ cc_defaults {
static_libs: [
"android.hardware.tests.libhwbinder@1.0",
- "libhidlbase_pgo",
+ "libhidlbase",
],
// Allow dlsym'ing self for statically linked passthrough implementations