OSDN Git Service

DO NOT MERGE: add support for new sched tracepoint
authorTim Murray <timmurray@google.com>
Mon, 30 Nov 2015 18:59:55 +0000 (10:59 -0800)
committerTim Murray <timmurray@google.com>
Mon, 30 Nov 2015 18:59:55 +0000 (10:59 -0800)
This tracepoint gives systrace the means to display the reason
for uninterruptible sleep.

bug 23350688

Change-Id: I9ee5b6904c27bcb5bd67c86fda66d45d0a3c0999

cmds/atrace/atrace.cpp

index 26c5b4a..7201e77 100644 (file)
@@ -93,6 +93,7 @@ static const TracingCategory k_categories[] = {
     { "sched",      "CPU Scheduling",   0, {
         { REQ,      "/sys/kernel/debug/tracing/events/sched/sched_switch/enable" },
         { REQ,      "/sys/kernel/debug/tracing/events/sched/sched_wakeup/enable" },
+        { OPT,      "/sys/kernel/debug/tracing/events/sched/sched_blocked_reason/enable" },
     } },
     { "irq",        "IRQ Events",   0, {
         { REQ,      "/sys/kernel/debug/tracing/events/irq/enable" },