X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=lttv%2Flttv%2Fstate.h;h=ef22627f8447defc376f74c3409a895e08193546;hb=1111bb0f69e3c01c9264b19cbc7d2a8a02eeb569;hp=0ae7e5c63194ad5beaf8bf699e8800932dd8445f;hpb=59dc1f2a91ea206e39d1ade572bec306811fff03;p=lttv.git diff --git a/lttv/lttv/state.h b/lttv/lttv/state.h index 0ae7e5c6..ef22627f 100644 --- a/lttv/lttv/state.h +++ b/lttv/lttv/state.h @@ -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). */ @@ -53,6 +53,17 @@ #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;