Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bb03528 authored by Philip Cuadra's avatar Philip Cuadra
Browse files

atrace: Adding dumping message to logcat.

Change-Id: Ida9e7ce8a05f8c5e44245ad0c383453d2ea7d79f
parent 5229d8f5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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 @@ static void streamTrace()
// 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,