Fix softirq raise dynamic expand
[lttv.git] / lttv / lttv / state.h
index 1e6efb57c88dd05be6f16c342f3c838dd6875f05..ef22627f8447defc376f74c3409a895e08193546 100644 (file)
@@ -43,7 +43,7 @@
    which events have been processed) and a pointer to the current process,
    in the process table, being run on that cpu.
 
-   For each process in the process table, various informations such as exec 
+   For each process in the process table, various information such as exec 
    file name, pid, ppid and creation time are stored. Each process state also
    contains an execution mode stack (e.g. irq within system call, called
    from user mode). */
 
 #define LTTV_STATE_SAVE_INTERVAL 50000
 
+
+#define PREALLOC_NB_SYSCALLS   256
+/*
+ * As of 2.6.38, IRQ 239 has been seen (and we have seen higher than
+ * 256 too.
+ */
+#define PREALLOC_NB_IRQS       512
+/* As of 2.6.38, 255 softirqs are used. */
+#define PREALLOC_NB_SOFT_IRQS  512
+#define PREALLOC_NB_TRAPS      256
+
 /* Channel Quarks */
 
 extern GQuark
@@ -192,8 +203,11 @@ typedef GQuark LttvExecutionMode;
 
 extern LttvExecutionMode
        LTTV_STATE_USER_MODE,
+       LTTV_STATE_MAYBE_USER_MODE,
        LTTV_STATE_SYSCALL,
+       LTTV_STATE_MAYBE_SYSCALL,
        LTTV_STATE_TRAP,
+       LTTV_STATE_MAYBE_TRAP,  /* TODO */
        LTTV_STATE_IRQ,
        LTTV_STATE_SOFT_IRQ,
        LTTV_STATE_MODE_UNKNOWN;
@@ -470,6 +484,6 @@ static inline guint lttv_state_get_target_pid(LttvTracefileState *tfs)
 #define MINORMASK      ((1U << MINORBITS) - 1)
 #define MAJOR(dev)     ((unsigned int) ((dev) >> MINORBITS))
 #define MINOR(dev)     ((unsigned int) ((dev) & MINORMASK))
-#define MKDEV(ma,mi)   (((ma) << MINORBITS) | (mi))
+#define MKDEV(ma, mi)  ((((unsigned int) (ma)) << MINORBITS) | (unsigned int) (mi))
 
 #endif // STATE_H
This page took 0.022692 seconds and 4 git commands to generate.