atrace: Adding dumping message to logcat.
Change-Id: Ida9e7ce8a05f8c5e44245ad0c383453d2ea7d79f
diff --git a/cmds/atrace/atrace.cpp b/cmds/atrace/atrace.cpp
index 87f637c..23954ea 100644
--- a/cmds/atrace/atrace.cpp
+++ b/cmds/atrace/atrace.cpp
@@ -42,6 +42,8 @@
using namespace android;
+#define LOG_TAG "atrace"
+
#define NELEM(x) ((int) (sizeof(x) / sizeof((x)[0])))
enum { MAX_SYS_FILES = 10 };
@@ -769,6 +771,7 @@
// Read the current kernel trace and write it to stdout.
static void dumpTrace()
{
+ ALOGE("Dumping trace");
int traceFD = open(k_tracePath, O_RDWR);
if (traceFD == -1) {
fprintf(stderr, "error opening %s: %s (%d)\n", k_tracePath,