X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Flttv%2Fcontextmacros.h;h=b6276e983691b0ff0c98e9ec34fc7b3e53a14947;hb=8fe3c6b699e245cf9a5263e687778dc10d501f4b;hp=84a8e7d0bb18a19ba04adcd4572d952b88d1887a;hpb=e6a3b6bdc6e94b091bd0157f3c8f39095e3a0de4;p=lttv.git diff --git a/ltt/branches/poly/lttv/lttv/contextmacros.h b/ltt/branches/poly/lttv/lttv/contextmacros.h index 84a8e7d0..b6276e98 100644 --- a/ltt/branches/poly/lttv/lttv/contextmacros.h +++ b/ltt/branches/poly/lttv/lttv/contextmacros.h @@ -64,6 +64,15 @@ #define LTTV_TRACE_CONTEXT_GET_TRACESET_CONTEXT(tc)\ (tc->ts_context) +/* LTTV_TRACE_CONTEXT_GET_TRACE_INDEX + * + * Input : LttvTraceContext *tc + * returns : (guint) trace context index in its traceset context. + */ +#define LTTV_TRACE_CONTEXT_GET_TRACE_INDEX(tc)\ + (tc->index) + + /* LTTV_TRACE_CONTEXT_GET_TRACE_STATE * @@ -211,7 +220,7 @@ * * NOTE : use g_quark_to_string to convert a GQuark into a static char * */ -#define LTTV_TRACE_STATE_GET_EVENTTYPE_NAME(tse, syscall_number)\ +#define LTTV_TRACE_STATE_GET_SYSCALL_NAME(tse, syscall_number)\ (tse->syscall_names[syscall_number]) /* LTTV_TRACE_STATE_GET_TRAP_NAME @@ -233,7 +242,7 @@ * * NOTE : use g_quark_to_string to convert a GQuark into a static char * */ -#define LTTV_TRACE_STATE_GET_TRAP_NAME(tse, irq_number)\ +#define LTTV_TRACE_STATE_GET_IRQ_NAME(tse, irq_number)\ (tse->irq_names[irq_number]) @@ -337,7 +346,7 @@ * returns : (LttvExecutionState*) */ #define LTTV_PROCESS_STATE_GET_NESTED_EXECUTION_STATE(pse, num_nest)\ - ((LttvExecutionState*)pse->execution_stack[num_nest]) + (&g_array_index(pse->execution_stack,LttvExecutionState,num_nest)) /* LTTV_PROCESS_STATE_GET_NUM_NESTED_EXECUTION_STATES