Add linux softirq ids
authorFrancis Giraldeau <francis.giraldeau@gmail.com>
Thu, 15 Oct 2015 14:51:27 +0000 (10:51 -0400)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Fri, 16 Oct 2015 14:40:53 +0000 (10:40 -0400)
The SoftIRQs are pretty much cast in stone on linux. This patch adds the
definition, as they are found in the softirq_entry event and vec field.

Change-Id: If4b3931d777eda540e3f2090939cd59ecd8d1643
Signed-off-by: Francis Giraldeau <francis.giraldeau@gmail.com>
Reviewed-on: https://git.eclipse.org/r/58256
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
analysis/org.eclipse.tracecompass.analysis.os.linux.core/src/org/eclipse/tracecompass/internal/analysis/os/linux/core/kernelanalysis/LinuxValues.java

index e78989418d15f1356632e2704759f6f643f0119f..9b38e1a0097e266df467d9688b2a27c360d00d3c 100644 (file)
@@ -89,4 +89,57 @@ public interface LinuxValues {
 
     /** Task is initially blocked */
     int STATEDUMP_PROCESS_STATUS_WAIT = 5;
+
+    /**
+     * SoftIRQ definitions
+     *
+     * From linux/interrupt.h
+     * <pre>
+     * enum
+     * {
+     *     HI_SOFTIRQ=0,
+     *     TIMER_SOFTIRQ,
+     *     NET_TX_SOFTIRQ,
+     *     NET_RX_SOFTIRQ,
+     *     BLOCK_SOFTIRQ,
+     *     BLOCK_IOPOLL_SOFTIRQ,
+     *     TASKLET_SOFTIRQ,
+     *     SCHED_SOFTIRQ,
+     *     HRTIMER_SOFTIRQ,
+     *     RCU_SOFTIRQ,
+     *     NR_SOFTIRQS // not used as this is the NUMBER of softirqs
+     * };
+     * </pre>
+     */
+
+    /** High-priority tasklet */
+    int SOFTIRQ_HI = 0;
+
+    /** Interrupted because of timer */
+    int SOFTIRQ_TIMER = 1;
+
+    /** Interrupted because of network transmission */
+    int SOFTIRQ_NET_TX = 2;
+
+    /** Interrupted because of network reception */
+    int SOFTIRQ_NET_RX = 3;
+
+    /** Interrupted because of block operation */
+    int SOFTIRQ_BLOCK = 4;
+
+    /** Interrupted because of block IO */
+    int SOFTIRQ_BLOCK_IOPOLL = 5;
+
+    /** Tasklet (differed device interrupt) */
+    int SOFTIRQ_TASKLET = 6;
+
+    /** Interrupted because of the scheduler */
+    int SOFTIRQ_SCHED = 7;
+
+    /** Interrupted because of HR timer */
+    int SOFTIRQ_HRTIMER = 8;
+
+    /** Interrupted because of RCU */
+    int SOFTIRQ_RCU = 9;
+
 }
This page took 0.026998 seconds and 5 git commands to generate.