X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Flttv%2Fcontextmacros.h;h=b6276e983691b0ff0c98e9ec34fc7b3e53a14947;hb=e098ade03ee410d2fc9fc57f7478f0f74ee9014f;hp=c099ec4dbc50baf22814d88fda0f391cdb95c808;hpb=68f6d57ac64e36cd8555daae54d5f0f03aa563de;p=lttv.git diff --git a/ltt/branches/poly/lttv/lttv/contextmacros.h b/ltt/branches/poly/lttv/lttv/contextmacros.h index c099ec4d..b6276e98 100644 --- a/ltt/branches/poly/lttv/lttv/contextmacros.h +++ b/ltt/branches/poly/lttv/lttv/contextmacros.h @@ -220,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 @@ -242,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]) @@ -346,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