Improve oprofile scripts.
Now support importing dumps and running reports using a simple script.
Eliminated some spurious errors and warnings in the oprofile tools
when profiling Android libraries.
Change-Id: I618cf6f8937a6ab5f45b3d45bdf860792b6bebbe
diff --git a/libpp/op_header.cpp b/libpp/op_header.cpp
index 041a1e8..938f5dd 100644
--- a/libpp/op_header.cpp
+++ b/libpp/op_header.cpp
@@ -114,6 +114,12 @@
} else {
static bool warned_already = false;
+#ifdef ANDROID
+ // Android symbol files may not have the same timestamp as the stripped
+ // files deployed to the device. Suppress spurious warnings.
+ if (file.find("/symbols/") == string::npos) {
+#endif
+
cerr << "warning: the last modified time of the binary file "
"does not match that of the sample file for " << file
<< "\n";
@@ -123,6 +129,10 @@
"has been modified since the sample file was created.\n";
warned_already = true;
}
+
+#ifdef ANDROID
+ }
+#endif
}
}