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

Commit 0ad0f305 authored by Joel Fernandes's avatar Joel Fernandes
Browse files

atrace: preempt and irq disable section tracing



IRQ and preempt disabled sections can be visualized in systrace, add the
trace categories to enable these events.

Currently only root users who have permissions to write to these file
will be allowed to run this. At a future time, we can add other users
once we decide on security aspects.

Bug: 67425309

Change-Id: I389c3ab5624a775d310d90b7cb4edf47407aa614
Signed-off-by: default avatarJoel Fernandes <joelaf@google.com>
parent 37841495
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -130,6 +130,14 @@ static const TracingCategory k_categories[] = {
        { REQ,      "events/irq/enable" },
        { OPT,      "events/ipi/enable" },
    } },
    { "irqoff",     "IRQ-disabled code section tracing", 0, {
        { REQ,      "events/preemptirq/irq_enable/enable" },
        { REQ,      "events/preemptirq/irq_disable/enable" },
    } },
    { "preemptoff", "Preempt-disabled code section tracing", 0, {
        { REQ,      "events/preemptirq/preempt_enable/enable" },
        { REQ,      "events/preemptirq/preempt_disable/enable" },
    } },
    { "i2c",        "I2C Events",   0, {
        { REQ,      "events/i2c/enable" },
        { REQ,      "events/i2c/i2c_read/enable" },