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

Commit 6f6f3f71 authored by Jamie Gennis's avatar Jamie Gennis
Browse files

atrace: fix tracing on user builds

Change-Id: Idef15d514f0bd1e117362c6a06a2ea24314feb7f
parent 0046d961
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -433,8 +433,10 @@ static bool setKernelTraceFuncs(const char* funcs)

    if (funcs == NULL || funcs[0] == '\0') {
        // Disable kernel function tracing.
        if (fileIsWritable(k_currentTracerPath)) {
            ok &= writeStr(k_currentTracerPath, "nop");
        if (fileExists(k_ftraceFilterPath)) {
        }
        if (fileIsWritable(k_ftraceFilterPath)) {
            ok &= truncateFile(k_ftraceFilterPath);
        }
    } else {