git-svn-id: http://ltt.polymtl.ca/svn@174 04897980-b3bd-0310-b5e0-8ef037075253
authordagenais <dagenais@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 7 Aug 2003 15:35:38 +0000 (15:35 +0000)
committerdagenais <dagenais@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 7 Aug 2003 15:35:38 +0000 (15:35 +0000)
ltt/branches/poly/lttv/main.c
ltt/branches/poly/lttv/module.c
ltt/branches/poly/lttv/state.c
ltt/branches/poly/lttv/textDump.c

index 1123af44429bf4d9f6b3fc8566a2ac049a15c311..ec131915dfd59a37c87fa8a59c3463f91a335c10 100644 (file)
@@ -101,7 +101,9 @@ int main(int argc, char **argv) {
       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);
 
index 0f6f5a0727a0d35e8fddb7cc23a24a2db8b25fcb..e6012f768223fd3121383b68df1a18f33a06d423 100644 (file)
@@ -118,7 +118,7 @@ module_load(const char *name, int argc, char **argv)
     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 {
 
index b60f22f23cfdda8a67c85a2237dcf71d14d260c5..2a9164caeb6da7ae0c311c788f952a364c397164 100644 (file)
@@ -78,21 +78,21 @@ fini(LttvTracesetState *self)
 }
 
 
-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));
@@ -272,6 +272,7 @@ static void push_state(LttvTracefileState *tfs, LttvInterruptType t,
   intr->n = state_id;
   intr->entry = intr->last_change = LTTV_TRACEFILE_CONTEXT(tfs)->timestamp;
   intr->s = process->state->s;
+  process->state = intr;
 }
 
 
@@ -512,7 +513,7 @@ find_hook(LttTrace *t, char *facility, char *event,
   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);
index e4c8d5c736b2f7a22759e4946d69f97a162dc88e..646cb0812123ae9bc5d23baac04e3a465ac18515 100644 (file)
@@ -79,9 +79,9 @@ void print_field(LttEvent *e, LttField *f, GString *s, gboolean field_names) {
       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);
       }
@@ -115,6 +115,7 @@ void lttv_event_to_string(LttEvent *e, LttTracefile *tf, GString *s,
     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);
This page took 0.025774 seconds and 4 git commands to generate.