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). */
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;
#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