X-Git-Url: http://git.liburcu.org/?p=lttv.git;a=blobdiff_plain;f=lttv%2Flttv%2Fstate.c;h=7e9ce546eb2f636165af2c5805e76054debaf1ec;hp=40f95c41639fe7bdb00dfeda67746ebe545bf054;hb=a7598d50739159e9f33f60d3b23980db447f6d5d;hpb=e2bef06d8aa98badd13cae1fdaf06f76b2dfc8d3 diff --git a/lttv/lttv/state.c b/lttv/lttv/state.c index 40f95c41..7e9ce546 100644 --- a/lttv/lttv/state.c +++ b/lttv/lttv/state.c @@ -3434,11 +3434,16 @@ void lttv_state_add_event_hooks(LttvTraceset *traceset) LttvAttributeValue value; LttvHooks*event_hook; +#ifdef BABEL_CLEANUP LttvIAttribute *attributes = LTTV_IATTRIBUTE(lttv_global_attributes()); result = lttv_iattribute_find_by_path(attributes, "hooks/event", LTTV_POINTER, &value); g_assert(result); event_hook = *(value.v_pointer); +#endif + //TODO ybrosseau 2012-07-12: Validate that using traceset hooks instead of the global one is valid + //Use traceset hooks + event_hook = lttv_traceset_get_hooks(traceset); g_assert(event_hook); lttv_hooks_add(event_hook,syscall_entry , NULL, LTTV_PRIO_STATE);