summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Joel Fernandes <joelaf@google.com> 2017-08-31 08:35:05 -0700
committer Joel Fernandes <joelaf@google.com> 2017-10-04 15:13:15 -0700
commit0ad0f3059ffca0c6e1de680ca7e68d5150b8b14f (patch)
treea6d00e6b3ea28dd81d4c8b6aeddef771946d9520
parent37841495295efaf1e633e05fabd6b9aaeac41f65 (diff)
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: Joel Fernandes <joelaf@google.com>
-rw-r--r--cmds/atrace/atrace.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmds/atrace/atrace.cpp b/cmds/atrace/atrace.cpp
index a48dab97cb..0bdca2d81d 100644
--- a/cmds/atrace/atrace.cpp
+++ b/cmds/atrace/atrace.cpp
@@ -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" },