-// et = ltt_facility_eventtype_get_by_name(f, event);
-// if(unlikely(et == NULL)) goto event_error;
-
-// thf = &g_array_index(th->fac_index, LttvTraceHookByFacility, fac_id);
-// g_array_index(th->fac_list, LttvTraceHookByFacility*, i) = thf;
-// ev_id = ltt_eventtype_id(et);
- thf->h = h;
- thf->id = GET_HOOK_ID(fac_id, ev_id);
- thf->f1 = find_field(et, field1);
- if(check_fields_compatibility(first_et, et,
- first_thf->f1, thf->f1))
- goto type_error;
-
- thf->f2 = find_field(et, field2);
- if(check_fields_compatibility(first_et, et,
- first_thf->f2, thf->f2))
- goto type_error;
-
- thf->f3 = find_field(et, field3);
- if(check_fields_compatibility(first_et, et,
- first_thf->f3, thf->f3))
- goto type_error;
- thf->hook_data = hook_data;
-// }