diff options
author | Yifan Hong <elsk@google.com> | 2017-03-02 16:59:39 -0800 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2017-03-02 18:00:18 -0800 |
commit | 705e5da46d6f6fa5a2177afe460304668bd9102c (patch) | |
tree | a9d8a188898ac60cf20a6112c3fc527f5cbc1f7d /transport/base | |
parent | 3d931cd3ff79dc8f293a126e511bba0a54e40e5d (diff) | |
download | libhidl-705e5da46d6f6fa5a2177afe460304668bd9102c.tar.gz |
Update for providing architecture info
to IBase::getDebugInfo() and IServiceManager::debugDump().
Moved PassthroughServiceManager::list to debugDump() because
it need to provide 32-bit libraries as well, which doesn't
meet the contract of list().
Bug: 35803184
Test: lshal -itrpc
Change-Id: I18374188ae6a33ba498ece5cddd92b48526f5f44
Diffstat (limited to 'transport/base')
-rw-r--r-- | transport/base/1.0/types.hal | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/transport/base/1.0/types.hal b/transport/base/1.0/types.hal index 0f225d2..727c65a 100644 --- a/transport/base/1.0/types.hal +++ b/transport/base/1.0/types.hal @@ -19,8 +19,18 @@ package android.hidl.base@1.0; /* * The returned object for getDebugInfo. * pid: pid of current process. -1 if not available. + * ptr: address of this object + * arch: 64bit or 32bit */ struct DebugInfo { + + enum Architecture : int32_t { + UNKNOWN = 0, + IS_64BIT, + IS_32BIT, + }; + int32_t pid; uint64_t ptr; + Architecture arch; }; |