OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6860397
)
Make atrace not depend on /dev/hwbinder.
author
Steven Moreland
<smoreland@google.com>
Mon, 12 Dec 2016 23:18:06 +0000
(15:18 -0800)
committer
Steven Moreland
<smoreland@google.com>
Mon, 12 Dec 2016 23:18:06 +0000
(15:18 -0800)
Bug:
31262344
Test: compiles
Change-Id: I2b4fa6815723507dd04afda19e99e5a15053dc66
cmds/atrace/atrace.cpp
patch
|
blob
|
history
diff --git
a/cmds/atrace/atrace.cpp
b/cmds/atrace/atrace.cpp
index
f4c6be2
..
5a34755
100644
(file)
--- a/
cmds/atrace/atrace.cpp
+++ b/
cmds/atrace/atrace.cpp
@@
-517,6
+517,12
@@
static void pokeHalServices()
using ::android::hardware::hidl_string;
sp<IServiceManager> sm = ::android::hardware::defaultServiceManager();
+
+ if (sm == nullptr) {
+ fprintf(stderr, "failed to get IServiceManager to poke hal services\n");
+ return;
+ }
+
auto listRet = sm->list([&](const auto &interfaces) {
for (size_t i = 0; i < interfaces.size(); i++) {
string fqInstanceName = interfaces[i];