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

Commit e757b1c3 authored by John Reck's avatar John Reck
Browse files

Support record-tgid

Bug: 110757800
Test: builds
Change-Id: Id3235995a6bcf3678413fdf97ca4b89a5f0c340c
parent 48b34b37
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -258,6 +258,9 @@ static const char* k_currentTracerPath =
static const char* k_printTgidPath =
    "options/print-tgid";

static const char* k_recordTgidPath =
    "options/record-tgid";

static const char* k_funcgraphAbsTimePath =
    "options/funcgraph-abstime";

@@ -523,6 +526,9 @@ static bool setPrintTgidEnableIfPresent(bool enable)
    if (fileExists(k_printTgidPath)) {
        return setKernelOptionEnable(k_printTgidPath, enable);
    }
    if (fileExists(k_recordTgidPath)) {
        return setKernelOptionEnable(k_recordTgidPath, enable);
    }
    return true;
}

+2 −0
Original line number Diff line number Diff line
@@ -19,6 +19,8 @@ on post-fs
    chmod 0666 /sys/kernel/tracing/options/overwrite
    chmod 0666 /sys/kernel/debug/tracing/options/print-tgid
    chmod 0666 /sys/kernel/tracing/options/print-tgid
    chmod 0666 /sys/kernel/debug/tracing/options/record-tgid
    chmod 0666 /sys/kernel/tracing/options/record-tgid
    chmod 0666 /sys/kernel/debug/tracing/saved_cmdlines_size
    chmod 0666 /sys/kernel/tracing/saved_cmdlines_size
    chmod 0666 /sys/kernel/debug/tracing/events/sched/sched_switch/enable