diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2021-06-21 14:59:52 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2021-06-21 14:59:52 +0000 |
commit | 5fc0fab1cc62937559c51e426994cdb2ff9cc04c (patch) | |
tree | 769a69fcd8a609c266da80b48d2de307c838b5cc /base/include/hidl/HidlInternal.h | |
parent | c12f9b9aa5a87e996f5e69f3988f417aab8dd01b (diff) | |
parent | e1831a391c1436c2ac00dee8bfee6a5dbbfee150 (diff) | |
download | libhidl-5fc0fab1cc62937559c51e426994cdb2ff9cc04c.tar.gz |
Snap for 7478067 from e1831a391c1436c2ac00dee8bfee6a5dbbfee150 to mainline-cellbroadcast-release
Change-Id: Ib1cf39b0ba13f8e8e66605e9013bd162939dc079
Diffstat (limited to 'base/include/hidl/HidlInternal.h')
-rw-r--r-- | base/include/hidl/HidlInternal.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/base/include/hidl/HidlInternal.h b/base/include/hidl/HidlInternal.h index 3cd246a..3d1a444 100644 --- a/base/include/hidl/HidlInternal.h +++ b/base/include/hidl/HidlInternal.h @@ -201,7 +201,10 @@ struct HidlInstrumentor { // A list of registered instrumentation callbacks. std::vector<InstrumentationCallback> mInstrumentationCallbacks; // Flag whether to enable instrumentation. - bool mEnableInstrumentation; + union { + bool mEnableInstrumentation; + void* mReserved0; + }; // Prefix to lookup the instrumentation libraries. std::string mInstrumentationLibPackage; // Used for dlsym to load the profiling method for given interface. @@ -209,6 +212,12 @@ struct HidlInstrumentor { }; +#ifdef __LP64__ +static_assert(sizeof(HidlInstrumentor) == 88, "HidlInstrumentor size frozen by prebuilts"); +#else +static_assert(sizeof(HidlInstrumentor) == 44, "HidlInstrumentor size frozen by prebuilts"); +#endif + } // namespace details } // namespace hardware } // namespace android |