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

Commit 325232cc authored by Philip Cuadra's avatar Philip Cuadra Committed by Android (Google) Code Review
Browse files

Merge "atrace: Adding dumping message to logcat." into nyc-dev

parents bb7a7708 0bb03528
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,