LTT_EVENT_FUNCTION_EXIT,
LTT_EVENT_THREAD_BRAND,
LTT_EVENT_REQUEST_ISSUE,
- LTT_EVENT_REQUEST_COMPLETE;
+ LTT_EVENT_REQUEST_COMPLETE,
+ LTT_EVENT_LIST_INTERRUPT;
/* Fields Quarks */
LTT_FIELD_CALL_SITE,
LTT_FIELD_MINOR,
LTT_FIELD_MAJOR,
- LTT_FIELD_OPERATION;
+ LTT_FIELD_OPERATION,
+ LTT_FIELD_ACTION;
typedef struct _LttvTracesetState LttvTracesetState;
typedef struct _LttvTracesetStateClass LttvTracesetStateClass;
LTTV_CPU_IDLE,
LTTV_CPU_BUSY,
LTTV_CPU_IRQ,
+ LTTV_CPU_SOFT_IRQ,
LTTV_CPU_TRAP;
typedef GQuark LttvIRQMode;
guint64 current_function;
LttvProcessType type; /* kernel thread or user space ? */
guint target_pid; /* target PID of the current event. */
+ guint free_events; /* 0 : none, 1 : free or exit dead, 2 : should delete */
} LttvProcessState;
#define ANY_CPU 0 /* For clarity sake : a call to lttv_state_find_process for
typedef struct _LttvCPUState {
GArray *mode_stack;
guint last_irq;
+ guint last_soft_irq;
+ guint last_trap;
} LttvCPUState;
typedef struct _LttvIRQState {
GArray *mode_stack;
} LttvIRQState;
+typedef struct _LttvSoftIRQState {
+ guint running; /* number of times it is currently running (on different processors) */
+} LttvSoftIRQState;
+
+typedef struct _LttvTrapState {
+ guint running; /* number of times it is currently running (on different processors) */
+} LttvTrapState;
+
typedef struct _LttvBdevState {
GArray *mode_stack;
} LttvBdevState;
GQuark *trap_names;
guint nb_traps;
guint nb_irqs;
- guint nb_softirqs;
+ guint nb_soft_irqs;
GQuark *irq_names;
GQuark *soft_irq_names;
LttTime *max_time_state_recomputed_in_seek;
gboolean has_precomputed_states;
LttvCPUState *cpu_states; /* state of each cpu */
LttvIRQState *irq_states; /* state of each irq handler */
+ LttvSoftIRQState *soft_irq_states; /* state of each softirq */
+ LttvTrapState *trap_states; /* state of each trap */
GHashTable *bdev_states; /* state of the block devices */
};
#define HDR_QUARKS 9
#define HDR_QUARK 10
-#define MKDEV(ma,mi) ((ma)<<8 | (mi))
+/* Device number manipulation macros from kernel source */
+#define MINORBITS 20
+#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))
#endif // STATE_H