Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Unified Diff: tools/android/memtrack_helper/memtrack_helper.c

Issue 2389883004: Benchmark tools: Android memtrack_helper meaningful errors. (Closed)
Patch Set: nit Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/android/memtrack_helper/memtrack_helper.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/memtrack_helper/memtrack_helper.c
diff --git a/tools/android/memtrack_helper/memtrack_helper.c b/tools/android/memtrack_helper/memtrack_helper.c
index 39d80752c276c22ed926e434e672ba18e0f595f5..9ce05fdea509945fea5d84b86b8fbe94e20a64bc 100644
--- a/tools/android/memtrack_helper/memtrack_helper.c
+++ b/tools/android/memtrack_helper/memtrack_helper.c
@@ -211,8 +211,13 @@ int main(int argc, char** argv) {
if (argc > 1 && strcmp(argv[1], "-d") == 0)
daemonize();
- if(memtrack_init())
- exit_with_failure("memtrack_init() returned non-zero");
+ res = memtrack_init();
+ if (res == -ENOENT) {
+ exit_with_failure("Unable to load memtrack module in libhardware. "
+ "Probably implementation is missing in this ROM.");
+ } else if (res != 0) {
+ exit_with_failure("memtrack_init() returned non-zero status.");
+ }
if (listen(server_fd, 128 /* max number of queued requests */))
exit_with_failure("listen");
« no previous file with comments | « tools/android/memtrack_helper/memtrack_helper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698