small fix to process_traceset middle : it won't stop if G_MAXULONG events requested
[lttv.git] / ltt / branches / poly / lttv / lttv / hook.h
index b62ddcfc8bded1e28796d471a19292dc5f9f9772..90f50b0d54a462e99448c0879b1664a3694df552 100644 (file)
@@ -128,6 +128,9 @@ typedef struct _LttvHooksById {
   GArray *array;
 } LttvHooksById;
 
+/* macro to calculate the hook ID of a facility/event pair. */
+#define GET_HOOK_ID(fac_id, ev_id) \
+  ( (guint)fac_id | ((guint)ev_id << (8*sizeof(NUM_FACILITIES))) )
 
 /* Create and destroy a hooks by id list */
 
This page took 0.022568 seconds and 4 git commands to generate.