lttv_module_path_option, NULL);
lttv_hooks_call(before_options, NULL);
+ lttv_option_parse(argc, argv);
lttv_hooks_call(after_options, NULL);
+
lttv_hooks_call(before_main, NULL);
lttv_hooks_call(after_main, NULL);
if(!g_module_symbol(gm, "init", (gpointer)&init_function)) {
g_warning("module %s (%s) has no init function", name, pathname);
}
- else init_Function(m, argc, argv);
+ else init_function(m, argc, argv);
}
else {
}
-LttvTracesetContext *
+static LttvTracesetContext *
new_traceset_context(LttvTracesetContext *self)
{
return LTTV_TRACESET_CONTEXT(g_object_new(LTTV_TRACESET_STATE_TYPE, NULL));
}
-LttvTraceContext *
+static LttvTraceContext *
new_trace_context(LttvTracesetContext *self)
{
return LTTV_TRACE_CONTEXT(g_object_new(LTTV_TRACE_STATE_TYPE, NULL));
}
-LttvTracefileContext *
+static LttvTracefileContext *
new_tracefile_context(LttvTracesetContext *self)
{
return LTTV_TRACEFILE_CONTEXT(g_object_new(LTTV_TRACEFILE_STATE_TYPE, NULL));
intr->n = state_id;
intr->entry = intr->last_change = LTTV_TRACEFILE_CONTEXT(tfs)->timestamp;
intr->s = process->state->s;
+ process->state = intr;
}
et = ltt_facility_eventtype_get_by_name(f, event);
if(et == NULL) g_error("Event %s does not exist", event);
- hook_id.id = *(ltt_eventtype_id(et)); /* CHECK */
+ hook_id.id = ltt_eventtype_id(et);
hook_id.h = h;
hook_id.free_hook_data = FALSE;
hook_data.f1 = find_field(et, field1);
nb = ltt_type_member_number(type);
for(i = 0 ; i < nb ; i++) {
element = ltt_field_member(f,i);
- if(name) {
+ if(field_names) {
ltt_type_member_type(type, i, &name);
- g_string_append_printf(s, " %s = ", field_names);
+ g_string_append_printf(s, " %s = ", name);
}
print_field(e, element, s, field_names);
}
g_string_append_printf(s,"%s.%s: %ld.%ld (%s)",ltt_facility_name(facility),
ltt_eventtype_name(event_type), (long)time.tv_sec, time.tv_nsec,
ltt_tracefile_name(tf));
+ /* Print the process id and the state/interrupt type of the process */
}
print_field(e, field, s, field_names);