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

Commit 69915f97 authored by Carmen Jackson's avatar Carmen Jackson
Browse files

Do not set the trace clock in atrace.rc.

This reverts only the atrace.rc change from commit ea826794.
"Set the atrace clock to the best available value: boot, mono, or global."

This change caused a 100+ms regression in boot time. We also confirm that
the clock is set to the correct value when we call atrace, so we will
still see correct behavior after reverting this change.

Bug: 38504158
Test: Manually tested that the trace clock is updated when atrace is
called.
Change-Id: Ifa302694964a4f9fc54db16e7125d5279067bbfd
parent e2fad810
Loading
Loading
Loading
Loading
+0 −5
Original line number Original line Diff line number Diff line
@@ -124,11 +124,6 @@ on post-fs
    write /sys/kernel/debug/tracing/tracing_on 0
    write /sys/kernel/debug/tracing/tracing_on 0
    write /sys/kernel/tracing/tracing_on 0
    write /sys/kernel/tracing/tracing_on 0


    # Set the trace clock to boot; falling back to mono or boot
    write /d/tracing/trace_clock global
    write /d/tracing/trace_clock mono
    write /d/tracing/trace_clock boot

# Allow only the shell group to read and truncate the kernel trace.
# Allow only the shell group to read and truncate the kernel trace.
    chown root shell /sys/kernel/debug/tracing/trace
    chown root shell /sys/kernel/debug/tracing/trace
    chown root shell /sys/kernel/tracing/trace
    chown root shell /sys/kernel/tracing/trace